drm/amd/pm: Allocate dummy table only if needed
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 19 Jan 2023 13:13:28 +0000 (18:43 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Feb 2023 03:24:08 +0000 (22:24 -0500)
commit18c4e319db02c68237021ea7d3040ef3b21f09b9
tree3453c9882b6257ead4a87c2d05b0091884f7cdf1
parentd8f3b3951ff4db44cd4695c396e26160de789370
drm/amd/pm: Allocate dummy table only if needed

Only Navi1x requires dummy read workaround. Allocate the table in VRAM
only for Navi1x.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c