drm/amdgpu: make damage clips support configurable
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Thu, 8 Feb 2024 21:23:29 +0000 (16:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 12 Feb 2024 21:10:24 +0000 (16:10 -0500)
commitfc184dbe9fd99ad2dfb197b6fe18768bae1774b1
tree53ae8c375688e083e9b12271caa0641fe1bf3cf1
parentb6d1a06320519ac3bfda6ce81067a1bc409b9cff
drm/amdgpu: make damage clips support configurable

We have observed that there are quite a number of PSR-SU panels on the
market that are unable to keep up with what user space throws at them,
resulting in hangs and random black screens. So, make damage clips
support configurable and disable it by default for PSR-SU displays.

Cc: stable@vger.kernel.org
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c