drm/amdgpu: Don't reserve vram as WC for A+A
authorOak Zeng <Oak.Zeng@amd.com>
Fri, 22 Jan 2021 19:00:06 +0000 (13:00 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:58:24 +0000 (22:58 -0400)
commit35d5f224a5593028ecbc784d7c6cb0c77fb3aac3
tree782529c8e243e7b2874256576784cee2706b47cb
parentdebd629a633670527c78f33ab4774899795fc01e
drm/amdgpu: Don't reserve vram as WC for A+A

On A+A platform, vram can be mapped as WB. Not necessarily
to always map vram as WC on such platform.

Calling function arch_io_reserve_memtype_wc will mark the
whole vram region as WC. So don't call it for A+A platform.

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Suggested-by: Alex Deucher <alexander.deucher@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/amdgpu_object.c