drm/msm/dpu: remove QoS teardown on plane destruction
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 1 Dec 2023 21:18:40 +0000 (00:18 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 5 Dec 2023 19:14:33 +0000 (22:14 +0300)
There is little point in disabling QoS on plane destruction: it happens
during DPU device destruction process, after which there will be no
running planes.

Reviewed-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/570049/
Link: https://lore.kernel.org/r/20231201211845.1026967-9-dmitry.baryshkov@linaro.org
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c

index 97d2211de0e3a6ddb5dc05a2e27d2a54239e7978..dae7d57f588107e63aa8c3c2a4c12917f413ac27 100644 (file)
@@ -1217,17 +1217,10 @@ static void dpu_plane_atomic_update(struct drm_plane *plane,
 static void dpu_plane_destroy(struct drm_plane *plane)
 {
        struct dpu_plane *pdpu = plane ? to_dpu_plane(plane) : NULL;
-       struct dpu_plane_state *pstate;
 
        DPU_DEBUG_PLANE(pdpu, "\n");
 
        if (pdpu) {
-               pstate = to_dpu_plane_state(plane->state);
-               _dpu_plane_set_qos_ctrl(plane, &pstate->pipe, false);
-
-               if (pstate->r_pipe.sspp)
-                       _dpu_plane_set_qos_ctrl(plane, &pstate->r_pipe, false);
-
                /* this will destroy the states as well */
                drm_plane_cleanup(plane);