drm/amdgpu: Fix amdgpu_display_supported_domains logic.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Fri, 26 Jul 2019 13:24:35 +0000 (09:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2019 04:48:32 +0000 (23:48 -0500)
commitf2bd8a0ed7e79579d61cea01bab2dfb09099d379
tree8d0df9762786f74dab8705a816b49174f77f9b0c
parent354e6e14ef947f07055d3570b4bd7a33196b57f6
drm/amdgpu: Fix amdgpu_display_supported_domains logic.

Add restriction to dissallow GTT domain if the relevant BO
doesn't have USWC flag set to avoid the APU hang scenario.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
drivers/gpu/drm/amd/amdgpu/amdgpu_display.h
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c