Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+5 -4
+5 -4
include/drm/intel/i915_drm.h
··· 39 39 extern struct resource intel_graphics_stolen_res; 40 40 41 41 /* 42 - * The Bridge device's PCI config space has information about the 43 - * fb aperture size and the amount of pre-reserved memory. 44 - * This is all handled in the intel-gtt.ko module. i915.ko only 45 - * cares about the vga bit for the vga arbiter. 42 + * The bridge device's (device 0) PCI config space has information 43 + * about the fb aperture size and the amount of pre-reserved memory. 46 44 */ 45 + 46 + /* device 2 has a read-only mirror */ 47 47 #define SNB_GMCH_CTRL 0x50 48 48 #define SNB_GMCH_GGMS_SHIFT 8 /* GTT Graphics Memory Size */ 49 49 #define SNB_GMCH_GGMS_MASK 0x3 ··· 54 54 #define BDW_GMCH_GMS_SHIFT 8 55 55 #define BDW_GMCH_GMS_MASK 0xff 56 56 57 + /* device 2 has a read-only mirror from i85x/i865 onwards */ 57 58 #define I830_GMCH_CTRL 0x52 58 59 #define I830_GMCH_GMS_MASK (0x7 << 4) 59 60 #define I830_GMCH_GMS_LOCAL (0x1 << 4)