OSDN Git Service

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)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2019 04:22:41 +0000 (23:22 -0500)
commite4c4073b0139d055d43a9568690fc560aab4fa5c
tree7a52f171ff94a6d5102ed2619d29201d49064c82
parent24f9aacfb0fbe724c94f6ffe24cc518bfdca4b1d
drm/amdgpu: Fix hard hang for S/G display BOs.

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c