drm/amdgpu: add S/G display parameter
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Feb 2023 14:00:02 +0000 (09:00 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Feb 2023 15:29:28 +0000 (10:29 -0500)
commit4693e852f19a1338a49e540fb99fe3b2898d8594
tree51b0ce55a54c801ce6ff77546f53a6a9839dc4d3
parentc6ac406cd8ff610a2d5da298b1d3071acfcde7f0
drm/amdgpu: add S/G display parameter

Some users have reported flickerng with S/G display.  We've
tried extensively to reproduce and debug the issue on a wide
variety of platform configurations (DRAM bandwidth, etc.) and
a variety of monitors, but so far have not been able to.  We
disabled S/G display on a number of platforms to address this
but that leads to failure to pin framebuffers errors and
blank displays when there is memory pressure or no displays
at all on systems with limited carveout (e.g., Chromebooks).
Add a option to disable this as a debugging option as a
way for users to disable this, depending on their use case,
and for us to help debug this further.

v2: fix typo

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Christian König <christian.koenig@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