Commit 9c9a1747 authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher

drm/amd/powerplay: add interface to init fb allocations (v2)

This patch adds interface to init fb allocations for smu.
It's to allocate vram bos to store smc table contents.

v2: add detailed info to describe this function
Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 46126e6d
......@@ -132,6 +132,12 @@ static int smu_sw_fini(void *handle)
return 0;
}
static int smu_init_fb_allocations(struct smu_context *smu)
{
/* TODO */
return 0;
}
static int smu_smc_table_hw_init(struct smu_context *smu)
{
int ret;
......@@ -153,6 +159,13 @@ static int smu_smc_table_hw_init(struct smu_context *smu)
if (ret)
return ret;
/*
* allocate vram bos to store smc table contents.
*/
ret = smu_init_fb_allocations(smu);
if (ret)
return ret;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment