drm/amdgpu: Use physical translation mode to access page table
authorOak Zeng <Oak.Zeng@amd.com>
Sat, 23 Jan 2021 17:34:45 +0000 (11:34 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:58:27 +0000 (22:58 -0400)
commit1f928f51593ca07e2b125ca862fcff687e9e498b
treebff7e672ae0dabcbada22c9861bd69565fa4ae57
parent35d5f224a5593028ecbc784d7c6cb0c77fb3aac3
drm/amdgpu: Use physical translation mode to access page table

On A+A platform, CPU write page directory and page table in cached
mode. So it is necessary for page table walker to snoop CPU cache.
This setting is necessary for page walker to snoop page directory
and page table data out of CPU cache.

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Acked-by: Christian Konig <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c