From: Vassilis Virvilis <vasvir@iit.demokritos.gr>
To: Juergen Gross <jgross@suse.com>
Cc: linux-kernel@vger.kernel.org, Toshi Kani <toshi.kani@hp.com>,
"Luis R. Rodriguez" <mcgrof@suse.com>
Subject: Re: Hibernate resume bug around 3,18-rc2 - Full PAT support
Date: Sat, 21 Nov 2015 13:49:06 +0200 [thread overview]
Message-ID: <56505A32.5060605@iit.demokritos.gr> (raw)
In-Reply-To: <564F10D5.3090309@suse.com>
On 11/20/2015 02:23 PM, Juergen Gross wrote:
> On 20/11/15 11:04, vasvir@iit.demokritos.gr wrote:
>>> I've just found a potential issue: In case MTRR is disabled by the BIOS
>>> the PAT register of the boot processor won't be restored after resume.
>>>
>>> Can you check whether pr_info("MTRR: Disabled\n") has been executed in
>>> early boot? If yes, this might be a BIOS option.
>>>
>>
>> I don't have access right now. I will test it later tonight (This is my
>> home machine).
>>
>> Would $dmesg | grep -i mtrr suffice or I need to look for the mtrr
>> somewere else e.g. /proc /sys etc?
>
> I think grepping for MTRR in dmesg should be enough.
kernel 4.3 +nopat also died on the 4th or the 5th hibernate on the familiar (see previously attached image) "Calling lapic..." place.
$dmesg | grep -i mtr for 4.3 kernel with notpat
[ 0.189113] calling mtrr_if_init+0x0/0x5f @ 1
[ 0.189116] initcall mtrr_if_init+0x0/0x5f returned 0 after 0 usecs
[ 0.189222] pmd_set_huge: Cannot satisfy [mem 0xf8000000-0xf8200000] with a huge-page mapping due to MTRR override.
[ 0.189559] calling mtrr_init_finialize+0x0/0x3a @ 1
[ 0.189560] initcall mtrr_init_finialize+0x0/0x3a returned 0 after 0 usecs
[ 8.994140] mtrr: type mismatch for e0000000,10000000 old: write-back new: write-combining
[ 8.994154] Failed to add WC MTRR for [00000000e0000000-00000000efffffff]; performance may suffer.
$dmesg | grep -i mtr for 4.3 kernel with default pat enabled
[ 0.189368] calling mtrr_if_init+0x0/0x5f @ 1
[ 0.189370] initcall mtrr_if_init+0x0/0x5f returned 0 after 0 usecs
[ 0.189478] pmd_set_huge: Cannot satisfy [mem 0xf8000000-0xf8200000] with a huge-page mapping due to MTRR override.
[ 0.189814] calling mtrr_init_finialize+0x0/0x3a @ 1
[ 0.189815] initcall mtrr_init_finialize+0x0/0x3a returned 0 after 0 usecs
I also checked my BIOS. I found nothing about mtrr. My BIOS manual is ftp://europe.asrock.com/Manual/H97%20Pro4.pdf. Can you see any option about MTRR?
Question: If we assume your theory is correct about mtrr/pat, wouldn't lockup/hang reboot every time the system goes to hibernate/resume? Can this assumption explain why the first hibernation/resume cycles in rapid succession after system boot are working and the long ones fail somewhat more consistently?
Note: With PAT enabled the system boots up significantly faster.
In the weekend I will return to 3.18-rc2 and I will try to verify my bisection is correct. Double guessing your self is a terrible thing...
I will also try with nopat and I will run dmesg | grep -i mtr and post results
Unless you have any other suggestions...
Vassilis
next prev parent reply other threads:[~2015-11-21 11:49 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-18 21:43 Vassilis Virvilis
2015-11-19 5:39 ` Juergen Gross
2015-11-19 7:50 ` vasvir
2015-11-19 9:10 ` Juergen Gross
2015-11-19 20:35 ` Vassilis Virvilis
2015-11-20 5:25 ` Vassilis Virvilis
2015-11-20 8:47 ` Juergen Gross
2015-11-20 10:04 ` vasvir
2015-11-20 12:23 ` Juergen Gross
2015-11-21 11:49 ` Vassilis Virvilis [this message]
2015-11-23 7:32 ` Juergen Gross
2015-11-23 14:11 ` vasvir
2015-11-23 14:19 ` Juergen Gross
2015-11-24 22:46 ` Luis R. Rodriguez
2015-11-25 5:01 ` Juergen Gross
2015-11-25 19:24 ` Luis R. Rodriguez
2015-11-23 18:56 ` Luis R. Rodriguez
2015-11-23 23:01 ` Vassilis Virvilis
2015-11-24 22:16 ` Luis R. Rodriguez
2015-11-23 18:48 ` Luis R. Rodriguez
2015-11-24 9:36 ` vasvir
2015-11-24 22:03 ` Luis R. Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56505A32.5060605@iit.demokritos.gr \
--to=vasvir@iit.demokritos.gr \
--cc=jgross@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mcgrof@suse.com \
--cc=toshi.kani@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®