mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 06:12:08 +00:00
drm/amd/display: Clear underflow status for debug purposes
We want to keep underflow sticky bit on for the longevity tests outside of test environment. For debug purposes it is, however, useful to clear underflow status after the test that caused it so that the following tests are not affected. This change fullfils both requirements by clearing the underflow only from within Windows or Diags test environment. Signed-off-by: Nikola Cornij <nikola.cornij@amd.com> Reviewed-by: Nikola Cornij <Nikola.Cornij@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
dab911d535
commit
a944744ba5
@ -326,6 +326,12 @@ void dcn10_log_hw_state(struct dc *dc)
|
|||||||
s.h_total,
|
s.h_total,
|
||||||
s.v_total,
|
s.v_total,
|
||||||
s.underflow_occurred_status);
|
s.underflow_occurred_status);
|
||||||
|
|
||||||
|
// Clear underflow for debug purposes
|
||||||
|
// We want to keep underflow sticky bit on for the longevity tests outside of test environment.
|
||||||
|
// This function is called only from Windows or Diags test environment, hence it's safe to clear
|
||||||
|
// it from here without affecting the original intent.
|
||||||
|
tg->funcs->clear_optc_underflow(tg);
|
||||||
}
|
}
|
||||||
DTN_INFO("\n");
|
DTN_INFO("\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user