From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
DPU version 13 introduces changes to the interrupt register
layout. Update the driver to support these modifications for
proper interrupt handling.
Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com>
Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
---
.../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 89 ++++++++++++++++++-
1 file changed, 88 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c
index 49bd77a755aa..8d265581f6ec 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c
@@ -40,6 +40,15 @@
#define MDP_INTF_REV_7xxx_INTR_TEAR_STATUS(intf) (MDP_INTF_REV_7xxx_TEAR_OFF(intf) + 0x004)
#define MDP_INTF_REV_7xxx_INTR_TEAR_CLEAR(intf) (MDP_INTF_REV_7xxx_TEAR_OFF(intf) + 0x008)
+#define MDP_INTF_REV_13xx_OFF(intf) (0x18D000 + 0x1000 * (intf))
+#define MDP_INTF_REV_13xx_INTR_EN(intf) (MDP_INTF_REV_13xx_OFF(intf) + 0x1c0)
+#define MDP_INTF_REV_13xx_INTR_STATUS(intf) (MDP_INTF_REV_13xx_OFF(intf) + 0x1c4)
+#define MDP_INTF_REV_13xx_INTR_CLEAR(intf) (MDP_INTF_REV_13xx_OFF(intf) + 0x1c8)
+#define MDP_INTF_REV_13xx_TEAR_OFF(intf) (0x18D800 + 0x1000 * (intf))
+#define MDP_INTF_REV_13xx_INTR_TEAR_EN(intf) (MDP_INTF_REV_13xx_TEAR_OFF(intf) + 0x000)
+#define MDP_INTF_REV_13xx_INTR_TEAR_STATUS(intf) (MDP_INTF_REV_13xx_TEAR_OFF(intf) + 0x004)
+#define MDP_INTF_REV_13xx_INTR_TEAR_CLEAR(intf) (MDP_INTF_REV_13xx_TEAR_OFF(intf) + 0x008)
+
/**
* struct dpu_intr_reg - array of DPU register sets
* @clr_off: offset to CLEAR reg
@@ -199,6 +208,82 @@ static const struct dpu_intr_reg dpu_intr_set_7xxx[] = {
},
};
+/*
+ * dpu_intr_set_13xx - List of DPU interrupt registers for DPU >= 13.0
+ */
+static const struct dpu_intr_reg dpu_intr_set_13xx[] = {
+ [MDP_SSPP_TOP0_INTR] = {
+ INTR_CLEAR,
+ INTR_EN,
+ INTR_STATUS
+ },
+ [MDP_SSPP_TOP0_INTR2] = {
+ INTR2_CLEAR,
+ INTR2_EN,
+ INTR2_STATUS
+ },
+ [MDP_SSPP_TOP0_HIST_INTR] = {
+ HIST_INTR_CLEAR,
+ HIST_INTR_EN,
+ HIST_INTR_STATUS
+ },
+ [MDP_INTF0_INTR] = {
+ MDP_INTF_REV_13xx_INTR_CLEAR(0),
+ MDP_INTF_REV_13xx_INTR_EN(0),
+ MDP_INTF_REV_13xx_INTR_STATUS(0)
+ },
+ [MDP_INTF1_INTR] = {
+ MDP_INTF_REV_13xx_INTR_CLEAR(1),
+ MDP_INTF_REV_13xx_INTR_EN(1),
+ MDP_INTF_REV_13xx_INTR_STATUS(1)
+ },
+ [MDP_INTF1_TEAR_INTR] = {
+ MDP_INTF_REV_13xx_INTR_TEAR_CLEAR(1),
+ MDP_INTF_REV_13xx_INTR_TEAR_EN(1),
+ MDP_INTF_REV_13xx_INTR_TEAR_STATUS(1)
+ },
+ [MDP_INTF2_INTR] = {
+ MDP_INTF_REV_13xx_INTR_CLEAR(2),
+ MDP_INTF_REV_13xx_INTR_EN(2),
+ MDP_INTF_REV_13xx_INTR_STATUS(2)
+ },
+ [MDP_INTF2_TEAR_INTR] = {
+ MDP_INTF_REV_13xx_INTR_TEAR_CLEAR(2),
+ MDP_INTF_REV_13xx_INTR_TEAR_EN(2),
+ MDP_INTF_REV_13xx_INTR_TEAR_STATUS(2)
+ },
+ [MDP_INTF3_INTR] = {
+ MDP_INTF_REV_13xx_INTR_CLEAR(3),
+ MDP_INTF_REV_13xx_INTR_EN(3),
+ MDP_INTF_REV_13xx_INTR_STATUS(3)
+ },
+ [MDP_INTF4_INTR] = {
+ MDP_INTF_REV_13xx_INTR_CLEAR(4),
+ MDP_INTF_REV_13xx_INTR_EN(4),
+ MDP_INTF_REV_13xx_INTR_STATUS(4)
+ },
+ [MDP_INTF5_INTR] = {
+ MDP_INTF_REV_13xx_INTR_CLEAR(5),
+ MDP_INTF_REV_13xx_INTR_EN(5),
+ MDP_INTF_REV_13xx_INTR_STATUS(5)
+ },
+ [MDP_INTF6_INTR] = {
+ MDP_INTF_REV_13xx_INTR_CLEAR(6),
+ MDP_INTF_REV_13xx_INTR_EN(6),
+ MDP_INTF_REV_13xx_INTR_STATUS(6)
+ },
+ [MDP_INTF7_INTR] = {
+ MDP_INTF_REV_13xx_INTR_CLEAR(7),
+ MDP_INTF_REV_13xx_INTR_EN(7),
+ MDP_INTF_REV_13xx_INTR_STATUS(7)
+ },
+ [MDP_INTF8_INTR] = {
+ MDP_INTF_REV_13xx_INTR_CLEAR(8),
+ MDP_INTF_REV_13xx_INTR_EN(8),
+ MDP_INTF_REV_13xx_INTR_STATUS(8)
+ },
+};
+
#define DPU_IRQ_MASK(irq_idx) (BIT(DPU_IRQ_BIT(irq_idx)))
static inline bool dpu_core_irq_is_valid(unsigned int irq_idx)
@@ -507,7 +592,9 @@ struct dpu_hw_intr *dpu_hw_intr_init(struct drm_device *dev,
if (!intr)
return ERR_PTR(-ENOMEM);
- if (m->mdss_ver->core_major_ver >= 7)
+ if (m->mdss_ver->core_major_ver >= 13)
+ intr->intr_set = dpu_intr_set_13xx;
+ else if (m->mdss_ver->core_major_ver >= 7)
intr->intr_set = dpu_intr_set_7xxx;
else
intr->intr_set = dpu_intr_set_legacy;
--
2.34.1
On 10/23/2025 12:53 AM, yuanjie yang wrote:
> From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
Hi Yuanjie,
Can you reword the commit message title to be more clear on what this
patch *does*? "Compatible with Kaanapali interrupt register" is vague.
Something like "Add interrupt registers for DPU 13.x" is a complete
sentence and makes it clear that you're adding interrupt registers.
Thanks,
Jessica Zhang
>
> DPU version 13 introduces changes to the interrupt register
> layout. Update the driver to support these modifications for
> proper interrupt handling.
>
> Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com>
> Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
> ---
> .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 89 ++++++++++++++++++-
> 1 file changed, 88 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c
> index 49bd77a755aa..8d265581f6ec 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c
> @@ -40,6 +40,15 @@
> #define MDP_INTF_REV_7xxx_INTR_TEAR_STATUS(intf) (MDP_INTF_REV_7xxx_TEAR_OFF(intf) + 0x004)
> #define MDP_INTF_REV_7xxx_INTR_TEAR_CLEAR(intf) (MDP_INTF_REV_7xxx_TEAR_OFF(intf) + 0x008)
>
> +#define MDP_INTF_REV_13xx_OFF(intf) (0x18D000 + 0x1000 * (intf))
> +#define MDP_INTF_REV_13xx_INTR_EN(intf) (MDP_INTF_REV_13xx_OFF(intf) + 0x1c0)
> +#define MDP_INTF_REV_13xx_INTR_STATUS(intf) (MDP_INTF_REV_13xx_OFF(intf) + 0x1c4)
> +#define MDP_INTF_REV_13xx_INTR_CLEAR(intf) (MDP_INTF_REV_13xx_OFF(intf) + 0x1c8)
> +#define MDP_INTF_REV_13xx_TEAR_OFF(intf) (0x18D800 + 0x1000 * (intf))
> +#define MDP_INTF_REV_13xx_INTR_TEAR_EN(intf) (MDP_INTF_REV_13xx_TEAR_OFF(intf) + 0x000)
> +#define MDP_INTF_REV_13xx_INTR_TEAR_STATUS(intf) (MDP_INTF_REV_13xx_TEAR_OFF(intf) + 0x004)
> +#define MDP_INTF_REV_13xx_INTR_TEAR_CLEAR(intf) (MDP_INTF_REV_13xx_TEAR_OFF(intf) + 0x008)
> +
> /**
> * struct dpu_intr_reg - array of DPU register sets
> * @clr_off: offset to CLEAR reg
> @@ -199,6 +208,82 @@ static const struct dpu_intr_reg dpu_intr_set_7xxx[] = {
> },
> };
>
> +/*
> + * dpu_intr_set_13xx - List of DPU interrupt registers for DPU >= 13.0
> + */
> +static const struct dpu_intr_reg dpu_intr_set_13xx[] = {
> + [MDP_SSPP_TOP0_INTR] = {
> + INTR_CLEAR,
> + INTR_EN,
> + INTR_STATUS
> + },
> + [MDP_SSPP_TOP0_INTR2] = {
> + INTR2_CLEAR,
> + INTR2_EN,
> + INTR2_STATUS
> + },
> + [MDP_SSPP_TOP0_HIST_INTR] = {
> + HIST_INTR_CLEAR,
> + HIST_INTR_EN,
> + HIST_INTR_STATUS
> + },
> + [MDP_INTF0_INTR] = {
> + MDP_INTF_REV_13xx_INTR_CLEAR(0),
> + MDP_INTF_REV_13xx_INTR_EN(0),
> + MDP_INTF_REV_13xx_INTR_STATUS(0)
> + },
> + [MDP_INTF1_INTR] = {
> + MDP_INTF_REV_13xx_INTR_CLEAR(1),
> + MDP_INTF_REV_13xx_INTR_EN(1),
> + MDP_INTF_REV_13xx_INTR_STATUS(1)
> + },
> + [MDP_INTF1_TEAR_INTR] = {
> + MDP_INTF_REV_13xx_INTR_TEAR_CLEAR(1),
> + MDP_INTF_REV_13xx_INTR_TEAR_EN(1),
> + MDP_INTF_REV_13xx_INTR_TEAR_STATUS(1)
> + },
> + [MDP_INTF2_INTR] = {
> + MDP_INTF_REV_13xx_INTR_CLEAR(2),
> + MDP_INTF_REV_13xx_INTR_EN(2),
> + MDP_INTF_REV_13xx_INTR_STATUS(2)
> + },
> + [MDP_INTF2_TEAR_INTR] = {
> + MDP_INTF_REV_13xx_INTR_TEAR_CLEAR(2),
> + MDP_INTF_REV_13xx_INTR_TEAR_EN(2),
> + MDP_INTF_REV_13xx_INTR_TEAR_STATUS(2)
> + },
> + [MDP_INTF3_INTR] = {
> + MDP_INTF_REV_13xx_INTR_CLEAR(3),
> + MDP_INTF_REV_13xx_INTR_EN(3),
> + MDP_INTF_REV_13xx_INTR_STATUS(3)
> + },
> + [MDP_INTF4_INTR] = {
> + MDP_INTF_REV_13xx_INTR_CLEAR(4),
> + MDP_INTF_REV_13xx_INTR_EN(4),
> + MDP_INTF_REV_13xx_INTR_STATUS(4)
> + },
> + [MDP_INTF5_INTR] = {
> + MDP_INTF_REV_13xx_INTR_CLEAR(5),
> + MDP_INTF_REV_13xx_INTR_EN(5),
> + MDP_INTF_REV_13xx_INTR_STATUS(5)
> + },
> + [MDP_INTF6_INTR] = {
> + MDP_INTF_REV_13xx_INTR_CLEAR(6),
> + MDP_INTF_REV_13xx_INTR_EN(6),
> + MDP_INTF_REV_13xx_INTR_STATUS(6)
> + },
> + [MDP_INTF7_INTR] = {
> + MDP_INTF_REV_13xx_INTR_CLEAR(7),
> + MDP_INTF_REV_13xx_INTR_EN(7),
> + MDP_INTF_REV_13xx_INTR_STATUS(7)
> + },
> + [MDP_INTF8_INTR] = {
> + MDP_INTF_REV_13xx_INTR_CLEAR(8),
> + MDP_INTF_REV_13xx_INTR_EN(8),
> + MDP_INTF_REV_13xx_INTR_STATUS(8)
> + },
> +};
> +
> #define DPU_IRQ_MASK(irq_idx) (BIT(DPU_IRQ_BIT(irq_idx)))
>
> static inline bool dpu_core_irq_is_valid(unsigned int irq_idx)
> @@ -507,7 +592,9 @@ struct dpu_hw_intr *dpu_hw_intr_init(struct drm_device *dev,
> if (!intr)
> return ERR_PTR(-ENOMEM);
>
> - if (m->mdss_ver->core_major_ver >= 7)
> + if (m->mdss_ver->core_major_ver >= 13)
> + intr->intr_set = dpu_intr_set_13xx;
> + else if (m->mdss_ver->core_major_ver >= 7)
> intr->intr_set = dpu_intr_set_7xxx;
> else
> intr->intr_set = dpu_intr_set_legacy;
On Mon, Oct 27, 2025 at 11:07:20PM -0700, Jessica Zhang wrote:
> On 10/23/2025 12:53 AM, yuanjie yang wrote:
> > From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
>
> Hi Yuanjie,
>
> Can you reword the commit message title to be more clear on what this patch
> *does*? "Compatible with Kaanapali interrupt register" is vague.
>
> Something like "Add interrupt registers for DPU 13.x" is a complete sentence
> and makes it clear that you're adding interrupt registers.
>
Sure, will use "Add interrupt registers for DPU 13.x" for commit message.
Thanks,
Yuanjie
> Thanks,
>
> Jessica Zhang
>
> >
> > DPU version 13 introduces changes to the interrupt register
> > layout. Update the driver to support these modifications for
> > proper interrupt handling.
> >
> > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com>
> > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
> > ---
> > .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 89 ++++++++++++++++++-
> > 1 file changed, 88 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c
> > index 49bd77a755aa..8d265581f6ec 100644
> > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c
> > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c
> > @@ -40,6 +40,15 @@
> > #define MDP_INTF_REV_7xxx_INTR_TEAR_STATUS(intf) (MDP_INTF_REV_7xxx_TEAR_OFF(intf) + 0x004)
> > #define MDP_INTF_REV_7xxx_INTR_TEAR_CLEAR(intf) (MDP_INTF_REV_7xxx_TEAR_OFF(intf) + 0x008)
> > +#define MDP_INTF_REV_13xx_OFF(intf) (0x18D000 + 0x1000 * (intf))
> > +#define MDP_INTF_REV_13xx_INTR_EN(intf) (MDP_INTF_REV_13xx_OFF(intf) + 0x1c0)
> > +#define MDP_INTF_REV_13xx_INTR_STATUS(intf) (MDP_INTF_REV_13xx_OFF(intf) + 0x1c4)
> > +#define MDP_INTF_REV_13xx_INTR_CLEAR(intf) (MDP_INTF_REV_13xx_OFF(intf) + 0x1c8)
> > +#define MDP_INTF_REV_13xx_TEAR_OFF(intf) (0x18D800 + 0x1000 * (intf))
> > +#define MDP_INTF_REV_13xx_INTR_TEAR_EN(intf) (MDP_INTF_REV_13xx_TEAR_OFF(intf) + 0x000)
> > +#define MDP_INTF_REV_13xx_INTR_TEAR_STATUS(intf) (MDP_INTF_REV_13xx_TEAR_OFF(intf) + 0x004)
> > +#define MDP_INTF_REV_13xx_INTR_TEAR_CLEAR(intf) (MDP_INTF_REV_13xx_TEAR_OFF(intf) + 0x008)
> > +
> > /**
> > * struct dpu_intr_reg - array of DPU register sets
> > * @clr_off: offset to CLEAR reg
> > @@ -199,6 +208,82 @@ static const struct dpu_intr_reg dpu_intr_set_7xxx[] = {
> > },
> > };
> > +/*
> > + * dpu_intr_set_13xx - List of DPU interrupt registers for DPU >= 13.0
> > + */
> > +static const struct dpu_intr_reg dpu_intr_set_13xx[] = {
> > + [MDP_SSPP_TOP0_INTR] = {
> > + INTR_CLEAR,
> > + INTR_EN,
> > + INTR_STATUS
> > + },
> > + [MDP_SSPP_TOP0_INTR2] = {
> > + INTR2_CLEAR,
> > + INTR2_EN,
> > + INTR2_STATUS
> > + },
> > + [MDP_SSPP_TOP0_HIST_INTR] = {
> > + HIST_INTR_CLEAR,
> > + HIST_INTR_EN,
> > + HIST_INTR_STATUS
> > + },
> > + [MDP_INTF0_INTR] = {
> > + MDP_INTF_REV_13xx_INTR_CLEAR(0),
> > + MDP_INTF_REV_13xx_INTR_EN(0),
> > + MDP_INTF_REV_13xx_INTR_STATUS(0)
> > + },
> > + [MDP_INTF1_INTR] = {
> > + MDP_INTF_REV_13xx_INTR_CLEAR(1),
> > + MDP_INTF_REV_13xx_INTR_EN(1),
> > + MDP_INTF_REV_13xx_INTR_STATUS(1)
> > + },
> > + [MDP_INTF1_TEAR_INTR] = {
> > + MDP_INTF_REV_13xx_INTR_TEAR_CLEAR(1),
> > + MDP_INTF_REV_13xx_INTR_TEAR_EN(1),
> > + MDP_INTF_REV_13xx_INTR_TEAR_STATUS(1)
> > + },
> > + [MDP_INTF2_INTR] = {
> > + MDP_INTF_REV_13xx_INTR_CLEAR(2),
> > + MDP_INTF_REV_13xx_INTR_EN(2),
> > + MDP_INTF_REV_13xx_INTR_STATUS(2)
> > + },
> > + [MDP_INTF2_TEAR_INTR] = {
> > + MDP_INTF_REV_13xx_INTR_TEAR_CLEAR(2),
> > + MDP_INTF_REV_13xx_INTR_TEAR_EN(2),
> > + MDP_INTF_REV_13xx_INTR_TEAR_STATUS(2)
> > + },
> > + [MDP_INTF3_INTR] = {
> > + MDP_INTF_REV_13xx_INTR_CLEAR(3),
> > + MDP_INTF_REV_13xx_INTR_EN(3),
> > + MDP_INTF_REV_13xx_INTR_STATUS(3)
> > + },
> > + [MDP_INTF4_INTR] = {
> > + MDP_INTF_REV_13xx_INTR_CLEAR(4),
> > + MDP_INTF_REV_13xx_INTR_EN(4),
> > + MDP_INTF_REV_13xx_INTR_STATUS(4)
> > + },
> > + [MDP_INTF5_INTR] = {
> > + MDP_INTF_REV_13xx_INTR_CLEAR(5),
> > + MDP_INTF_REV_13xx_INTR_EN(5),
> > + MDP_INTF_REV_13xx_INTR_STATUS(5)
> > + },
> > + [MDP_INTF6_INTR] = {
> > + MDP_INTF_REV_13xx_INTR_CLEAR(6),
> > + MDP_INTF_REV_13xx_INTR_EN(6),
> > + MDP_INTF_REV_13xx_INTR_STATUS(6)
> > + },
> > + [MDP_INTF7_INTR] = {
> > + MDP_INTF_REV_13xx_INTR_CLEAR(7),
> > + MDP_INTF_REV_13xx_INTR_EN(7),
> > + MDP_INTF_REV_13xx_INTR_STATUS(7)
> > + },
> > + [MDP_INTF8_INTR] = {
> > + MDP_INTF_REV_13xx_INTR_CLEAR(8),
> > + MDP_INTF_REV_13xx_INTR_EN(8),
> > + MDP_INTF_REV_13xx_INTR_STATUS(8)
> > + },
> > +};
> > +
> > #define DPU_IRQ_MASK(irq_idx) (BIT(DPU_IRQ_BIT(irq_idx)))
> > static inline bool dpu_core_irq_is_valid(unsigned int irq_idx)
> > @@ -507,7 +592,9 @@ struct dpu_hw_intr *dpu_hw_intr_init(struct drm_device *dev,
> > if (!intr)
> > return ERR_PTR(-ENOMEM);
> > - if (m->mdss_ver->core_major_ver >= 7)
> > + if (m->mdss_ver->core_major_ver >= 13)
> > + intr->intr_set = dpu_intr_set_13xx;
> > + else if (m->mdss_ver->core_major_ver >= 7)
> > intr->intr_set = dpu_intr_set_7xxx;
> > else
> > intr->intr_set = dpu_intr_set_legacy;
On Thu, Oct 23, 2025 at 03:53:52PM +0800, yuanjie yang wrote: > From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > > DPU version 13 introduces changes to the interrupt register > layout. Update the driver to support these modifications for > proper interrupt handling. So... Previous patch enabled support for the platform and it has been using wrong registers for interrupts? I think that's broken. > > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> > --- > .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 89 ++++++++++++++++++- > 1 file changed, 88 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c > index 49bd77a755aa..8d265581f6ec 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c > @@ -40,6 +40,15 @@ > #define MDP_INTF_REV_7xxx_INTR_TEAR_STATUS(intf) (MDP_INTF_REV_7xxx_TEAR_OFF(intf) + 0x004) > #define MDP_INTF_REV_7xxx_INTR_TEAR_CLEAR(intf) (MDP_INTF_REV_7xxx_TEAR_OFF(intf) + 0x008) > > +#define MDP_INTF_REV_13xx_OFF(intf) (0x18D000 + 0x1000 * (intf)) Lowercase hex > +#define MDP_INTF_REV_13xx_INTR_EN(intf) (MDP_INTF_REV_13xx_OFF(intf) + 0x1c0) > +#define MDP_INTF_REV_13xx_INTR_STATUS(intf) (MDP_INTF_REV_13xx_OFF(intf) + 0x1c4) > +#define MDP_INTF_REV_13xx_INTR_CLEAR(intf) (MDP_INTF_REV_13xx_OFF(intf) + 0x1c8) > +#define MDP_INTF_REV_13xx_TEAR_OFF(intf) (0x18D800 + 0x1000 * (intf)) > +#define MDP_INTF_REV_13xx_INTR_TEAR_EN(intf) (MDP_INTF_REV_13xx_TEAR_OFF(intf) + 0x000) > +#define MDP_INTF_REV_13xx_INTR_TEAR_STATUS(intf) (MDP_INTF_REV_13xx_TEAR_OFF(intf) + 0x004) > +#define MDP_INTF_REV_13xx_INTR_TEAR_CLEAR(intf) (MDP_INTF_REV_13xx_TEAR_OFF(intf) + 0x008) > + > /** > * struct dpu_intr_reg - array of DPU register sets > * @clr_off: offset to CLEAR reg -- With best wishes Dmitry
© 2016 - 2026 Red Hat, Inc.