drm/amdgpu: calling address translation functions to simplify codes
authorYifan Zhang <yifan1.zhang@amd.com>
Fri, 25 Aug 2023 03:14:34 +0000 (11:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Sep 2023 18:31:52 +0000 (14:31 -0400)
commit0bdf09cc5ee4d9de4808e23fe1359952b721818f
tree2a913b51e4da563aa1b314dbc82f2309e3b5557b
parent2e3b2cb9b8e00e1ed5e51b93946d78b21f48e3ea
drm/amdgpu: calling address translation functions to simplify codes

Use amdgpu_gmc_vram_pa to simplify codes.

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfxhub_v11_5_0.c
drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0.c
drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0_3.c
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_1.c
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_2.c
drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c