Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2421060imm; Sat, 23 Jun 2018 18:21:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKUhOz2I7bzbIVWZi0OaI6ls3sCBAD/Ir7qgwevqVJ8fWPLMaW5+Ber9/108xfPA+Fx6arb X-Received: by 2002:a17:902:6e01:: with SMTP id u1-v6mr7069943plk.96.1529803275136; Sat, 23 Jun 2018 18:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529803275; cv=none; d=google.com; s=arc-20160816; b=GBStqk/zq6vtRvKMBdyEiZKXBTf2/v7TExH7oshooHXRmWk4CY6MzhcfxWo+30gobk iiWrC7FDCbxxATLdXbfo+xAago84tRdpl5117ZoFTKIsWD0kdC3zRcs0ygSGpHbiYu69 vR+iNpWE71xmGxS5463Qxfdp+QxYkusAWLWwqdtZS2rKa5IJxKv0GhztxSi6/sLfidwr lkbbdYa9xjT4UQcBv/FH0I6iYjpMIL9MSDwE7JLypTLtgZAjgrb++fP6FuI/0GSA/RZ4 BJG1WtBLAwvdxxQIqaI12YHrVBJcc7Qhbws8DPZ++FOdtMh7Y8VoKGNEdePuCEmfbvu9 viXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=+IkmjuL0fNKD0HN2h+xQ7sSDttVNCY2MijIWLKJGbvs=; b=KmCzyvCX17BnXB+yprC327kJpVh0SCPkcH1JOn4m2rfOslq1wWF0QAE/Sbq3lOHw2B TRh/cGvO/Ee+wWt4e4Ecbha8C5EvjvRih+MHUddYpc3xODuh2MkR74LBvU42H1XcF+uH a3+SbsQUjaTmn1VBsZGPWvABh026UcVYcMIUx3lk/U+rtq6RwXKzzHanuKCY68WDYS9C vXy7Wjpt84LZ3EeWPf8Mp7OVSr6Q7v6o0l846x0qxvi4NCbeZgkFpOqgT+IjmKmnClcf UKLCyWP5kKD49hcYj8j33R7ebYFRWk00FCLXS4Ydkqw20AXSGl4rNEjOI3FdA/j7hSOu MW2g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u11-v6si9111735pgq.480.2018.06.23.18.21.00; Sat, 23 Jun 2018 18:21:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752013AbeFXBSL (ORCPT + 99 others); Sat, 23 Jun 2018 21:18:11 -0400 Received: from mga12.intel.com ([192.55.52.136]:59164 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751585AbeFXBSK (ORCPT ); Sat, 23 Jun 2018 21:18:10 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jun 2018 18:18:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,263,1526367600"; d="scan'208";a="239731667" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by fmsmga005.fm.intel.com with ESMTP; 23 Jun 2018 18:18:10 -0700 Date: Sat, 23 Jun 2018 18:17:38 -0700 From: Fenghua Yu To: Thomas Gleixner Cc: Fenghua Yu , Ingo Molnar , "H. Peter Anvin" , Ashok Raj , Dave Hansen , Rafael Wysocki , Tony Luck , Alan Cox , Ravi V Shankar , Arjan van de Ven , linux-kernel , x86 Subject: Re: [RFC PATCH 02/16] x86/split_lock: Handle #AC exception for split lock in kernel mode Message-ID: <20180624011738.GI18979@romley-ivt3.sc.intel.com> References: <1527435965-202085-1-git-send-email-fenghua.yu@intel.com> <1527435965-202085-3-git-send-email-fenghua.yu@intel.com> <20180623042033.GF18979@romley-ivt3.sc.intel.com> <20180623150521.GG18979@romley-ivt3.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 24, 2018 at 02:55:08AM +0200, Thomas Gleixner wrote: > On Sat, 23 Jun 2018, Fenghua Yu wrote: > > On Sat, Jun 23, 2018 at 11:17:03AM +0200, Thomas Gleixner wrote: > > > On Fri, 22 Jun 2018, Fenghua Yu wrote: > It's not treated as failure. The firmware simply does not have an handler > for #AC installed and dies. I hope you yelled at the firmware people > already. I think firmware does handle the split lock in its #AC handler because firmware shows the following log and system hangs: !!!! IA32 Exception Type - 11(#AC - Alignment Check) CPU Apic ID - 00000014! ! ExceptionData - 00000000 EIP - 6A9DB6C3, CS - 00000010, EFLAGS - 00010006 ... > If that is a real wide spread issue in practice, then we might have to go > for some ugly workarounds, but we won't find out when we add them > upfront. So testing will show what's wrong in firmware land and we can > handle it from there. It's a completely orthogonal issue and has nothing to > do with the core functionality. Sure Thanks. -Fenghua