aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/modules/freesync
diff options
context:
space:
mode:
authorAurabindo Pillai <[email protected]>2022-07-15 18:59:26 +0000
committerAlex Deucher <[email protected]>2022-08-10 19:11:26 +0000
commit2de09ce41f484cbcc65e518905dae73da67ad35c (patch)
treef0e54b4f70e4b1a864d1c0520603dc083e5d9c05 /drivers/gpu/drm/amd/display/modules/freesync
parentdrm/amd/display: Drop FPU flags from Makefile (diff)
downloadkernel-2de09ce41f484cbcc65e518905dae73da67ad35c.tar.gz
kernel-2de09ce41f484cbcc65e518905dae73da67ad35c.zip
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 <[email protected]> Acked-by: Tom Chung <[email protected]> Signed-off-by: Aurabindo Pillai <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync')
0 files changed, 0 insertions, 0 deletions