Skip to content

Commit 2d01584

Browse files
Nicholas Kazlauskasalexdeucher
authored andcommitted
drm/amd/display: Block z-states when stutter period exceeds criteria
[Why] Stutter period won't be less than 5000.0, but if PSR is enabled then we can potentially enter Z9 when MPO is enabled. SMU will try to enter Z9 too early in these cases (before PSR is enabled) and we'll see underflow. [How] Block z-states (z9, z10) until we can add a new interface to SMU to signal when we can support z10 but not z9. We can revert this once the interface change is in. Tested-by: Daniel Wheeler <[email protected]> Reviewed-by: Eric Yang <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Nicholas Kazlauskas <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 21bf3e6 commit 2d01584

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3093,8 +3093,7 @@ static enum dcn_zstate_support_state decide_zstate_support(struct dc *dc, struc
30933093
else if (context->stream_count == 1 && context->streams[0]->signal == SIGNAL_TYPE_EDP) {
30943094
struct dc_link *link = context->streams[0]->sink->link;
30953095

3096-
if ((link->link_index == 0 && link->psr_settings.psr_feature_enabled)
3097-
|| context->bw_ctx.dml.vba.StutterPeriod > 5000.0)
3096+
if (link->link_index == 0 && context->bw_ctx.dml.vba.StutterPeriod > 5000.0)
30983097
return DCN_ZSTATE_SUPPORT_ALLOW;
30993098
else
31003099
return DCN_ZSTATE_SUPPORT_DISALLOW;

0 commit comments

Comments
 (0)