@@ -2974,6 +2974,7 @@ static int ggtt_probe_common(struct i915_ggtt *ggtt, u64 size)
/* For Modern GENs the PTEs and register space are split in the BAR */
phys_addr = pci_resource_start(pdev, 0) + pci_resource_len(pdev, 0) / 2;
+ ggtt->gsm_paddr = phys_addr;
/*
* On BXT+/CNL+ writes larger than 64 bit to the GTT pagetable range
@@ -388,6 +388,7 @@ struct i915_ggtt {
u32 stolen_reserved_size;
/** "Graphics Stolen Memory" holds the global PTEs */
+ phys_addr_t gsm_paddr;
void __iomem *gsm;
void (*invalidate)(struct drm_i915_private *dev_priv);
I'm planning on using it later for AubCrash. Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Cc: Mika Kuoppala <mika.kuoppala@intel.com> Cc: Chris Wilson <chris@chris-wsilon.co.uk> --- drivers/gpu/drm/i915/i915_gem_gtt.c | 1 + drivers/gpu/drm/i915/i915_gem_gtt.h | 1 + 2 files changed, 2 insertions(+)