]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Allocate zero bw after bw alloc enable
authorMeenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Wed, 10 Apr 2024 14:46:35 +0000 (10:46 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:48:54 +0000 (09:48 +0200)
commitd3f4d42eb8b47d4d09ea7f0e4b782cc40f41c4b1
treee84599572858cdc0ae8aeabf053d1d39246240c1
parentbb8bbfd491b4e3f2623fd212da64ac8305d4bdd4
drm/amd/display: Allocate zero bw after bw alloc enable

[ Upstream commit 46fe9cb1a9e62f4e6229f48ae303ef8e6c1fdc64 ]

[Why]
During DP tunnel creation, CM preallocates BW and reduces
estimated BW of other DPIA. CM release preallocation only
when allocation is complete. Display mode validation logic
validates timings based on bw available per host router.
In multi display setup, this causes bw allocation failure
when allocation greater than estimated bw.

[How]
Do zero alloc to make the CM to release preallocation and
update estimated BW correctly for all DPIAs per host router.

Reviewed-by: PeiChen Huang <peichen.huang@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_dpia_bw.c