Bug 77916 - [PNV/ILK Regression]System boot fail
Summary: [PNV/ILK Regression]System boot fail
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: highest blocker
Assignee: Daniel Vetter
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-25 08:15 UTC by lu hua
Modified: 2016-10-12 09:11 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (121.84 KB, text/plain)
2014-04-25 08:15 UTC, lu hua
no flags Details
fixed patch (3.17 KB, patch)
2014-04-29 09:53 UTC, Daniel Vetter
no flags Details | Splinter Review

Description lu hua 2014-04-25 08:15:15 UTC
Created attachment 97943 [details]
dmesg

System Environment:
--------------------------
Platform: Pineview/Ironlake
Kernel:   (drm-intel-nightly)7fa20daad840000b56924136d02a8d33265f29ca

Bug detailed description:
-------------------------
System boot fail on Pineview and Ironlake with -fixes and -nightly kernel, It works well on -queued kernel.

The latest known good commit: 58b87a391d67e35e3aa1fc6c80890b491d73ad46
The latest known bad commit: ec37494cb11eac1e5ceed8a7b060bc558a9b1f3e

Reproduce steps:
----------------------------
1. clean boot system
Comment 1 Chris Wilson 2014-04-25 08:26:48 UTC
We are all idiots.
Comment 2 Chris Wilson 2014-04-25 08:29:03 UTC
I honestly thought that santize_enable_ppgtt() called in i915_drv.c
Comment 3 Chris Wilson 2014-04-25 08:30:17 UTC
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 670ee9f4511b..1b3efc84fdc9 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -1225,14 +1225,6 @@ int i915_gem_init_ppgtt(struct drm_device *dev, struct i915_hw_ppgtt *ppgtt)
        struct drm_i915_private *dev_priv = dev->dev_private;
        int ret = 0;
 
-       /*
-        * i915.enable_ppgtt is read-only, so do an early pass to validate the
-        * user's requested state against the hardware/driver capabilities.  We
-        * do this now so that we can print out any log messages once rather
-        * than every time we check intel_enable_ppgtt().
-        */
-       i915.enable_ppgtt = sanitize_enable_ppgtt(dev, i915.enable_ppgtt);
-
        ppgtt->base.dev = dev;
        ppgtt->base.scratch = dev_priv->gtt.base.scratch;
 
@@ -2050,6 +2042,14 @@ int i915_gem_gtt_init(struct drm_device *dev)
        DRM_DEBUG_DRIVER("GMADR size = %ldM\n", gtt->mappable_end >> 20);
        DRM_DEBUG_DRIVER("GTT stolen size = %zdM\n", gtt->stolen_size >> 20);
 
+       /*
+        * i915.enable_ppgtt is read-only, so do an early pass to validate the
+        * user's requested state against the hardware/driver capabilities.  We
+        * do this now so that we can print out any log messages once rather
+        * than every time we check intel_enable_ppgtt().
+        */
+       i915.enable_ppgtt = sanitize_enable_ppgtt(dev, i915.enable_ppgtt);
+
        return 0;
 }
Comment 4 Jani Nikula 2014-04-25 13:09:00 UTC
commit 31d584c13bcecf709b824987d305e5f61386713c
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Wed Apr 23 20:01:32 2014 +0200

    drm/i915: Sanitize the enable_ppgtt module option once

yanked out of -fixes and -nightly. Please retest.
Comment 5 lu hua 2014-04-28 01:45:52 UTC
Fixed on latest -nightly and -fixes kernel.
Comment 6 lu hua 2014-04-28 01:46:07 UTC
Verified.Fixed.
Comment 7 Daniel Vetter 2014-04-29 09:52:21 UTC
Reopening to test the fixed patch, we need it for a regression fix.
Comment 8 Daniel Vetter 2014-04-29 09:53:14 UTC
Created attachment 98170 [details] [review]
fixed patch

Lu, please test the attached patch on ilk/pnv to make sure it works now.
Comment 9 Jani Nikula 2014-04-29 15:43:54 UTC
(In reply to comment #8)
> Created attachment 98170 [details] [review] [review]
> fixed patch
> 
> Lu, please test the attached patch on ilk/pnv to make sure it works now.

I pushed the patch to drm-intel-fixes, please re-test that. Thanks.
Comment 10 lu hua 2014-04-30 05:28:51 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Created attachment 98170 [details] [review] [review] [review]
> > fixed patch
> > 
> > Lu, please test the attached patch on ilk/pnv to make sure it works now.
> 
> I pushed the patch to drm-intel-fixes, please re-test that. Thanks.

It works well on latest -fixes kernel(commit cfa7c862982b431ad).
Comment 11 Jani Nikula 2014-04-30 07:24:11 UTC
Thanks, closing.
Comment 12 lu hua 2014-04-30 07:25:37 UTC
Verified.Fixed.
Comment 13 Jari Tahvanainen 2016-10-12 09:11:22 UTC
Closing verified+fixed.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.