Bug 83094 - [BDW] System dmesg contains "ERROR" when machine resumes from s3
Summary: [BDW] System dmesg contains "ERROR" when machine resumes from s3
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: high major
Assignee: Paulo Zanoni
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
: 85220 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-08-26 09:59 UTC by liulei
Modified: 2018-06-20 06:38 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg after s3 (54.81 KB, text/plain)
2014-08-26 09:59 UTC, liulei
no flags Details
dmesg-with-i915.mmio_debug=1 (197.87 KB, text/plain)
2014-09-26 02:30 UTC, liulei
no flags Details
dmesg-without-i915.mmio_debug=1 (195.16 KB, text/plain)
2014-09-26 02:31 UTC, liulei
no flags Details
Possible fix (1.33 KB, patch)
2014-10-06 16:22 UTC, Paulo Zanoni
no flags Details | Splinter Review
dmesg (96.17 KB, text/plain)
2014-10-08 05:07 UTC, Guo Jinxian
no flags Details
Correct fix (1.92 KB, patch)
2014-10-09 17:40 UTC, Paulo Zanoni
no flags Details | Splinter Review

Description liulei 2014-08-26 09:59:08 UTC
Created attachment 105274 [details]
dmesg after s3

==System Environment==
--------------------------
Regression: Yes. 
Good commit: f4be89cecea437aaddd7700d05c6bdb5678041f7 (-fixes branch)
    drm/i915: Fix crash when failing to parse MIPI VBT
Non-working platforms: Broadwell


==kernel==
--------------------------
-nightly: d82af52b1766594ece621e427f1604194ca2b415 (failed)
-queued: 0f09bb2bf3d51a1e57e8dfc46e3c159170651c29 (failed)
    drm/i915/bdw: Make sure error capture keeps working with Execlists
-fixes: 1a125d8a2c22b11741fc47d4ffcf7a5ffa044dd3 (failed)
    drm/i915: don't try to retrain a DP link on an inactive CRTC

==Bug detailed description==
-----------------------------
System dmesg contains  "ERROR"(like below) when machine resumes from s3 .
<3>[   20.508358] [drm:hsw_unclaimed_reg_detect] *ERROR* Unclaimed register dete

==Reproduce steps==
---------------------------- 
1. S3
2. check dmesg
Comment 1 liulei 2014-08-26 09:59:36 UTC
I will bisect later
Comment 2 liulei 2014-08-27 03:22:50 UTC
==Bisect results==
----------------------------
Bisect shows: 66bc2cab191816d931f4d660d2f162130dd202b2 is the first bad commit.
commit 66bc2cab191816d931f4d660d2f162130dd202b2
Author:     Paulo Zanoni <paulo.r.zanoni@intel.com>
AuthorDate: Wed Jul 16 17:49:30 2014 -0300
Commit:     Daniel Vetter <daniel.vetter@ffwll.ch>
CommitDate: Wed Jul 23 07:05:37 2014 +0200

    drm/i915: BDW can also detect unclaimed registers

    By the time I wrote this patch, it allowed me to catch some problems.
    But due to patch reordering - in order to prevent fake "regression"
    reports - this patch may be merged after the fixes of the problems
    identified by this patch.
Comment 3 Paulo Zanoni 2014-09-05 13:23:52 UTC
(In reply to comment #2)
> ==Bisect results==
> ----------------------------
> Bisect shows: 66bc2cab191816d931f4d660d2f162130dd202b2 is the first bad
> commit.
> commit 66bc2cab191816d931f4d660d2f162130dd202b2
> Author:     Paulo Zanoni <paulo.r.zanoni@intel.com>
> AuthorDate: Wed Jul 16 17:49:30 2014 -0300
> Commit:     Daniel Vetter <daniel.vetter@ffwll.ch>
> CommitDate: Wed Jul 23 07:05:37 2014 +0200
> 
>     drm/i915: BDW can also detect unclaimed registers
> 
>     By the time I wrote this patch, it allowed me to catch some problems.
>     But due to patch reordering - in order to prevent fake "regression"
>     reports - this patch may be merged after the fixes of the problems
>     identified by this patch.

This is not a "real" regression since the commit above is the one that starts detecting the problem, not the one that introduces the problem.
Comment 4 liulei 2014-09-09 02:29:39 UTC
I have no idea about how I find out the one that introduces the problem. If someone give me a hand, that will be awesome.
Comment 5 Jani Nikula 2014-09-11 14:46:20 UTC
(In reply to comment #4)
> I have no idea about how I find out the one that introduces the problem. If
> someone give me a hand, that will be awesome.

At least in theory you could always apply the referenced commit at each step of the bisect. But I suspect you'd only find bdw enabling commits anyway.
Comment 6 Rodrigo Vivi 2014-09-24 20:18:08 UTC
Could you please retest with latest -nightly and if error persist could you please boot with i915.mmio_debug=1 than paste new dmesg?
Comment 7 liulei 2014-09-26 02:28:44 UTC
(In reply to comment #6)
> Could you please retest with latest -nightly and if error persist could you
> please boot with i915.mmio_debug=1 than paste new dmesg?

When boot with i915.mmio_debug=1, ERROR is gone. But ERROR exists without i915.mmio_debug=1 .
Comment 8 liulei 2014-09-26 02:30:16 UTC
Created attachment 106888 [details]
dmesg-with-i915.mmio_debug=1
Comment 9 liulei 2014-09-26 02:31:24 UTC
Created attachment 106889 [details]
dmesg-without-i915.mmio_debug=1
Comment 10 Paulo Zanoni 2014-10-06 16:22:41 UTC
Created attachment 107437 [details] [review]
Possible fix

Hi

Does this patch fix the problem?

Thanks,
Paulo
Comment 11 Guo Jinxian 2014-10-08 05:07:35 UTC
Created attachment 107532 [details]
dmesg

(In reply to Paulo Zanoni from comment #10)
> Created attachment 107437 [details] [review] [review]
> Possible fix
> 
> Hi
> 
> Does this patch fix the problem?
> 
> Thanks,
> Paulo

The dmesg error still able to reproduce with this patch.

root@x-bdw05:~#  echo 0 > /sys/class/rtc/rtc0/wakealarm ; echo +10 > /sys/class/rtc/rtc0/wakealarm; echo mem > /sys/power/state
root@x-bdw05:~#
root@x-bdw05:~# dmesg -r|egrep "<[1-4]>"|grep drm
<3>[  669.801135] [drm:hsw_unclaimed_reg_detect] *ERROR* Unclaimed register detected. Please use the i915.mmio_debug=1 to debug this problem.
Comment 12 Paulo Zanoni 2014-10-09 17:40:24 UTC
Created attachment 107625 [details] [review]
Correct fix

Ok, so I retested my original patch and it doesn't fix the problem for me either: it fixes a different problem I was seeing in the past...

So I wrote a new patch, and I can confirm this one fixes the problem for me on my BDW machine.

Please test this one.
Comment 13 Guo Jinxian 2014-10-14 07:24:59 UTC
(In reply to Paulo Zanoni from comment #12)
> Created attachment 107625 [details] [review] [review]
> Correct fix
> 
> Ok, so I retested my original patch and it doesn't fix the problem for me
> either: it fixes a different problem I was seeing in the past...
> 
> So I wrote a new patch, and I can confirm this one fixes the problem for me
> on my BDW machine.
> 
> Please test this one.

The demsg error unable to reproduce on this patch.


root@x-bdw05:~#  echo 0 > /sys/class/rtc/rtc0/wakealarm ; echo +10 > /sys/class/rtc/rtc0/wakealarm; echo mem > /sys/power/state
root@x-bdw05:~# dmesg -r|egrep "<[1-4]>"|grep drm
root@x-bdw05:~#
Comment 14 Paulo Zanoni 2014-10-20 12:50:28 UTC
*** Bug 85220 has been marked as a duplicate of this bug. ***
Comment 15 Paulo Zanoni 2014-11-03 13:41:01 UTC
Closing  bug. Fixed by:

Commit 25ba23c3198315efe6d70f67acd73cf11540ca19
drm/i915: run hsw_disable_pc8() later on resume

If the bug still happens, please reopen.
Comment 16 Jari Tahvanainen 2016-10-07 08:53:33 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.