drm/amd/display: hubbub function flipping true and false
authorYue Hin Lau <Yuehin.Lau@amd.com>
Thu, 26 Oct 2017 15:29:54 +0000 (11:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:24 +0000 (12:47 -0500)
no logic change

Signed-off-by: Yue Hin Lau <Yuehin.Lau@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c

index b1c9ba2..23c4573 100644 (file)
@@ -139,7 +139,7 @@ bool hubbub1_verify_allow_pstate_change_high(
                                                "pstate took longer than expected ~%dus\n",
                                                i);
 
-                       return false;
+                       return true;
                }
                if (max_sampled_pstate_wait_us < i)
                        max_sampled_pstate_wait_us = i;
@@ -159,7 +159,7 @@ bool hubbub1_verify_allow_pstate_change_high(
                        "pstate TEST_DEBUG_DATA: 0x%X\n",
                        debug_data);
 
-       return true;
+       return false;
 }
 
 static uint32_t convert_and_clamp(
index fe236a9..90f1f54 100644 (file)
@@ -548,7 +548,7 @@ void dcn10_verify_allow_pstate_change_high(struct dc *dc)
 {
        static bool should_log_hw_state; /* prevent hw state log by default */
 
-       if (hubbub1_verify_allow_pstate_change_high(dc->res_pool->hubbub)) {
+       if (!hubbub1_verify_allow_pstate_change_high(dc->res_pool->hubbub)) {
                if (should_log_hw_state) {
                        dcn10_log_hw_state(dc);
                }