Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2541949lqo; Tue, 14 May 2024 01:39:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+f5+Qdn/w++pvh0Vx5jDNlJwSp+5x6+pm2wAcFd367JTf93VNUSkTYqAdHRtxVRVoPezT2zFo3OQi7608NWR1Iw/qgwX9Uz+h0muvPg== X-Google-Smtp-Source: AGHT+IEmg6VsnJDKEZCgDk81GLjBr8bm7dK0w985Kw9427gUGGhvdqvbjY3p+jGLQZ43HF2eCxqZ X-Received: by 2002:a0c:ea83:0:b0:6a3:3433:c759 with SMTP id 6a1803df08f44-6a33433c786mr52985276d6.5.1715675975409; Tue, 14 May 2024 01:39:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715675975; cv=pass; d=google.com; s=arc-20160816; b=y2jWUZCpYS3oiM8H4uBxWpO1EyTngOs2YANRdjMemmr/ERF8uRO8qsqcRGmXXcTkMb ZPiClJihAsjDgew6kGGYsSNMMrukm3qRhXqLjMjd+jkjT7j+ya7PEPPwkdW5R5u86jgz vpLMFsnGouXFa07MeG6sQpKmevfKil8y46YE2GyNqDCUHEbln2TuqaYyPuhT2bKQ8x+y M9qKqQbzPm5b0mXdY8mOZaJmgKd3g3z5OfsEhR0Av5mDIj+iGlryB6qcCRUTsjgAX0BN 6saTX5dr8t+CGqcp1/eyq50yS8YH2i8CwPdcY60MToDqMIbAq7f19/dXAwkUnBTrdAtH smkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=W+cQzK1jV7GXUwc2V171zeRC9Hwm7VPkbzzlgUEJxjQ=; fh=oB5FBvJZrF+jIjFoKTVVhSOGjrytef+NYfKCLU6DJe0=; b=ml83Oh3tMBlhZ5W831IraLNPo565Cl/VvjV3YljL+VzL+tI6wc/ZjRRmR3D5MHncEB 4JlubTZPyVmeP4F41knmdtvFQOgnautlODkrMOYDiWgBa6Qpf4zdId8dARMS1xAD5fne aVO+TeT6ANIJ12nmIAFWuZhtPhn4Lq8XWFp/NyouCWrBdGiCkNavI1ukex00xcy2weMo JkXOnmrWV+RST55RJXfvVw1woXkao5+IJPGOBog5ciFpZc+uayCkxc/zEP2WbxoDPaFY krxKaoOfNSOYEFxpUGA0dg42V7u9Y1ASpC1FSwz5WaFv48TpORDzul8Y6VEq5FnmkEIc IiHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lnWDa536; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-178441-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f2ba5a8si113578606d6.413.2024.05.14.01.39.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 01:39:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178441-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lnWDa536; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-178441-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 17F511C21229 for ; Tue, 14 May 2024 08:39:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 835D01CFBE; Tue, 14 May 2024 08:39:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="lnWDa536" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 815AD1799B; Tue, 14 May 2024 08:39:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715675968; cv=none; b=DK09hllAhP/DeFW3EN1kW/z4pAdPryoYnL1yFduiwaipHTZA8nczoSMNlfqAiys2eWX2cG1av6fm5q1J9Tobjt8yDB4Fjmp77ksbRiFhY4jH/NG0F1BCTyAeIRM7JaNVVxtHSGvelv807J13D/HcLIVhJaX8oAKEXXm/e4kM5Ls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715675968; c=relaxed/simple; bh=2XycVR45xKQGEy5c01ybn53EwoWGc4E2NoQNzJ4FvYE=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=tAghx9DigQXDe88QCjNmut9hQfXFeKybAZpH2wKhsVlHo3D6kOFzgk/Jfh/uT3vmy3XlFCoEJZnga5NTPQuf/B12v1Kuv0vEETXQzybjO+FRv03QFEb0ZlS6cghqGkMEVWT9fCV0LLtu1oVP1D6D8XV0NW5dngYFO+Cz8Lcgf8I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=lnWDa536; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44DJ8qGb009927; Tue, 14 May 2024 08:39:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=W+cQzK1jV7GXUwc2V171zeRC9Hwm7VPkbzzlgUEJxjQ=; b=ln WDa536xBLsio82+i8IHgpANcLLAcx3OKC5Sp4/05IHmCzVEXSXi0BD8hnumKV+Ef 4mdUBu04nsOX9k2megVmOTegd/WWGoCNisfSewWnaBdAf+vlRV/wt0PyIF4+j16v kCbS2e6OSv0ToV86RY1L/n9TzaTLCmyOjzz6ZvzHSsoQhAev95dkAi8R3v+LZRhT WPNQscWiiwIHMXnZW0glthKr+K+o2G6efmne6Zr2EgTLygsyA7lZUyX9x27svKO0 egzRzotUvQ/i4W5EIiaU8ocM7lrkMLKb7caAkJ6+hwYZ+IoGqaOub0DhVC+g8KtA hdUBdM5ovR1p9y1LpxIw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y21eddk78-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 May 2024 08:39:16 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44E8dFW7009982 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 May 2024 08:39:15 GMT Received: from [10.110.76.247] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 14 May 2024 01:39:14 -0700 Message-ID: <34743d0c-287f-be2a-847e-3a65eb4815fa@quicinc.com> Date: Tue, 14 May 2024 01:39:13 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] Revert "drm/msm/dpu: drop dpu_encoder_phys_ops.atomic_mode_set" Content-Language: en-US To: Dmitry Baryshkov , Rob Clark , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter CC: , , , References: <20240514-dpu-revert-ams-v1-1-b13623d6cd5f@linaro.org> From: Abhinav Kumar In-Reply-To: <20240514-dpu-revert-ams-v1-1-b13623d6cd5f@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: m7lMPOgT_FuV0DG9uxJClpePdwPWOyCm X-Proofpoint-ORIG-GUID: m7lMPOgT_FuV0DG9uxJClpePdwPWOyCm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-14_03,2024-05-10_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 adultscore=0 priorityscore=1501 bulkscore=0 spamscore=0 mlxscore=0 malwarescore=0 suspectscore=0 impostorscore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405140060 On 5/14/2024 12:56 AM, Dmitry Baryshkov wrote: > In the DPU driver blank IRQ handling is called from a vblank worker and > can happen outside of the irq_enable / irq_disable pair. Revert commit > d13f638c9b88 ("drm/msm/dpu: drop dpu_encoder_phys_ops.atomic_mode_set") > to fix vblank IRQ assignment for CMD DSI panels. > Can you please explain the sequence of events causing an issue due to moving the irq assignment to init and how is moving it back to modeset helping? > Fixes: d13f638c9b88 ("drm/msm/dpu: drop dpu_encoder_phys_ops.atomic_mode_set") > Signed-off-by: Dmitry Baryshkov > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 2 ++ > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h | 5 ++++ > .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 32 ++++++++++++---------- > .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 13 +++++++-- > .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 11 +++++++- > 5 files changed, 46 insertions(+), 17 deletions(-) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c > index 119f3ea50a7c..a7d8ecf3f5be 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c > @@ -1200,6 +1200,8 @@ static void dpu_encoder_virt_atomic_mode_set(struct drm_encoder *drm_enc, > phys->hw_ctl = to_dpu_hw_ctl(hw_ctl[i]); > > phys->cached_mode = crtc_state->adjusted_mode; > + if (phys->ops.atomic_mode_set) > + phys->ops.atomic_mode_set(phys, crtc_state, conn_state); > } > } > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h > index 002e89cc1705..30470cd15a48 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h > @@ -69,6 +69,8 @@ struct dpu_encoder_phys; > * @is_master: Whether this phys_enc is the current master > * encoder. Can be switched at enable time. Based > * on split_role and current mode (CMD/VID). > + * @atomic_mode_set: DRM Call. Set a DRM mode. > + * This likely caches the mode, for use at enable. > * @enable: DRM Call. Enable a DRM mode. > * @disable: DRM Call. Disable mode. > * @control_vblank_irq Register/Deregister for VBLANK IRQ > @@ -93,6 +95,9 @@ struct dpu_encoder_phys; > struct dpu_encoder_phys_ops { > void (*prepare_commit)(struct dpu_encoder_phys *encoder); > bool (*is_master)(struct dpu_encoder_phys *encoder); > + void (*atomic_mode_set)(struct dpu_encoder_phys *encoder, > + struct drm_crtc_state *crtc_state, > + struct drm_connector_state *conn_state); > void (*enable)(struct dpu_encoder_phys *encoder); > void (*disable)(struct dpu_encoder_phys *encoder); > int (*control_vblank_irq)(struct dpu_encoder_phys *enc, bool enable); > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c > index 489be1c0c704..95cd39b49668 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c > @@ -142,6 +142,23 @@ static void dpu_encoder_phys_cmd_underrun_irq(void *arg) > dpu_encoder_underrun_callback(phys_enc->parent, phys_enc); > } > > +static void dpu_encoder_phys_cmd_atomic_mode_set( > + struct dpu_encoder_phys *phys_enc, > + struct drm_crtc_state *crtc_state, > + struct drm_connector_state *conn_state) > +{ > + phys_enc->irq[INTR_IDX_CTL_START] = phys_enc->hw_ctl->caps->intr_start; > + > + phys_enc->irq[INTR_IDX_PINGPONG] = phys_enc->hw_pp->caps->intr_done; > + > + if (phys_enc->has_intf_te) > + phys_enc->irq[INTR_IDX_RDPTR] = phys_enc->hw_intf->cap->intr_tear_rd_ptr; > + else > + phys_enc->irq[INTR_IDX_RDPTR] = phys_enc->hw_pp->caps->intr_rdptr; > + > + phys_enc->irq[INTR_IDX_UNDERRUN] = phys_enc->hw_intf->cap->intr_underrun; > +} > + > static int _dpu_encoder_phys_cmd_handle_ppdone_timeout( > struct dpu_encoder_phys *phys_enc) > { > @@ -280,14 +297,6 @@ static void dpu_encoder_phys_cmd_irq_enable(struct dpu_encoder_phys *phys_enc) > phys_enc->hw_pp->idx - PINGPONG_0, > phys_enc->vblank_refcount); > > - phys_enc->irq[INTR_IDX_CTL_START] = phys_enc->hw_ctl->caps->intr_start; > - phys_enc->irq[INTR_IDX_PINGPONG] = phys_enc->hw_pp->caps->intr_done; > - > - if (phys_enc->has_intf_te) > - phys_enc->irq[INTR_IDX_RDPTR] = phys_enc->hw_intf->cap->intr_tear_rd_ptr; > - else > - phys_enc->irq[INTR_IDX_RDPTR] = phys_enc->hw_pp->caps->intr_rdptr; > - > dpu_core_irq_register_callback(phys_enc->dpu_kms, > phys_enc->irq[INTR_IDX_PINGPONG], > dpu_encoder_phys_cmd_pp_tx_done_irq, > @@ -318,10 +327,6 @@ static void dpu_encoder_phys_cmd_irq_disable(struct dpu_encoder_phys *phys_enc) > dpu_core_irq_unregister_callback(phys_enc->dpu_kms, phys_enc->irq[INTR_IDX_UNDERRUN]); > dpu_encoder_phys_cmd_control_vblank_irq(phys_enc, false); > dpu_core_irq_unregister_callback(phys_enc->dpu_kms, phys_enc->irq[INTR_IDX_PINGPONG]); > - > - phys_enc->irq[INTR_IDX_CTL_START] = 0; > - phys_enc->irq[INTR_IDX_PINGPONG] = 0; > - phys_enc->irq[INTR_IDX_RDPTR] = 0; > } > > static void dpu_encoder_phys_cmd_tearcheck_config( > @@ -698,6 +703,7 @@ static void dpu_encoder_phys_cmd_init_ops( > struct dpu_encoder_phys_ops *ops) > { > ops->is_master = dpu_encoder_phys_cmd_is_master; > + ops->atomic_mode_set = dpu_encoder_phys_cmd_atomic_mode_set; > ops->enable = dpu_encoder_phys_cmd_enable; > ops->disable = dpu_encoder_phys_cmd_disable; > ops->control_vblank_irq = dpu_encoder_phys_cmd_control_vblank_irq; > @@ -736,8 +742,6 @@ struct dpu_encoder_phys *dpu_encoder_phys_cmd_init(struct drm_device *dev, > > dpu_encoder_phys_cmd_init_ops(&phys_enc->ops); > phys_enc->intf_mode = INTF_MODE_CMD; > - phys_enc->irq[INTR_IDX_UNDERRUN] = phys_enc->hw_intf->cap->intr_underrun; > - > cmd_enc->stream_sel = 0; > > if (!phys_enc->hw_intf) { > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c > index ef69c2f408c3..636a97432d51 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c > @@ -356,6 +356,16 @@ static bool dpu_encoder_phys_vid_needs_single_flush( > return phys_enc->split_role != ENC_ROLE_SOLO; > } > > +static void dpu_encoder_phys_vid_atomic_mode_set( > + struct dpu_encoder_phys *phys_enc, > + struct drm_crtc_state *crtc_state, > + struct drm_connector_state *conn_state) > +{ > + phys_enc->irq[INTR_IDX_VSYNC] = phys_enc->hw_intf->cap->intr_vsync; > + > + phys_enc->irq[INTR_IDX_UNDERRUN] = phys_enc->hw_intf->cap->intr_underrun; > +} > + > static int dpu_encoder_phys_vid_control_vblank_irq( > struct dpu_encoder_phys *phys_enc, > bool enable) > @@ -699,6 +709,7 @@ static int dpu_encoder_phys_vid_get_frame_count( > static void dpu_encoder_phys_vid_init_ops(struct dpu_encoder_phys_ops *ops) > { > ops->is_master = dpu_encoder_phys_vid_is_master; > + ops->atomic_mode_set = dpu_encoder_phys_vid_atomic_mode_set; > ops->enable = dpu_encoder_phys_vid_enable; > ops->disable = dpu_encoder_phys_vid_disable; > ops->control_vblank_irq = dpu_encoder_phys_vid_control_vblank_irq; > @@ -737,8 +748,6 @@ struct dpu_encoder_phys *dpu_encoder_phys_vid_init(struct drm_device *dev, > > dpu_encoder_phys_vid_init_ops(&phys_enc->ops); > phys_enc->intf_mode = INTF_MODE_VIDEO; > - phys_enc->irq[INTR_IDX_VSYNC] = phys_enc->hw_intf->cap->intr_vsync; > - phys_enc->irq[INTR_IDX_UNDERRUN] = phys_enc->hw_intf->cap->intr_underrun; > > DPU_DEBUG_VIDENC(phys_enc, "created intf idx:%d\n", p->hw_intf->idx); > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c > index d3ea91c1d7d2..356dca5e5ea9 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c > @@ -404,6 +404,15 @@ static void dpu_encoder_phys_wb_irq_disable(struct dpu_encoder_phys *phys) > dpu_core_irq_unregister_callback(phys->dpu_kms, phys->irq[INTR_IDX_WB_DONE]); > } > > +static void dpu_encoder_phys_wb_atomic_mode_set( > + struct dpu_encoder_phys *phys_enc, > + struct drm_crtc_state *crtc_state, > + struct drm_connector_state *conn_state) > +{ > + > + phys_enc->irq[INTR_IDX_WB_DONE] = phys_enc->hw_wb->caps->intr_wb_done; > +} > + > static void _dpu_encoder_phys_wb_handle_wbdone_timeout( > struct dpu_encoder_phys *phys_enc) > { > @@ -640,6 +649,7 @@ static bool dpu_encoder_phys_wb_is_valid_for_commit(struct dpu_encoder_phys *phy > static void dpu_encoder_phys_wb_init_ops(struct dpu_encoder_phys_ops *ops) > { > ops->is_master = dpu_encoder_phys_wb_is_master; > + ops->atomic_mode_set = dpu_encoder_phys_wb_atomic_mode_set; > ops->enable = dpu_encoder_phys_wb_enable; > ops->disable = dpu_encoder_phys_wb_disable; > ops->wait_for_commit_done = dpu_encoder_phys_wb_wait_for_commit_done; > @@ -685,7 +695,6 @@ struct dpu_encoder_phys *dpu_encoder_phys_wb_init(struct drm_device *dev, > > dpu_encoder_phys_wb_init_ops(&phys_enc->ops); > phys_enc->intf_mode = INTF_MODE_WB_LINE; > - phys_enc->irq[INTR_IDX_WB_DONE] = phys_enc->hw_wb->caps->intr_wb_done; > > atomic_set(&wb_enc->wbirq_refcount, 0); > > > --- > base-commit: 75fa778d74b786a1608d55d655d42b480a6fa8bd > change-id: 20240514-dpu-revert-ams-9410abc1ee48 > > Best regards,