mirror of
https://github.com/torvalds/linux.git
synced 2026-09-27 19:42:03 +02:00
drm/amd/display: TEST_HARNESS FSN could be 0
The frame skipping number could be 0 if needed. Reviewed-by: Robin Chen <robin.chen@amd.com> Signed-off-by: ChunTao Tso <ChunTao.Tso@amd.com> Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
144169e7be
commit
5836e66978
|
|
@ -175,11 +175,10 @@ static bool mod_power_update_replay_active_status(unsigned int active_replay_eve
|
|||
if (link->replay_settings.coasting_vtotal_table[PR_COASTING_TYPE_TEST_HARNESS])
|
||||
*coasting_vtotal =
|
||||
link->replay_settings.coasting_vtotal_table[PR_COASTING_TYPE_TEST_HARNESS];
|
||||
if (link->replay_settings.frame_skip_number_table[PR_COASTING_TYPE_TEST_HARNESS]) {
|
||||
ASSERT(link->replay_settings.frame_skip_number_table[PR_COASTING_TYPE_TEST_HARNESS] <= 0xFFFF);
|
||||
*frame_skip_number =
|
||||
(uint16_t)link->replay_settings.frame_skip_number_table[PR_COASTING_TYPE_TEST_HARNESS];
|
||||
}
|
||||
|
||||
ASSERT(link->replay_settings.frame_skip_number_table[PR_COASTING_TYPE_TEST_HARNESS] <= 0xFFFF);
|
||||
*frame_skip_number =
|
||||
(uint16_t)link->replay_settings.frame_skip_number_table[PR_COASTING_TYPE_TEST_HARNESS];
|
||||
|
||||
/* During the ultra sleep mode testing, disable the timing sync in short vblank mode */
|
||||
if (active_replay_events & (replay_event_test_harness_enable_replay)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user