diff options
| author | Huang Rui <[email protected]> | 2018-12-04 17:27:10 +0800 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-03-19 15:03:54 -0500 |
| commit | b56240005f0cc1663ec290819497f85bd4367c62 (patch) | |
| tree | 923f74accc8a0701e1849113bc073d82465bf21f | |
| parent | 05cadcd339dd06809684235daad5676a3687d108 (diff) | |
drm/amd/powerplay: add placeholder of smu_initialize_pptable
This patch adds placeholder of smu_initialize_pptable for smu.
Signed-off-by: Huang Rui <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index 145435f05bc2..d6ecd6337ba4 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -59,6 +59,25 @@ static int smu_early_init(void *handle) return 0; } +static int smu_initialize_pptable(struct smu_context *smu) +{ + /* TODO */ + return 0; +} + +static int smu_smc_table_sw_init(struct smu_context *smu) +{ + int ret; + + ret = smu_initialize_pptable(smu); + if (ret) { + pr_err("Failed to init smu_initialize_pptable!\n"); + return ret; + } + + return 0; +} + static int smu_sw_init(void *handle) { struct amdgpu_device *adev = (struct amdgpu_device *)handle; @@ -74,6 +93,12 @@ static int smu_sw_init(void *handle) return ret; } + ret = smu_smc_table_sw_init(smu); + if (ret) { + pr_err("Failed to sw init smc table!\n"); + return ret; + } + return 0; } |