From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753494AbdLSPXe (ORCPT ); Tue, 19 Dec 2017 10:23:34 -0500 Received: from mga14.intel.com ([192.55.52.115]:7558 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753437AbdLSPXQ (ORCPT ); Tue, 19 Dec 2017 10:23:16 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,427,1508828400"; d="scan'208";a="185492398" Message-ID: <1513696992.2745.1.camel@intel.com> Subject: Re: Regression: unable to boot after commit bd9240a18edf ("x86/apic: Add TSC_DEADLINE quirk due to errata") - Surface Pro 4 SKL From: Zhang Rui To: Peter Zijlstra Cc: Thomas Gleixner , LKML , linux-x86 , Len Brown , "Chen, Yu C" Date: Tue, 19 Dec 2017 23:23:12 +0800 In-Reply-To: <20171219131526.tvuaftyy5j66xzj2@hirez.programming.kicks-ass.net> References: <1511834933.2498.14.camel@intel.com> <20171128081440.mi3nrhxgori75cbs@hirez.programming.kicks-ass.net> <1511857335.2498.22.camel@intel.com> <1511866741.2441.5.camel@intel.com> <20171128123607.fmgpq76brf6bdkk4@hirez.programming.kicks-ass.net> <1511966690.2750.9.camel@intel.com> <20171218202822.juwyxsd7millme7o@hirez.programming.kicks-ass.net> <1513680504.2569.1.camel@intel.com> <20171219131526.tvuaftyy5j66xzj2@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 the lapic calibrate now, that is a bit of a mess.. > > > > > > > > > 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 --git a/arch/x86/include/asm/i8259.h > > > b/arch/x86/include/asm/i8259.h > > > index c8376b40e882..e2cfc4b52ee4 100644 > > > --- a/arch/x86/include/asm/i8259.h > > > +++ b/arch/x86/include/asm/i8259.h > > > @@ -69,6 +69,11 @@ struct legacy_pic { > > >  extern struct legacy_pic *legacy_pic; > > >  extern struct legacy_pic null_legacy_pic; > > >   > > > +static inline bool has_legacy_pic(void) > > > +{ > > > + return legacy_pic == &null_legacy_pic; > > > +} > > > + > > shouldn't this be > > return legacy_pic == &default_legacy_pic; > > ? > != &null, but yes, I mess that up. I see. I have changed that and the platform can not boot neither. thanks, rui