public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: jongman.heo@samsung.com,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [3.18+] Can't boot with commit bd809af1 ("x86: Enable PAT to use cache mode translation tables")
Date: Mon, 15 Dec 2014 12:52:14 +0100	[thread overview]
Message-ID: <548ECB6E.5060104@suse.com> (raw)
In-Reply-To: <1915005366.124751418629936574.JavaMail.weblogic@epmlwas02b>

[-- Attachment #1: Type: text/plain, Size: 1326 bytes --]

On 12/15/2014 08:52 AM, Jongman Heo wrote:
>> ------- Original Message -------
>> Sender : Juergen Gross
>> Date : 2014-12-15 14:04 (GMT+09:00)
>> Title : Re: [3.18+] Can't boot with commit bd809af1 ("x86: Enable PAT to use cache mode translation tables")
>>
>> On 12/14/2014 06:07 AM, 허종만 wrote:
>>>
>>> Hi,
>>>
>>> My Linux virtual machine on (Windows) VMWare workstation 10 can't boot with following commit.
>>>
>>> commit bd809af16e3ab1f8d55b3e2928c47c67e2a865d2
>>> Author: Juergen Gross
>>> Date:   Mon Nov 3 14:02:03 2014 +0100
>>>
>>>       x86: Enable PAT to use cache mode translation tables
>>>
>>> Unfortunately I can't see any console log.
>>
>> Hmm, weird. Could you provide some more information?
>>
>> Kernel config, hardware used, /proc/cpuinfo of working kernel?
>> Anything you see with earlyprintk enabled?
>>
>>
>> Juergen
> 
> (Sorry for resending this email, previous one bounced from mailing list due to HTML format)
> 
> Hi,
> 
> I'm using Fedora 21, with custom built kernel.
> Host PC is windows 7 64-bit, and running VMWare workstation 10 for guest Fedora Linux.
> 
> With earlyprintk, just following message is printed.
> 
>    early console in setup code
> 
> and nothing more...

Can you try attached diagnostic patch, please? I suspect a problem
regarding VMWares PAT emulation...


Juergen

[-- Attachment #2: diag.patch --]
[-- Type: text/x-patch, Size: 569 bytes --]

diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c
index edf299c..d77d6a8 100644
--- a/arch/x86/mm/pat.c
+++ b/arch/x86/mm/pat.c
@@ -182,6 +182,7 @@ void pat_init_cache_modes(void)
 	u64 pat;
 
 	rdmsrl(MSR_IA32_CR_PAT, pat);
+	pr_info("read pat %0llx\n", pat);
 	pat_msg[32] = 0;
 	for (i = 7; i >= 0; i--) {
 		cache = pat_get_cache_mode((pat >> (i * 8)) & 7,
@@ -237,6 +238,8 @@ void pat_init(void)
 	if (!boot_pat_state)
 		rdmsrl(MSR_IA32_CR_PAT, boot_pat_state);
 
+	pr_info("about to write pat %0llx\n", pat);
+
 	wrmsrl(MSR_IA32_CR_PAT, pat);
 
 	if (boot_cpu)

  reply	other threads:[~2014-12-15 11:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-15  7:52 Re: [3.18+] Can't boot with commit bd809af1 ("x86: Enable PAT to use cache mode translation tables") Jongman Heo
2014-12-15 11:52 ` Juergen Gross [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-12-17  2:46 Jongman Heo
2014-12-17  5:39 ` Thomas Hellstrom
2014-12-16  6:46 Jongman Heo
2014-12-16 13:08 ` Peter Hurley
2014-12-16 15:12   ` Thomas Hellstrom
2014-12-16  6:29 Jongman Heo
2014-12-16  6:36 ` Juergen Gross
2014-12-16  4:40 Jongman Heo
2014-12-16  5:14 ` Juergen Gross
     [not found] <1983011076.75441418533626741.JavaMail.weblogic@epmlwas09c>
2014-12-15  5:17 ` Juergen Gross
2014-12-14  5:09 허종만

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=548ECB6E.5060104@suse.com \
    --to=jgross@suse.com \
    --cc=jongman.heo@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    /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