drm/amd/display: skip commit minimal transition state
authorZhikai Zhai <zhikai.zhai@amd.com>
Tue, 20 Sep 2022 10:51:02 +0000 (18:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Oct 2022 16:00:24 +0000 (12:00 -0400)
commite4e481e4d838f30985dd46d43ed195110ed265f5
treea2992006d909fdcfdf51f80845a89e2b289d60de
parent345d6493476615494bd79a8fe77661918ea7c61a
drm/amd/display: skip commit minimal transition state

[WHY]
Now dynamic ODM will now be disabled when MPO is required safe
transitions to avoid underflow, but we are triggering the way of
minimal transition too often. Commit state of dc with no check
will do pipeline setup which may re-initialize the component with no
need such as audio.

[HOW]
Just do the minimal transition when all of pipes are in use, otherwise
return true to skip.

Reviewed-by: Dillon Varone <Dillon.Varone@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Zhikai Zhai <zhikai.zhai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c