Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-20 Thread Peter Zijlstra
On Wed, Dec 20, 2017 at 10:08:21PM +0800, Zhang Rui wrote: > > Does this help? > > > No. Bah!, does this at least get you a IRQ0 line in /proc/interrupts? > > diff --git a/arch/x86/kernel/time.c b/arch/x86/kernel/time.c > > index 749d189f8cd4..45675072771c 100644 > > ---

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-20 Thread Peter Zijlstra
On Wed, Dec 20, 2017 at 10:08:21PM +0800, Zhang Rui wrote: > > Does this help? > > > No. Bah!, does this at least get you a IRQ0 line in /proc/interrupts? > > diff --git a/arch/x86/kernel/time.c b/arch/x86/kernel/time.c > > index 749d189f8cd4..45675072771c 100644 > > ---

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-20 Thread Zhang Rui
On Tue, 2017-12-19 at 18:23 +0100, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 05:01:55PM +0100, Peter Zijlstra wrote: > > > > On Tue, Dec 19, 2017 at 11:42:41PM +0800, Zhang Rui wrote: > > > > > > On Tue, 2017-12-19 at 16:23 +0100, Peter Zijlstra wrote: > > > > > > > > > > > [

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-20 Thread Zhang Rui
On Tue, 2017-12-19 at 18:23 +0100, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 05:01:55PM +0100, Peter Zijlstra wrote: > > > > On Tue, Dec 19, 2017 at 11:42:41PM +0800, Zhang Rui wrote: > > > > > > On Tue, 2017-12-19 at 16:23 +0100, Peter Zijlstra wrote: > > > > > > > > > > > [

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Peter Zijlstra
On Tue, Dec 19, 2017 at 05:01:55PM +0100, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 11:42:41PM +0800, Zhang Rui wrote: > > On Tue, 2017-12-19 at 16:23 +0100, Peter Zijlstra wrote: > > > > [0.00] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) > > > [0.00] ACPI: IRQ0

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Peter Zijlstra
On Tue, Dec 19, 2017 at 05:01:55PM +0100, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 11:42:41PM +0800, Zhang Rui wrote: > > On Tue, 2017-12-19 at 16:23 +0100, Peter Zijlstra wrote: > > > > [0.00] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) > > > [0.00] ACPI: IRQ0

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Peter Zijlstra
On Tue, Dec 19, 2017 at 11:42:41PM +0800, Zhang Rui wrote: > On Tue, 2017-12-19 at 16:23 +0100, Peter Zijlstra wrote: > > [0.00] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) > > [0.00] ACPI: IRQ0 used by override. > > > > So your ACPI table has an override for IRQ2

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Peter Zijlstra
On Tue, Dec 19, 2017 at 11:42:41PM +0800, Zhang Rui wrote: > On Tue, 2017-12-19 at 16:23 +0100, Peter Zijlstra wrote: > > [0.00] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) > > [0.00] ACPI: IRQ0 used by override. > > > > So your ACPI table has an override for IRQ2

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Zhang Rui
On Tue, 2017-12-19 at 16:31 +0100, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 04:23:07PM +0100, Peter Zijlstra wrote: > > > > On Tue, Dec 19, 2017 at 06:48:24PM +0800, Zhang Rui wrote: > > > > > > On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote: > > > > > > > > Hi, can you see if

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Zhang Rui
On Tue, 2017-12-19 at 16:31 +0100, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 04:23:07PM +0100, Peter Zijlstra wrote: > > > > On Tue, Dec 19, 2017 at 06:48:24PM +0800, Zhang Rui wrote: > > > > > > On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote: > > > > > > > > Hi, can you see if

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Zhang Rui
On Tue, 2017-12-19 at 16:23 +0100, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 06:48:24PM +0800, Zhang Rui wrote: > > > > On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote: > > > > > > Hi, can you see if this makes you Surface boot? > > > > > No, it does not boot. > So I'm confused on

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Zhang Rui
On Tue, 2017-12-19 at 16:23 +0100, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 06:48:24PM +0800, Zhang Rui wrote: > > > > On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote: > > > > > > Hi, can you see if this makes you Surface boot? > > > > > No, it does not boot. > So I'm confused on

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Peter Zijlstra
On Tue, Dec 19, 2017 at 04:23:07PM +0100, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 06:48:24PM +0800, Zhang Rui wrote: > > On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote: > > > Hi, can you see if this makes you Surface boot? > > > > > No, it does not boot. > > So I'm confused on

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Peter Zijlstra
On Tue, Dec 19, 2017 at 04:23:07PM +0100, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 06:48:24PM +0800, Zhang Rui wrote: > > On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote: > > > Hi, can you see if this makes you Surface boot? > > > > > No, it does not boot. > > So I'm confused on

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Peter Zijlstra
On Tue, Dec 19, 2017 at 06:48:24PM +0800, Zhang Rui wrote: > On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote: > > Hi, can you see if this makes you Surface boot? > > > No, it does not boot. So I'm confused on the lapic calibration. That stuff uses global_clock_event, which is initially

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Peter Zijlstra
On Tue, Dec 19, 2017 at 06:48:24PM +0800, Zhang Rui wrote: > On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote: > > Hi, can you see if this makes you Surface boot? > > > No, it does not boot. So I'm confused on the lapic calibration. That stuff uses global_clock_event, which is initially

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Zhang Rui
On Tue, 2017-12-19 at 14:15 +0100, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 06:48:24PM +0800, Zhang Rui wrote: > > > > On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote: > > > > > > Hi, can you see if this makes you Surface boot? > > > > > No, it does not boot. > Bah, staring at

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Zhang Rui
On Tue, 2017-12-19 at 14:15 +0100, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 06:48:24PM +0800, Zhang Rui wrote: > > > > On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote: > > > > > > Hi, can you see if this makes you Surface boot? > > > > > No, it does not boot. > Bah, staring at

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Peter Zijlstra
On Tue, Dec 19, 2017 at 06:48:24PM +0800, Zhang Rui wrote: > On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote: > > Hi, can you see if this makes you Surface boot? > > > No, it does not boot. Bah, staring at the lapic calibrate now, that is a bit of a mess.. > > I tested it on my IVB by

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Peter Zijlstra
On Tue, Dec 19, 2017 at 06:48:24PM +0800, Zhang Rui wrote: > On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote: > > Hi, can you see if this makes you Surface boot? > > > No, it does not boot. Bah, staring at the lapic calibrate now, that is a bit of a mess.. > > I tested it on my IVB by

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Zhang Rui
On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote: > Hi, can you see if this makes you Surface boot? > No, it does not boot. > I tested it on my IVB by making has_legacy_pic() return unconditional > true. > > [0.024000] tsc: Unable to calibrate against PIT > [0.025000] tsc: using

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-19 Thread Zhang Rui
On Mon, 2017-12-18 at 21:28 +0100, Peter Zijlstra wrote: > Hi, can you see if this makes you Surface boot? > No, it does not boot. > I tested it on my IVB by making has_legacy_pic() return unconditional > true. > > [0.024000] tsc: Unable to calibrate against PIT > [0.025000] tsc: using

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-18 Thread Peter Zijlstra
Hi, can you see if this makes you Surface boot? I tested it on my IVB by making has_legacy_pic() return unconditional true. [0.024000] tsc: Unable to calibrate against PIT [0.025000] tsc: using HPET reference calibration [0.026000] tsc: Detected 2792.451 MHz processor --- diff

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-12-18 Thread Peter Zijlstra
Hi, can you see if this makes you Surface boot? I tested it on my IVB by making has_legacy_pic() return unconditional true. [0.024000] tsc: Unable to calibrate against PIT [0.025000] tsc: using HPET reference calibration [0.026000] tsc: Detected 2792.451 MHz processor --- diff

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-11-29 Thread Zhang Rui
On Tue, 2017-11-28 at 13:36 +0100, Peter Zijlstra wrote: > On Tue, Nov 28, 2017 at 06:59:01PM +0800, Zhang Rui wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > My Surface Pro 4 is unable to boot after 4.12. The symptom > > > > > > is > > > > yes. Tried 4.4 distro and 4.12 vanilla

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-11-29 Thread Zhang Rui
On Tue, 2017-11-28 at 13:36 +0100, Peter Zijlstra wrote: > On Tue, Nov 28, 2017 at 06:59:01PM +0800, Zhang Rui wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > My Surface Pro 4 is unable to boot after 4.12. The symptom > > > > > > is > > > > yes. Tried 4.4 distro and 4.12 vanilla

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-11-28 Thread Peter Zijlstra
On Tue, Nov 28, 2017 at 06:59:01PM +0800, Zhang Rui wrote: > > > > > My Surface Pro 4 is unable to boot after 4.12. The symptom is > yes. Tried 4.4 distro and 4.12 vanilla kernel, kernel always freezes > with boot option "notscdeadline"/"lapic=notscdeadline". Then for some mysterious reason,

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-11-28 Thread Peter Zijlstra
On Tue, Nov 28, 2017 at 06:59:01PM +0800, Zhang Rui wrote: > > > > > My Surface Pro 4 is unable to boot after 4.12. The symptom is > yes. Tried 4.4 distro and 4.12 vanilla kernel, kernel always freezes > with boot option "notscdeadline"/"lapic=notscdeadline". Then for some mysterious reason,

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-11-28 Thread Zhang Rui
On Tue, 2017-11-28 at 10:34 +0100, Thomas Gleixner wrote: > On Tue, 28 Nov 2017, Zhang Rui wrote: > > > > > On Tue, 2017-11-28 at 09:14 +0100, Peter Zijlstra wrote: > > > > > > On Tue, Nov 28, 2017 at 10:08:53AM +0800, Zhang Rui wrote: > > > > > > > > > > > > Hi, All, > > > > > > > > My

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-11-28 Thread Zhang Rui
On Tue, 2017-11-28 at 10:34 +0100, Thomas Gleixner wrote: > On Tue, 28 Nov 2017, Zhang Rui wrote: > > > > > On Tue, 2017-11-28 at 09:14 +0100, Peter Zijlstra wrote: > > > > > > On Tue, Nov 28, 2017 at 10:08:53AM +0800, Zhang Rui wrote: > > > > > > > > > > > > Hi, All, > > > > > > > > My

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-11-28 Thread Peter Zijlstra
On Tue, Nov 28, 2017 at 04:22:15PM +0800, Zhang Rui wrote: > On Tue, 2017-11-28 at 09:14 +0100, Peter Zijlstra wrote: > > On Tue, Nov 28, 2017 at 10:08:53AM +0800, Zhang Rui wrote: > > > > > > Hi, All, > > > > > > My Surface Pro 4 is unable to boot after 4.12. The symptom is that > > > kernel

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-11-28 Thread Peter Zijlstra
On Tue, Nov 28, 2017 at 04:22:15PM +0800, Zhang Rui wrote: > On Tue, 2017-11-28 at 09:14 +0100, Peter Zijlstra wrote: > > On Tue, Nov 28, 2017 at 10:08:53AM +0800, Zhang Rui wrote: > > > > > > Hi, All, > > > > > > My Surface Pro 4 is unable to boot after 4.12. The symptom is that > > > kernel

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-11-28 Thread Thomas Gleixner
On Tue, 28 Nov 2017, Zhang Rui wrote: > On Tue, 2017-11-28 at 09:14 +0100, Peter Zijlstra wrote: > > On Tue, Nov 28, 2017 at 10:08:53AM +0800, Zhang Rui wrote: > > > > > > Hi, All, > > > > > > My Surface Pro 4 is unable to boot after 4.12. The symptom is that > > > kernel freezes during boot,

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-11-28 Thread Thomas Gleixner
On Tue, 28 Nov 2017, Zhang Rui wrote: > On Tue, 2017-11-28 at 09:14 +0100, Peter Zijlstra wrote: > > On Tue, Nov 28, 2017 at 10:08:53AM +0800, Zhang Rui wrote: > > > > > > Hi, All, > > > > > > My Surface Pro 4 is unable to boot after 4.12. The symptom is that > > > kernel freezes during boot,

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-11-28 Thread Zhang Rui
On Tue, 2017-11-28 at 09:14 +0100, Peter Zijlstra wrote: > On Tue, Nov 28, 2017 at 10:08:53AM +0800, Zhang Rui wrote: > > > > Hi, All, > > > > My Surface Pro 4 is unable to boot after 4.12. The symptom is that > > kernel freezes during boot, and the last message in the screen is > > loading the

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-11-28 Thread Zhang Rui
On Tue, 2017-11-28 at 09:14 +0100, Peter Zijlstra wrote: > On Tue, Nov 28, 2017 at 10:08:53AM +0800, Zhang Rui wrote: > > > > Hi, All, > > > > My Surface Pro 4 is unable to boot after 4.12. The symptom is that > > kernel freezes during boot, and the last message in the screen is > > loading the

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-11-28 Thread Peter Zijlstra
On Tue, Nov 28, 2017 at 10:08:53AM +0800, Zhang Rui wrote: > Hi, All, > > My Surface Pro 4 is unable to boot after 4.12. The symptom is that > kernel freezes during boot, and the last message in the screen is > loading the initrd image. And I have bisected it to this commit > +//

Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL

2017-11-28 Thread Peter Zijlstra
On Tue, Nov 28, 2017 at 10:08:53AM +0800, Zhang Rui wrote: > Hi, All, > > My Surface Pro 4 is unable to boot after 4.12. The symptom is that > kernel freezes during boot, and the last message in the screen is > loading the initrd image. And I have bisected it to this commit > +//