Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2596918imm; Sat, 23 Jun 2018 23:46:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK7jyFHEONJZbFtLH0rCo/ZfZbs1elusyoEAO6nRvX6OAx6N+MoEGftpEfAQoyENC11T6+n X-Received: by 2002:a17:902:9a4b:: with SMTP id x11-v6mr7556557plv.342.1529822773093; Sat, 23 Jun 2018 23:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529822773; cv=none; d=google.com; s=arc-20160816; b=vOZZkFrgRRMea87cZBV1mU/nWhvwWyzo3h02QjQgok/CAhKKnlp1x4YPySZFSOIeZl SyDOMtabI9xLHSO4MkokSLpjvX2v7fQL/Ht1VN1oNlRt9yd6N7aAMc+OVsbvIgTHLNPr ldFZMZvfInfz6NvBipyeNzE+505ZxpWdYfFpQ6SI9g4M2DuUqAMD4Y9k3pTpj2HsGtPQ Cj40ubDqNfOQX0KPQDSlCPl/Ux+9m2ZQMD2SuHdYm6VajLb6sNYgg70vW5q80uXl5heY aZ4dz5VHt7xb3MRHUOeZQKC8yS86ltv6jGagLhl2OHOyCNZfcSYOYxqZkIlW/FNslnk1 /xCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=Y3hN2yZ6rbI3jv2y8YWnobL1eDJy3KITZH+pnOc3aM0=; b=NrOpLAAOJoKy5P7ZZIjXjdsXTU82J+mIoUia6cl0blU5EzVrp55lSdcwTeSfCtjKEe wuIA0duITSKdOjN1UXTT97iN8JYZBzhAfQ0wXS+Bf6RSKazaysnX/E+csSh0Ykeg5TKL B3F6LwxIJAuMTfVpcJILADQfe6KcrKJqevYzf6KYs5iSUzp63dukDlrGREmdWOR80qjN n7IXF7/OhWx/cXId8IjwGmaHuuW74gNG3s8aTyD+b+pI05h26Xpd1pXXbbu+nBanWaP5 PSFAkvKoNOKzdXn/UBNStfDH3YWPxGZJUz160pgPa4XdhVo9RdE1hymFn6v3JKqkY4c2 LjgQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1-v6si9482049pgs.221.2018.06.23.23.45.28; Sat, 23 Jun 2018 23:46:13 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751546AbeFXGnz (ORCPT + 99 others); Sun, 24 Jun 2018 02:43:55 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:44665 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751371AbeFXGny (ORCPT ); Sun, 24 Jun 2018 02:43:54 -0400 Received: from p4fea482e.dip0.t-ipconnect.de ([79.234.72.46] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fWykK-0002Sw-CT; Sun, 24 Jun 2018 08:43:36 +0200 Date: Sun, 24 Jun 2018 08:43:35 +0200 (CEST) From: Thomas Gleixner To: Fenghua Yu cc: 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 In-Reply-To: <20180624011738.GI18979@romley-ivt3.sc.intel.com> Message-ID: 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> <20180624011738.GI18979@romley-ivt3.sc.intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 23 Jun 2018, Fenghua Yu wrote: > 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 > ... They even have a handler which makes the thing die, but never bothered to enable #AC in the first place. So the handler is there to catch the case that an operating system dares to enable #AC. Thank god, I don't have to review that source code. Thanks, tglx