]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915/mchbar: Define the end of the MCHBAR mirror
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 31 Mar 2026 15:42:50 +0000 (18:42 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 1 Apr 2026 14:03:05 +0000 (17:03 +0300)
Add defines for the end of the MCHBAR mirror. I'm planning to
use this for some range sanity checks.

BSpec: 51771
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260331154259.24600-4-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_mchbar_regs.h

index 614d4017b57b3507544b5362b2ba72753f2228c0..ca0d421be16c359c175be437c27a4b41bc4fcb5c 100644 (file)
  * every way.  It is not accessible from the CP register read instructions.
  *
  * Starting from Haswell, you can't write registers using the MCHBAR mirror,
- * just read.
+ * just read. On MTL+ the mirror no longer exists.
  */
 
 #define MCHBAR_MIRROR_BASE                     0x10000
+#define MCHBAR_MIRROR_END                      0x13fff
+
 #define MCHBAR_MIRROR_BASE_SNB                 0x140000
+#define MCHBAR_MIRROR_END_SNB                  0x147fff
+#define MCHBAR_MIRROR_END_ICL_RKL              0x14ffff
+#define MCHBAR_MIRROR_END_TGL                  0x15ffff
 
 #define CTG_STOLEN_RESERVED                    _MMIO(MCHBAR_MIRROR_BASE + 0x34)
 #define ELK_STOLEN_RESERVED                    _MMIO(MCHBAR_MIRROR_BASE + 0x48)