mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drm/i915: Avoid accessing the stolen address when it is unavailable
@ 2013-10-24 16:33 Chuansheng Liu
  2013-10-24 12:17 ` Chris Wilson
  0 siblings, 1 reply; 5+ messages in thread
From: Chuansheng Liu @ 2013-10-24 16:33 UTC (permalink / raw)
  To: daniel.vetter, airlied
  Cc: intel-gfx, dri-devel, linux-kernel, chuansheng.liu, fei.li


In our platform, we hit the the stolen region initialization failure case,
such as below log:
[drm:i915_stolen_to_physical] *ERROR* conflict detected with stolen region: [0x7b000000]

And it causes the dev_priv->mm.stolen_base is NULL, in this case, we should
avoid accessing it any more.

Here is possible call trace:
intel_enable_gt_powersave -- >
valleyview_enable_rps -- >
valleyview_setup_pctx

Cc: Li Fei <fei.li@intel.com>
Signed-off-by: Liu, Chuansheng <chuansheng.liu@intel.com>
---
 drivers/gpu/drm/i915/intel_pm.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 26c2ea3..1069b24 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -3735,6 +3735,9 @@ static void valleyview_setup_pctx(struct drm_device *dev)
 	u32 pcbr;
 	int pctx_size = 24*1024;
 
+	if (!dev_priv->mm.stolen_base)
+		return;
+
 	pcbr = I915_READ(VLV_PCBR);
 	if (pcbr) {
 		/* BIOS set it up already, grab the pre-alloc'd space */
-- 
1.7.9.5




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

end of thread, other threads:[~2013-10-25  8:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-24 16:33 drm/i915: Avoid accessing the stolen address when it is unavailable Chuansheng Liu
2013-10-24 12:17 ` Chris Wilson
2013-10-24 20:56   ` [Intel-gfx] " Ben Widawsky
2013-10-25  0:27     ` Liu, Chuansheng
2013-10-25  8:07       ` Chris Wilson

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

Powered by JetHome