]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/i915: Set stolen reserved to 0 for pre-g4x platforms
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 11 Sep 2015 18:14:29 +0000 (21:14 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 14 Sep 2015 13:24:18 +0000 (15:24 +0200)
commitd7884d69a524b92d9770bcdc03df3c5a6120c2d0
treec4f8d9c8d2bc0551fd1200b0225751df9989da41
parent374887bae861be2e691381f704b3d6068a54457c
drm/i915: Set stolen reserved to 0 for pre-g4x platforms

This stolen reserved stuff was introduced on g4x, so no need to waste
stolen on older platforms. Unfortunately configdb is no more so I can't
look up the right way to detect this stuff. I do have one hint as to
where the register might be on ctg, but I don't have a ctg to test it,
and on the elk I have here it doesn't contain sensible looking data.
For ilk grits suggegsts it might be in the same place as on snb (the
original PCI reg, not the mirror) but I can't be entirely sure about it
The register shows a round zero on my ilk.

So when there's no really good data for any of these platforms leave the
current "assume 1MiB" approach in place.

Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_stolen.c