drm/amdgpu: pre-map device buffer as cached for A+A config
authorOak Zeng <Oak.Zeng@amd.com>
Sat, 21 Nov 2020 04:18:10 +0000 (22:18 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:56:03 +0000 (22:56 -0400)
commit9d0af8b4def0de6b734ec8db08e96da0458facb6
tree5f44bbcd54c27cad5ceaf9e878616ac7c4a7c5d3
parente5a83213507257ffbcddcea127d4a201fa38536a
drm/amdgpu: pre-map device buffer as cached for A+A config

For A+A configuration, device memory is supposed to be mapped as
cachable from CPU side. For kernel pre-map gpu device memory using
ioremap_cache

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Christian Koenig <Christian.Koenig@amd.com>
Tested-by: Amber Lin <Amber.Lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c