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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 08:00:06 +0000 (10:00 +0200)
commit34fe4ccb1fe52b5c58d3730c6732e6971dc3564b
tree9e3c0fa64b04dad36c6dae225b0f2cf86127e7bb
parentecd26536ec5b2490ac3089413cd7013b3890b6d6
drm/amd/display: Allow bandwidth validation for 0 streams.

[ Upstream commit ba8e59773ae59818695d1e20b8939282da80ec8c ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c