Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/i915: don't use stolen space on VLV
@ 2013-05-01 23:09 Jesse Barnes
  2013-05-01 23:09 ` [PATCH 2/3] drm/i915: read current freq from Punit " Jesse Barnes
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Jesse Barnes @ 2013-05-01 23:09 UTC (permalink / raw)
  To: intel-gfx

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(+)

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;
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 11+ messages in thread
* Re: [PATCH 1/3] drm/i915: don't use stolen space on VLV
@ 2013-05-02  1:28 Jesse Barnes
  0 siblings, 0 replies; 11+ messages in thread
From: Jesse Barnes @ 2013-05-02  1:28 UTC (permalink / raw)
  To: ben; +Cc: intel-gfx


[-- Attachment #1.1: Type: text/plain, Size: 1183 bytes --]

Yes, without your badassness this would have taken me much longer to debug (especially since I was sure I had already tried avoiding stolen). 

But I have a better patch to replace this that just makes a preallocated object from the BIOS gunk and lets us use the rest. Seems to be working here, so I'll clean it up and send it tomorrow. Just don't ask about the BIOS gunk; I can't talk about it. 


--
Jesse Barnes, Intel Open Source Technology Center


-------- Original message --------
From: Ben Widawsky <ben@bwidawsk.net> 
Date: 05/01/2013  6:00 PM  (GMT-08:00) 
To: Jesse Barnes <jbarnes@virtuousgeek.org> 
Cc: intel-gfx@lists.freedesktop.org 
Subject: Re: [Intel-gfx] [PATCH 1/3] drm/i915: don't use stolen space on VLV 
 
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>

-- 
Ben Widawsky, Intel Open Source Technology Center


[-- Attachment #1.2: Type: text/html, Size: 1467 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-05-02  3:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-01 23:09 [PATCH 1/3] drm/i915: don't use stolen space on VLV Jesse Barnes
2013-05-01 23:09 ` [PATCH 2/3] drm/i915: read current freq from Punit " Jesse Barnes
2013-05-02  3:14   ` Kenneth Graunke
2013-05-01 23:09 ` [PATCH 3/3] drm/i915: go back to switch for VLV mem freq detection Jesse Barnes
2013-05-02  1:26   ` Ben Widawsky
2013-05-02  1:38     ` Kenneth Graunke
2013-05-02  1:45       ` Ben Widawsky
2013-05-02  3:16         ` Kenneth Graunke
2013-05-02  1:40     ` Ben Widawsky
2013-05-02  1:00 ` [PATCH 1/3] drm/i915: don't use stolen space on VLV Ben Widawsky
  -- strict thread matches above, loose matches on Subject: below --
2013-05-02  1:28 Jesse Barnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox