[3.18+] Can't boot with commit bd809af1 ("x86: Enable PAT to use cache mode translation tables")
Quoted 44 lines
------- Original Message -------
Sender : Juergen Gross<[email protected]>
Date : 2014-12-15 20:52 (GMT+09:00)
Title : Re: [3.18+] Can't boot with commitbd809af1("x86: Enable PAT to use cache mode translation tables")Quoted 38 lines · Jongman Heo
Quoted 19 lines
------- Original Message -------
Sender : Juergen Gross
Date : 2014-12-15 14:04 (GMT+09:00)
Title : Re: [3.18+] Can't boot with commitbd809af1("x86: Enable PAT to use cache mode translation tables")Quoted 5 lines · 허종만
Hi,
My Linux virtual machine on (Windows) VMWare workstation 10 can't boot with following commit.
Quoted 7 lines
commit
bd809af16e3ab1f8d55b3e2928c47c67e2a865d2Author: Juergen Gross Date: Mon Nov 3 14:02:03 2014 +0100x86: Enable PAT to use cache mode translation tables
Unfortunately I can't see any console log.
Quoted 7 lines
Hmm, weird. Could you provide some more information?
Kernel config, hardware used,
/proc/cpuinfoof 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
Quoted 7 lines
Quoted 1 line
and nothing more...
Can you try attached diagnostic patch, please? I suspect a problem regarding VMWares PAT emulation...
Juergen
Hi,
With the commit reverted, the patch doesn't apply.
Without revert, kernel (patch applied) doesn't boot and I can't see any message.
Let me show you my PAT values (the commit reverted)
# dmesg | grep PAT
[ 0.000000] x86 PAT enabled: cpu 0, old 0x0, new 0x7010600070106
[ 0.314631] x86 PAT enabled: cpu 3, old 0x0, new 0x7010600070106
[ 0.314703] x86 PAT enabled: cpu 1, old 0x0, new 0x7010600070106
[ 0.314780] x86 PAT enabled: cpu 2, old 0x0, new 0x7010600070106
[ 0.314852] x86 PAT enabled: cpu 4, old 0x0, new 0x7010600070106
[ 0.314923] x86 PAT enabled: cpu 0, old 0x0, new 0x7010600070106
[ 0.314997] x86 PAT enabled: cpu 6, old 0x0, new 0x7010600070106
[ 0.315069] x86 PAT enabled: cpu 7, old 0x0, new 0x7010600070106
[ 0.315142] x86 PAT enabled: cpu 5, old 0x0, new 0x7010600070106
�淸�{.n�+돴윯돪�+%듚�깁負쪐w��{.n�+돴쪐{깸G쳺��{ay����,j�f"톒쉹��묎�z_溫(�쉸듶줷"얎�m����G쳺�◀?솳鈺�&x�~뤳턨O뺞촾퇉v�^�m����띠�◀?뻀�Quoted 50 lines · Jongman Heo
Quoted 50 lines
------- Original Message -------
Sender : Juergen Gross<[email protected]>
Date : 2014-12-15 20:52 (GMT+09:00)
Title : Re: [3.18+] Can't boot with commitbd809af1("x86: Enable PAT to use cache mode translation tables")Quoted 31 lines · Jongman Heo
Quoted 19 lines
------- Original Message -------
Sender : Juergen Gross
Date : 2014-12-15 14:04 (GMT+09:00)
Title : Re: [3.18+] Can't boot with commitbd809af1("x86: Enable PAT to use cache mode translation tables")Quoted 5 lines · 허종만
Hi,
My Linux virtual machine on (Windows) VMWare workstation 10 can't boot with following commit.
Quoted 7 lines
commit
bd809af16e3ab1f8d55b3e2928c47c67e2a865d2Author: Juergen Gross Date: Mon Nov 3 14:02:03 2014 +0100x86: Enable PAT to use cache mode translation tables
Unfortunately I can't see any console log.
Quoted 7 lines
Hmm, weird. Could you provide some more information?
Kernel config, hardware used,
/proc/cpuinfoof 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,
Quoted 8 lines
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...
Quoted 5 lines
Quoted 1 line
Juergen
Hi,
With the commit reverted, the patch doesn't apply.
Sure.
Quoted 1 line
Without revert, kernel (patch applied) doesn't boot and I can't see any message.
What are your kernel parameters? There must be some message with the diagnostic patch, as the first pr_info() is called before any other part of the critical patch is becoming active. Could it be you have instructed the kernel to be "quiet"? I'd recommend:
earlyprintk=vga ignore_loglevel
and no quiet. I don't know VMWare settings, so may be you can use earlyprintk=ttyS0 instead of vga.
Quoted 13 lines
Let me show you my PAT values (the commit reverted)
# dmesg | grep PAT [ 0.000000] x86 PAT enabled: cpu 0, old 0x0, new 0x7010600070106 [ 0.314631] x86 PAT enabled: cpu 3, old 0x0, new 0x7010600070106 [ 0.314703] x86 PAT enabled: cpu 1, old 0x0, new 0x7010600070106 [ 0.314780] x86 PAT enabled: cpu 2, old 0x0, new 0x7010600070106 [ 0.314852] x86 PAT enabled: cpu 4, old 0x0, new 0x7010600070106 [ 0.314923] x86 PAT enabled: cpu 0, old 0x0, new 0x7010600070106 [ 0.314997] x86 PAT enabled: cpu 6, old 0x0, new 0x7010600070106 [ 0.315069] x86 PAT enabled: cpu 7, old 0x0, new 0x7010600070106 [ 0.315142] x86 PAT enabled: cpu 5, old 0x0, new 0x7010600070106
These are the expected values. But these values are the ones which are written, not the ones which have been read from the PAT MSR again.
Without applying the critical patch you could add:
rdmsrl(MSR_IA32_CR_PAT, pat);printk(KERN_INFO "PAT read: cpu %d, 0x%Lx\n", smp_processor_id(), pat);
at the end of pat_init() to verify VMWare is handling reads of the PAT MSR properly.
Juergen