Skip to contentSkip to conversation

drm/msm/dpu: Add more of the INTF interrupt regions

PATCH In review Bjorn Andersson 3 participants 4 messages Nov 23, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/msm/dpu: Add more of the INTF interrupt regions

In addition to the other 7xxx INTF interrupt regions, SM8350 has additional INTF regions at 0x0ae37000, 0x0ae38000 and 0x0ae39000, define these. The 7xxx naming scheme of the bits are kept for consistency.

---
 .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c  | 18 ++++++++++++++++++
 .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h  |  3 +++
 2 files changed, 21 insertions(+)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c +18 -0
index d2b6dca487e3..a77a5eaa78ad 100644
@@ -30,6 +30,9 @@
 #define MDP_AD4_INTR_STATUS_OFF		0x420
 #define MDP_INTF_0_OFF_REV_7xxx             0x34000
 #define MDP_INTF_1_OFF_REV_7xxx             0x35000
+#define MDP_INTF_2_OFF_REV_7xxx             0x36000
+#define MDP_INTF_3_OFF_REV_7xxx             0x37000
+#define MDP_INTF_4_OFF_REV_7xxx             0x38000
 #define MDP_INTF_5_OFF_REV_7xxx             0x39000
 
 /**
@@ -110,6 +113,21 @@ static const struct dpu_intr_reg dpu_intr_set[] = {
 		MDP_INTF_1_OFF_REV_7xxx+INTF_INTR_EN,
 		MDP_INTF_1_OFF_REV_7xxx+INTF_INTR_STATUS
 	},
+	{
+		MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_CLEAR,
+		MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_EN,
+		MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_STATUS
+	},
+	{
+		MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_CLEAR,
+		MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_EN,
+		MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_STATUS
+	},
+	{
+		MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_CLEAR,
+		MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_EN,
+		MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_STATUS
+	},
 	{
 		MDP_INTF_5_OFF_REV_7xxx+INTF_INTR_CLEAR,
 		MDP_INTF_5_OFF_REV_7xxx+INTF_INTR_EN,
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h +3 -0
index d50e78c9f148..1ab75cccd145 100644
@@ -26,6 +26,9 @@ enum dpu_hw_intr_reg {
 	MDP_AD4_1_INTR,
 	MDP_INTF0_7xxx_INTR,
 	MDP_INTF1_7xxx_INTR,
+	MDP_INTF2_7xxx_INTR,
+	MDP_INTF3_7xxx_INTR,
+	MDP_INTF4_7xxx_INTR,
 	MDP_INTF5_7xxx_INTR,
 	MDP_INTR_MAX,
 };
Signature · 1 line
2.33.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 52 lines · Bjorn Andersson

In addition to the other 7xxx INTF interrupt regions, SM8350 has additional INTF regions at 0x0ae37000, 0x0ae38000 and 0x0ae39000, define these. The 7xxx naming scheme of the bits are kept for consistency.

---
 .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c  | 18 ++++++++++++++++++
 .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h  |  3 +++
 2 files changed, 21 insertions(+)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c +18 -0
index d2b6dca487e3..a77a5eaa78ad 100644
@@ -30,6 +30,9 @@
 #define MDP_AD4_INTR_STATUS_OFF                0x420
 #define MDP_INTF_0_OFF_REV_7xxx             0x34000
 #define MDP_INTF_1_OFF_REV_7xxx             0x35000
+#define MDP_INTF_2_OFF_REV_7xxx             0x36000
+#define MDP_INTF_3_OFF_REV_7xxx             0x37000
+#define MDP_INTF_4_OFF_REV_7xxx             0x38000
 #define MDP_INTF_5_OFF_REV_7xxx             0x39000
 
 /**
@@ -110,6 +113,21 @@ static const struct dpu_intr_reg dpu_intr_set[] = {
                MDP_INTF_1_OFF_REV_7xxx+INTF_INTR_EN,
                MDP_INTF_1_OFF_REV_7xxx+INTF_INTR_STATUS
        },
+       {
+               MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_CLEAR,
+               MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_EN,
+               MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_STATUS
+       },
+       {
+               MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_CLEAR,
+               MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_EN,
+               MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_STATUS
+       },
+       {
+               MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_CLEAR,
+               MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_EN,
+               MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_STATUS
+       },
        {
                MDP_INTF_5_OFF_REV_7xxx+INTF_INTR_CLEAR,
                MDP_INTF_5_OFF_REV_7xxx+INTF_INTR_EN,
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h +0 -0
index d50e78c9f148..1ab75cccd145 100644

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h enum dpu_hw_intr_reg { · line 34

Quoted 9 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h +3 -0
@@ -26,6 +26,9 @@ enum dpu_hw_intr_reg {
        MDP_AD4_1_INTR,
        MDP_INTF0_7xxx_INTR,
        MDP_INTF1_7xxx_INTR,
+       MDP_INTF2_7xxx_INTR,
+       MDP_INTF3_7xxx_INTR,
+       MDP_INTF4_7xxx_INTR,
        MDP_INTF5_7xxx_INTR,
        MDP_INTR_MAX,
 };
Reviewed-by on v1 1/1
#2 lore raw
In reply to Bjorn Andersson

Hi Bjorn

Quoted 4 lines · Bjorn Andersson

In addition to the other 7xxx INTF interrupt regions, SM8350 has additional INTF regions at 0x0ae37000, 0x0ae38000 and 0x0ae39000, define these. The 7xxx naming scheme of the bits are kept for consistency.

More than consistency, this is because both sc7280 and SM8350 use MDP's 7x hw version.

Otherwise,

Quoted 57 lines
---
  .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c  | 18 ++++++++++++++++++
  .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h  |  3 +++
  2 files changed, 21 insertions(+)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c +18 -0
index d2b6dca487e3..a77a5eaa78ad 100644
@@ -30,6 +30,9 @@
  #define MDP_AD4_INTR_STATUS_OFF		0x420
  #define MDP_INTF_0_OFF_REV_7xxx             0x34000
  #define MDP_INTF_1_OFF_REV_7xxx             0x35000
+#define MDP_INTF_2_OFF_REV_7xxx             0x36000
+#define MDP_INTF_3_OFF_REV_7xxx             0x37000
+#define MDP_INTF_4_OFF_REV_7xxx             0x38000
  #define MDP_INTF_5_OFF_REV_7xxx             0x39000
 
  /**
@@ -110,6 +113,21 @@ static const struct dpu_intr_reg dpu_intr_set[] = {
  		MDP_INTF_1_OFF_REV_7xxx+INTF_INTR_EN,
  		MDP_INTF_1_OFF_REV_7xxx+INTF_INTR_STATUS
  	},
+	{
+		MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_CLEAR,
+		MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_EN,
+		MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_STATUS
+	},
+	{
+		MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_CLEAR,
+		MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_EN,
+		MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_STATUS
+	},
+	{
+		MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_CLEAR,
+		MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_EN,
+		MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_STATUS
+	},
  	{
  		MDP_INTF_5_OFF_REV_7xxx+INTF_INTR_CLEAR,
  		MDP_INTF_5_OFF_REV_7xxx+INTF_INTR_EN,
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h +3 -0
index d50e78c9f148..1ab75cccd145 100644
@@ -26,6 +26,9 @@ enum dpu_hw_intr_reg {
  	MDP_AD4_1_INTR,
  	MDP_INTF0_7xxx_INTR,
  	MDP_INTF1_7xxx_INTR,
+	MDP_INTF2_7xxx_INTR,
+	MDP_INTF3_7xxx_INTR,
+	MDP_INTF4_7xxx_INTR,
  	MDP_INTF5_7xxx_INTR,
  	MDP_INTR_MAX,
  };
#3 lore raw
Quoted 10 lines · Abhinav Kumar

Hi Bjorn

Quoted 4 lines · Bjorn Andersson

In addition to the other 7xxx INTF interrupt regions, SM8350 has additional INTF regions at 0x0ae37000, 0x0ae38000 and 0x0ae39000, define these. The 7xxx naming scheme of the bits are kept for consistency.

More than consistency, this is because both sc7280 and SM8350 use MDP's 7x hw version.

Aha, didn't connect the dots.
Thank you for the clarification.

Quoted 3 lines

Otherwise,

Thanks,
Bjorn

Quoted 56 lines
Quoted 56 lines
---
  .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c  | 18 ++++++++++++++++++
  .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h  |  3 +++
  2 files changed, 21 insertions(+)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c +18 -0
index d2b6dca487e3..a77a5eaa78ad 100644
@@ -30,6 +30,9 @@
  #define MDP_AD4_INTR_STATUS_OFF		0x420
  #define MDP_INTF_0_OFF_REV_7xxx             0x34000
  #define MDP_INTF_1_OFF_REV_7xxx             0x35000
+#define MDP_INTF_2_OFF_REV_7xxx             0x36000
+#define MDP_INTF_3_OFF_REV_7xxx             0x37000
+#define MDP_INTF_4_OFF_REV_7xxx             0x38000
  #define MDP_INTF_5_OFF_REV_7xxx             0x39000
  /**
@@ -110,6 +113,21 @@ static const struct dpu_intr_reg dpu_intr_set[] = {
  		MDP_INTF_1_OFF_REV_7xxx+INTF_INTR_EN,
  		MDP_INTF_1_OFF_REV_7xxx+INTF_INTR_STATUS
  	},
+	{
+		MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_CLEAR,
+		MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_EN,
+		MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_STATUS
+	},
+	{
+		MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_CLEAR,
+		MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_EN,
+		MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_STATUS
+	},
+	{
+		MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_CLEAR,
+		MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_EN,
+		MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_STATUS
+	},
  	{
  		MDP_INTF_5_OFF_REV_7xxx+INTF_INTR_CLEAR,
  		MDP_INTF_5_OFF_REV_7xxx+INTF_INTR_EN,
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h +3 -0
index d50e78c9f148..1ab75cccd145 100644
@@ -26,6 +26,9 @@ enum dpu_hw_intr_reg {
  	MDP_AD4_1_INTR,
  	MDP_INTF0_7xxx_INTR,
  	MDP_INTF1_7xxx_INTR,
+	MDP_INTF2_7xxx_INTR,
+	MDP_INTF3_7xxx_INTR,
+	MDP_INTF4_7xxx_INTR,
  	MDP_INTF5_7xxx_INTR,
  	MDP_INTR_MAX,
  };