diff options
author | Huang Rui | 2018-12-04 14:57:05 +0100 |
---|---|---|
committer | Alex Deucher | 2019-03-19 21:03:54 +0100 |
commit | 31b5ae495d68fba85bf64fae6f173372d56131da (patch) | |
tree | 5987b2be606a0d2b23b4874ce26c17fb90eb0800 /drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | |
parent | drm/amd/powerplay: add interface to check fw version (v2) (diff) | |
download | kernel-qcow2-linux-31b5ae495d68fba85bf64fae6f173372d56131da.tar.gz kernel-qcow2-linux-31b5ae495d68fba85bf64fae6f173372d56131da.tar.xz kernel-qcow2-linux-31b5ae495d68fba85bf64fae6f173372d56131da.zip |
drm/amd/powerplay: add interface to write pptable (v2)
This patch adds interface to write pptable for smu.
It's to copy pptable bo in the vram to smc with SMU MSGs such as
SetDriverDramAddr and TransferTableDram2Smu.
v2: add detailed info to describe this function
Signed-off-by: Huang Rui <ray.huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/amdgpu_smu.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index 519682541cae..747b6b7a7675 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -192,6 +192,14 @@ static int smu_smc_table_hw_init(struct smu_context *smu) if (ret) return ret; + /* + * Copy pptable bo in the vram to smc with SMU MSGs such as + * SetDriverDramAddr and TransferTableDram2Smu. + */ + ret = smu_write_pptable(smu); + if (ret) + return ret; + return 0; } |