Merge tag 'drm-msm-fixes-2022-04-13' of https://gitlab.freedesktop.org/drm/msm into...
authorDave Airlie <airlied@redhat.com>
Thu, 14 Apr 2022 05:06:21 +0000 (15:06 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 14 Apr 2022 05:06:21 +0000 (15:06 +1000)
Some msm fixes for v5.18.

kzalloc return checks, display fix, misc locking and scheduler bug, iommu present removal.

Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Rob Clark <robdclark@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/CAF6AEGvuTwx09MKwK68KWXqi4o7LxDGMUz1=Z7xOS+i=OV84Ug@mail.gmail.com
1  2 
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
drivers/gpu/drm/msm/msm_drv.c

@@@ -98,7 -91,17 +98,10 @@@ static void mdp5_plane_reset(struct drm
                __drm_atomic_helper_plane_destroy_state(plane->state);
  
        kfree(to_mdp5_plane_state(plane->state));
+       plane->state = NULL;
        mdp5_state = kzalloc(sizeof(*mdp5_state), GFP_KERNEL);
 -
 -      if (plane->type == DRM_PLANE_TYPE_PRIMARY)
 -              mdp5_state->base.zpos = STAGE_BASE;
 -      else
 -              mdp5_state->base.zpos = STAGE0 + drm_plane_index(plane);
 -      mdp5_state->base.normalized_zpos = mdp5_state->base.zpos;
 -
+       if (!mdp5_state)
+               return;
        __drm_atomic_helper_plane_reset(plane, &mdp5_state->base);
  }
  
Simple merge