1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display
Aurabindo Pillai 2de09ce41f drm/amd/display: fix CAB allocation for multiple displays
[Why & How]
When multiple displays are used, the underlying framebuffers could be
two separate framebuffers, or a single large framebuffer. Fix the
calculation logic for CAB to account for large framebuffer. Current
logic assumes that any FB that the plane points to are independent. When
a single FB is used on the system, this does 2 times allocation.

Add a check to prevent duplicate allocation by checking if the base
addresses are the same, and then ensuring that the if we allocate using
the pitch, whole of the other fbs will be accounted for in the first
allocation.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-08-10 15:11:26 -04:00
..
amdgpu_dm drm/amd/display: change family id name for DCN314 2022-08-10 15:10:12 -04:00
dc drm/amd/display: fix CAB allocation for multiple displays 2022-08-10 15:11:26 -04:00
dmub drm/amd/display: Add support for manual DMUB FAMS trigger 2022-07-25 17:17:15 -04:00
include drm/amd/display: change family id name for DCN314 2022-08-10 15:10:12 -04:00
modules drm/amd/display: Disable PSRSU when DSC enabled on the specific sink 2022-07-12 16:50:29 -04:00
Kconfig drm/amd/display: Enable building new display engine with KCOV enabled 2022-07-18 16:42:38 -04:00
Makefile drm/amd/display: Drop CONFIG_DRM_AMD_DC_DMUB guards 2019-11-13 15:29:42 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00