]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9f3a5e1f3b5b6496107145f557c3134f7d7271f
tree782529c8e243e7b2874256576784cee2706b47cb
parent09c0253c969c5e95424bc5b9ccb46fa934e5f05f
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