Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: use local __VLV_DISPLAY_BASE for i915 registers
@ 2026-11-24 13:31 Jani Nikula
  2026-11-24 13:46 ` ✗ CI.KUnit: failure for " Patchwork
  2026-11-24 19:55 ` [PATCH] " Ville Syrjälä
  0 siblings, 2 replies; 3+ messages in thread
From: Jani Nikula @ 2026-11-24 13:31 UTC (permalink / raw)
  To: intel-gfx, intel-xe; +Cc: jani.nikula, Ville Syrjälä

Avoid including intel_display_reg_defs.h just for VLV_DISPLAY_BASE. It's
not great to have multiple definitions, but for now just break the
dependency.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/i915/i915_reg.h              | 19 ++++++++++---------
 include/drm/intel/intel_gmd_interrupt_regs.h | 14 ++++++++------
 2 files changed, 18 insertions(+), 15 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 32f8bb39babf..06b3ee0ad1b9 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -26,7 +26,6 @@
 #define _I915_REG_H_
 
 #include "i915_reg_defs.h"
-#include "display/intel_display_reg_defs.h"
 
 /**
  * DOC: The i915 register macro definition style guide
@@ -116,6 +115,8 @@
  *  #define GEN8_BAR                    _MMIO(0xb888)
  */
 
+#define __VLV_DISPLAY_BASE		0x180000
+
 #define GU_CNTL				_MMIO(0x101010)
 #define   LMEM_INIT			REG_BIT(7)
 #define   DRIVERFLR			REG_BIT(31)
@@ -152,7 +153,7 @@
 /*
  * IOSF sideband
  */
-#define VLV_IOSF_DOORBELL_REQ			_MMIO(VLV_DISPLAY_BASE + 0x2100)
+#define VLV_IOSF_DOORBELL_REQ			_MMIO(__VLV_DISPLAY_BASE + 0x2100)
 #define   IOSF_DEVFN_SHIFT			24
 #define   IOSF_OPCODE_SHIFT			16
 #define   IOSF_PORT_SHIFT			8
@@ -174,8 +175,8 @@
 #define   CHV_IOSF_PORT_GPIO_SE			0x48
 #define   CHV_IOSF_PORT_GPIO_E			0xa8
 #define   CHV_IOSF_PORT_GPIO_SW			0xb2
-#define VLV_IOSF_DATA				_MMIO(VLV_DISPLAY_BASE + 0x2104)
-#define VLV_IOSF_ADDR				_MMIO(VLV_DISPLAY_BASE + 0x2108)
+#define VLV_IOSF_DATA				_MMIO(__VLV_DISPLAY_BASE + 0x2104)
+#define VLV_IOSF_ADDR				_MMIO(__VLV_DISPLAY_BASE + 0x2108)
 
 /* DPIO registers */
 #define DPIO_DEVFN			0
@@ -325,8 +326,8 @@
 #define GEN7_MEDIA_MAX_REQ_COUNT	_MMIO(0x4070)
 #define GEN7_GFX_MAX_REQ_COUNT		_MMIO(0x4074)
 
-#define VLV_GU_CTL0	_MMIO(VLV_DISPLAY_BASE + 0x2030)
-#define VLV_GU_CTL1	_MMIO(VLV_DISPLAY_BASE + 0x2034)
+#define VLV_GU_CTL0	_MMIO(__VLV_DISPLAY_BASE + 0x2030)
+#define VLV_GU_CTL1	_MMIO(__VLV_DISPLAY_BASE + 0x2034)
 #define GEN2_IER	_MMIO(0x20a0)
 #define GEN2_IIR	_MMIO(0x20a4)
 #define GEN2_IMR	_MMIO(0x20a8)
@@ -336,10 +337,10 @@
 					      GEN2_IER, \
 					      GEN2_IIR)
 
-#define VLV_GUNIT_CLOCK_GATE	_MMIO(VLV_DISPLAY_BASE + 0x2060)
+#define VLV_GUNIT_CLOCK_GATE	_MMIO(__VLV_DISPLAY_BASE + 0x2060)
 #define   GINT_DIS		(1 << 22)
 #define   GCFG_DIS		(1 << 8)
-#define VLV_GUNIT_CLOCK_GATE2	_MMIO(VLV_DISPLAY_BASE + 0x2064)
+#define VLV_GUNIT_CLOCK_GATE2	_MMIO(__VLV_DISPLAY_BASE + 0x2064)
 
 #define EIR		_MMIO(0x20b0)
 #define EMR		_MMIO(0x20b4)
@@ -608,7 +609,7 @@
 #define VLV_CLK_CTL2			_MMIO(0x101104)
 #define   CLK_CTL2_CZCOUNT_30NS_SHIFT	28
 
-#define VLV_DPFLIPSTAT				_MMIO(VLV_DISPLAY_BASE + 0x70028)
+#define VLV_DPFLIPSTAT				_MMIO(__VLV_DISPLAY_BASE + 0x70028)
 #define   PIPEB_LINE_COMPARE_INT_EN			REG_BIT(29)
 #define   PIPEB_HLINE_INT_EN			REG_BIT(28)
 #define   PIPEB_VBLANK_INT_EN			REG_BIT(27)
diff --git a/include/drm/intel/intel_gmd_interrupt_regs.h b/include/drm/intel/intel_gmd_interrupt_regs.h
index 0d85ec907396..fcfd8bc093b8 100644
--- a/include/drm/intel/intel_gmd_interrupt_regs.h
+++ b/include/drm/intel/intel_gmd_interrupt_regs.h
@@ -4,6 +4,8 @@
 #ifndef _INTEL_GMD_INTERRUPT_REGS_H_
 #define _INTEL_GMD_INTERRUPT_REGS_H_
 
+#define __VLV_DISPLAY_BASE		0x180000
+
 #define I915_PM_INTERRUPT				(1 << 31)
 #define I915_ISP_INTERRUPT				(1 << 22)
 #define I915_LPE_PIPE_B_INTERRUPT			(1 << 21)
@@ -62,12 +64,12 @@
 #define  SCPD_FBC_IGNORE_3D			(1 << 6)
 #define  CSTATE_RENDER_CLOCK_GATE_DISABLE	(1 << 5)
 
-#define VLV_IIR_RW	_MMIO(VLV_DISPLAY_BASE + 0x2084)
-#define VLV_IER		_MMIO(VLV_DISPLAY_BASE + 0x20a0)
-#define VLV_IIR		_MMIO(VLV_DISPLAY_BASE + 0x20a4)
-#define VLV_IMR		_MMIO(VLV_DISPLAY_BASE + 0x20a8)
-#define VLV_ISR		_MMIO(VLV_DISPLAY_BASE + 0x20ac)
-#define VLV_PCBR	_MMIO(VLV_DISPLAY_BASE + 0x2120)
+#define VLV_IIR_RW	_MMIO(__VLV_DISPLAY_BASE + 0x2084)
+#define VLV_IER		_MMIO(__VLV_DISPLAY_BASE + 0x20a0)
+#define VLV_IIR		_MMIO(__VLV_DISPLAY_BASE + 0x20a4)
+#define VLV_IMR		_MMIO(__VLV_DISPLAY_BASE + 0x20a8)
+#define VLV_ISR		_MMIO(__VLV_DISPLAY_BASE + 0x20ac)
+#define VLV_PCBR	_MMIO(__VLV_DISPLAY_BASE + 0x2120)
 #define VLV_PCBR_ADDR_SHIFT	12
 
 #endif
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-24 19:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 13:31 [PATCH] drm/i915: use local __VLV_DISPLAY_BASE for i915 registers Jani Nikula
2026-11-24 13:46 ` ✗ CI.KUnit: failure for " Patchwork
2026-11-24 19:55 ` [PATCH] " Ville Syrjälä

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox