summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2025-12-08 20:26:37 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2026-01-23 05:20:58 +0200
commit42bb7bdae97cc4e285fb741d9ebd1f5a36fe3f94 (patch)
treec1a04289edf4bdc572b4dc4e8d25ccbd8ddfaa83 /include
parent29ed5593ca202da679493c25f82bf89a59114092 (diff)
downloadlinux-42bb7bdae97cc4e285fb741d9ebd1f5a36fe3f94.tar.gz
linux-42bb7bdae97cc4e285fb741d9ebd1f5a36fe3f94.zip
drm/i915: Document the GMCH_CTRL register a bit
The actual GMCH_CRTL lives in the host bridge aka. device 0, but device 2 has a read-only mirror on i85x/i865+. Document that fact. Also remove the ancient tales about where the defines are used. Those haven't been true in a long time. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/20251208182637.334-20-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/intel/i915_drm.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/drm/intel/i915_drm.h b/include/drm/intel/i915_drm.h
index c633ce62f2bf..1fdaabed1470 100644
--- a/include/drm/intel/i915_drm.h
+++ b/include/drm/intel/i915_drm.h
@@ -39,11 +39,11 @@ bool i915_gpu_turbo_disable(void);
extern struct resource intel_graphics_stolen_res;
/*
- * The Bridge device's PCI config space has information about the
- * fb aperture size and the amount of pre-reserved memory.
- * This is all handled in the intel-gtt.ko module. i915.ko only
- * cares about the vga bit for the vga arbiter.
+ * The bridge device's (device 0) PCI config space has information
+ * about the fb aperture size and the amount of pre-reserved memory.
*/
+
+/* device 2 has a read-only mirror */
#define SNB_GMCH_CTRL 0x50
#define SNB_GMCH_GGMS_SHIFT 8 /* GTT Graphics Memory Size */
#define SNB_GMCH_GGMS_MASK 0x3
@@ -54,6 +54,7 @@ extern struct resource intel_graphics_stolen_res;
#define BDW_GMCH_GMS_SHIFT 8
#define BDW_GMCH_GMS_MASK 0xff
+/* device 2 has a read-only mirror from i85x/i865 onwards */
#define I830_GMCH_CTRL 0x52
#define I830_GMCH_GMS_MASK (0x7 << 4)
#define I830_GMCH_GMS_LOCAL (0x1 << 4)