}
 
 // return true if removed piped from ctx, false otherwise
-bool dcn32_remove_phantom_pipes(struct dc *dc, struct dc_state *context)
+bool dcn32_remove_phantom_pipes(struct dc *dc, struct dc_state *context, bool fast_update)
 {
        int i;
        bool removed_pipe = false;
                        removed_pipe = true;
                }
 
-               // Clear all phantom stream info
-               if (pipe->stream) {
-                       pipe->stream->mall_stream_config.type = SUBVP_NONE;
-                       pipe->stream->mall_stream_config.paired_stream = NULL;
-               }
+               /* For non-full updates, a shallow copy of the current state
+                * is created. In this case we don't want to erase the current
+                * state (there can be 2 HIRQL threads, one in flip, and one in
+                * checkMPO) that can cause a race condition.
+                *
+                * This is just a workaround, needs a proper fix.
+                */
+               if (!fast_update) {
+                       // Clear all phantom stream info
+                       if (pipe->stream) {
+                               pipe->stream->mall_stream_config.type = SUBVP_NONE;
+                               pipe->stream->mall_stream_config.paired_stream = NULL;
+                       }
 
-               if (pipe->plane_state) {
-                       pipe->plane_state->is_phantom = false;
+                       if (pipe->plane_state) {
+                               pipe->plane_state->is_phantom = false;
+                       }
                }
        }
        return removed_pipe;
                pipes[pipe_cnt].pipe.src.unbounded_req_mode = false;
                pipes[pipe_cnt].pipe.scale_ratio_depth.lb_depth = dm_lb_19;
 
-               switch (pipe->stream->mall_stream_config.type) {
-               case SUBVP_MAIN:
-                       pipes[pipe_cnt].pipe.src.use_mall_for_pstate_change = dm_use_mall_pstate_change_sub_viewport;
-                       subvp_in_use = true;
-                       break;
-               case SUBVP_PHANTOM:
-                       pipes[pipe_cnt].pipe.src.use_mall_for_pstate_change = dm_use_mall_pstate_change_phantom_pipe;
-                       pipes[pipe_cnt].pipe.src.use_mall_for_static_screen = dm_use_mall_static_screen_disable;
-                       // Disallow unbounded req for SubVP according to DCHUB programming guide
-                       pipes[pipe_cnt].pipe.src.unbounded_req_mode = false;
-                       break;
-               case SUBVP_NONE:
-                       pipes[pipe_cnt].pipe.src.use_mall_for_pstate_change = dm_use_mall_pstate_change_disable;
-                       pipes[pipe_cnt].pipe.src.use_mall_for_static_screen = dm_use_mall_static_screen_disable;
-                       break;
-               default:
-                       break;
+               /* Only populate DML input with subvp info for full updates.
+                * This is just a workaround -- needs a proper fix.
+                */
+               if (!fast_validate) {
+                       switch (pipe->stream->mall_stream_config.type) {
+                       case SUBVP_MAIN:
+                               pipes[pipe_cnt].pipe.src.use_mall_for_pstate_change = dm_use_mall_pstate_change_sub_viewport;
+                               subvp_in_use = true;
+                               break;
+                       case SUBVP_PHANTOM:
+                               pipes[pipe_cnt].pipe.src.use_mall_for_pstate_change = dm_use_mall_pstate_change_phantom_pipe;
+                               pipes[pipe_cnt].pipe.src.use_mall_for_static_screen = dm_use_mall_static_screen_disable;
+                               // Disallow unbounded req for SubVP according to DCHUB programming guide
+                               pipes[pipe_cnt].pipe.src.unbounded_req_mode = false;
+                               break;
+                       case SUBVP_NONE:
+                               pipes[pipe_cnt].pipe.src.use_mall_for_pstate_change = dm_use_mall_pstate_change_disable;
+                               pipes[pipe_cnt].pipe.src.use_mall_for_static_screen = dm_use_mall_static_screen_disable;
+                               break;
+                       default:
+                               break;
+                       }
                }
 
                pipes[pipe_cnt].dout.dsc_input_bpc = 0;
 
                // If SubVP pipe config is unsupported (or cannot be used for UCLK switching)
                // remove phantom pipes and repopulate dml pipes
                if (!found_supported_config) {
-                       dc->res_pool->funcs->remove_phantom_pipes(dc, context);
+                       dc->res_pool->funcs->remove_phantom_pipes(dc, context, false);
                        vba->DRAMClockChangeSupport[*vlevel][vba->maxMpcComb] = dm_dram_clock_change_unsupported;
                        *pipe_cnt = dc->res_pool->funcs->populate_dml_pipes(dc, context, pipes, false);
 
                return false;
 
        // For each full update, remove all existing phantom pipes first
-       dc->res_pool->funcs->remove_phantom_pipes(dc, context);
+       dc->res_pool->funcs->remove_phantom_pipes(dc, context, fast_validate);
 
        dc->res_pool->funcs->update_soc_for_wm_a(dc, context);