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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 13:47:04 +0000 (09:47 -0400)
commit771c75ad0bd2bad9bff45cb4b26618f4358fc72b
tree653333513f97739b6ae89e935d1e2bec473b2842
parent81f3d3c9a03705328f5368d19e23796ed077610a
drm/amd/display: Allocate zero bw after bw alloc enable

[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>
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_dpia_bw.c