]> www.infradead.org Git - users/hch/block.git/commit
drm/amd/display: Issue with 3 or more mcaches per surface
authorNevenko Stupar <nevenko.stupar@amd.com>
Wed, 3 Jul 2024 17:29:55 +0000 (13:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jul 2024 21:07:12 +0000 (17:07 -0400)
commita41d58fb91248557438de4e8298d1d2ed5b39564
tree517fb19ee4094b1b2ccf7e284c07e75907af3492
parent4e8eac98046446d99cbbed740f0767204b839f3f
drm/amd/display: Issue with 3 or more mcaches per surface

[Why & How]
Current logic in mcache admissibility check has flaw if
calculated number of maches are 3 or more per surface,
so sometimes the check may pass when it should fail,
and sometimes may fail when it should pass, fix the
issue and also adding additional check to make sure that
required number of mcaches per surface cannot be
higher than number of pipes + 1, used on that surface.

Reviewed-by: Chaitanya Dhere <chaitanya.dhere@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Nevenko Stupar <nevenko.stupar@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml_top_mcache.c