Message ID | 1367449762-2214-1-git-send-email-jbarnes@virtuousgeek.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, May 01, 2013 at 04:09:20PM -0700, Jesse Barnes wrote: > BIOS stuffs things here we can't clobber. > > Signed-off-by: Jesse Barnes <jbarnes@virtuosugeek.org> As I said in private email, I think the quirk is a bit better suited in i915_stolen_to_physical(), and the commit message *could* explain things a bit clearer, oh, and you're welcome. Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c index 67d3510..85b3ea9 100644 --- a/drivers/gpu/drm/i915/i915_gem_stolen.c +++ b/drivers/gpu/drm/i915/i915_gem_stolen.c @@ -184,6 +184,9 @@ int i915_gem_init_stolen(struct drm_device *dev) { struct drm_i915_private *dev_priv = dev->dev_private; + if (IS_VALLEYVIEW(dev)) + return 0; + dev_priv->mm.stolen_base = i915_stolen_to_physical(dev); if (dev_priv->mm.stolen_base == 0) return 0;
BIOS stuffs things here we can't clobber. Signed-off-by: Jesse Barnes <jbarnes@virtuosugeek.org> --- drivers/gpu/drm/i915/i915_gem_stolen.c | 3 +++ 1 file changed, 3 insertions(+)