]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: Fix hard hang for S/G display BOs.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Mon, 15 Jul 2019 22:04:08 +0000 (18:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 16:58:36 +0000 (18:58 +0200)
commita86a8e6ef256eb1effb6690c1bed0e2fade81c5a
tree05feb4a92ed7281d9ffb6de5c51e80f510b7cf12
parentd8847b4b3a24e52cf70fba5b2481c48ec8ba02ab
drm/amdgpu: Fix hard hang for S/G display BOs.

[ Upstream commit e4c4073b0139d055d43a9568690fc560aab4fa5c ]

HW requires for caching to be unset for scanout BO
mappings when the BO placement is in GTT memory.
Usually the flag to unset is passed from user mode
but for FB mode this was missing.

v2:
Keep all BO placement logic in amdgpu_display_supported_domains

Suggested-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Tested-by: Shirish S <shirish.s@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c