On 2/8/2024 7:20 AM, Dmitry Baryshkov wrote:
dpu_encoder_phys_wb is the only user of encoder's atomic_check callback.
Move corresponding checks to drm_writeback_connector's implementation
and drop the dpu_encoder_phys_wb_atomic_check() function.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>
---
.../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 54 -------------------
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 9 ++--
drivers/gpu/drm/msm/disp/dpu1/dpu_writeback.c | 61 +++++++++++++++++++++-
drivers/gpu/drm/msm/disp/dpu1/dpu_writeback.h | 3 +-
4 files changed, 68 insertions(+), 59 deletions(-)
<Snip>
+
+ crtc = conn_state->crtc;
+ if (!crtc)
+ return 0;
+
This should fix the crash and rest of the change LGTM
Reviewed-by: Abhinav Kumar <quic_abhinavk@xxxxxxxxxxx>
Please give us a couple of days to re-test this and give our Tested-by
as we plan to rebase CDM over DP on top of this and post V2.