summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorChris Wilson2010-11-23 13:09:30 +0100
committerChris Wilson2010-11-23 16:42:56 +0100
commitfe669bf88e9108b96a847385df08c9b1e98c1420 (patch)
treebd8c391717f031ea9d763fe669beb9eaf929ca75 /drivers/gpu/drm/i915/i915_drv.h
parentdrm/i915/panel: Restore saved value of BLC_PWM_CTL (diff)
downloadkernel-qcow2-linux-fe669bf88e9108b96a847385df08c9b1e98c1420.tar.gz
kernel-qcow2-linux-fe669bf88e9108b96a847385df08c9b1e98c1420.tar.xz
kernel-qcow2-linux-fe669bf88e9108b96a847385df08c9b1e98c1420.zip
drm/i915: Compute physical addresses from base of stolen memory
The GATT is a write-only set of registers, reading from them in the manner of i915_gtt_to_phys() is supposed to be undefined. However a simple solution exists as we allocate linear memory from the stolen area, we can simply add the block offset to the base register. As a side-effect we recover all the unused stolen GTT entries and so enlarge our aperture. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index db79df376b86..745e46b0673f 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -544,7 +544,7 @@ typedef struct drm_i915_private {
/** Bridge to intel-gtt-ko */
struct intel_gtt *gtt;
/** Memory allocator for GTT stolen memory */
- struct drm_mm vram;
+ struct drm_mm stolen;
/** Memory allocator for GTT */
struct drm_mm gtt_space;
/** End of mappable part of GTT */