]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit214ca8622588fef6427c9d0322a07d1e488b460c
treea2992006d909fdcfdf51f80845a89e2b289d60de
parentbb007af248edf490fb4f973560ef8fd60ce78fa7
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