OSDN Git Service

drm/amd/display: Allow bandwidth validation for 0 streams.
authorBindu Ramamurthy <bindu.r@amd.com>
Thu, 20 May 2021 14:06:04 +0000 (10:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 May 2021 21:59:52 +0000 (17:59 -0400)
commit6abb3f434c00281b338b5d7a547c57d93e0b9782
treeed1bf05bc9c15e62557ebc64a3715de498a20c96
parent5051cb794ac5d92154e186d87cdc12cba613f4f6
drm/amd/display: Allow bandwidth validation for 0 streams.

[Why]
Bandwidth calculations are triggered for non zero streams, and
in case of 0 streams, these calculations were skipped with
pstate status not being updated.

[How]
As the pstate status is applicable for non zero streams, check
added for allowing 0 streams inline with dcn internal bandwidth
validations.

Signed-off-by: Bindu Ramamurthy <bindu.r@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c