Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4983227imm; Tue, 26 Jun 2018 04:05:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJSDLiErfxoK1itguM0PKGO3teql/H+lMW296DoJ0vUof0vbYoQRtLKHyHJe2aCponXVFnG X-Received: by 2002:a17:902:4203:: with SMTP id g3-v6mr1073112pld.315.1530011128483; Tue, 26 Jun 2018 04:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530011128; cv=none; d=google.com; s=arc-20160816; b=xYUAxB29vRytd60vMaCCcWEnk2iWPW5ozwMYkh4GqL8iTMkLLCisg6cfzj1nZ2Yr2I kQCHa54ytJMthNtdakn0c5yZD69hs8yjRZvG7RvTyg41o9nTgcXDhm4V0Kxdj+uVRA3M zdPMKUn7zpjLPW3lyxV4IrV7rQnbKX89uB0AfCgQoGM7zUVeXoHQxp7l5ZlhQ9h6LCkO un3PZbjjRW2vUTSR1ui5L/fA8ZH6DuMtRiIRC7Gg3CnnzxI9Ezgqkjsw+jzQ1LJghsWo hBv2dLPV8NypUyTDRu4i7qbcoG/8/ZoYNuu/HLrThzTzAEa1PerXsv8pSY1jpEqoKBJT pR1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=M/gVCdeU4TKhZrc7nApcirABX02TJMCSANBN/tlcWVI=; b=b38ydzwDBDQcyPC6TyYpZt/gQL+lAZ1YqyZTCG6evQhpCik5D92A43g6XzlGKSQsSi 8VeVA587NAmWf7zZLOpgaY3+UHQNgSX9A20zY+RzY0BuDGSMcLpTSdLmA5D5/N3nKtuH iNmBJE+PlHbRe6zMuCU9AxrgCulmF51EY6Ay/74m4NJbjkqt/qrsiL2rVC1tjKgW0i3z H/36ue3bNw5N5ps6W2UjbUtQebbKuL5/3XLr6mQaDb0bU//Wr1dMEkaGxyqE9vL1CnTH zOxTq89OsxVjEqNXzTswcAG2OCjGlPHxYE2JFoCjJAzJMsDFJgxnN97yYC10Q5mVRIrr KGjw== 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 e189-v6si1472214pfe.80.2018.06.26.04.05.13; Tue, 26 Jun 2018 04:05:28 -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 S934398AbeFZLCz (ORCPT + 99 others); Tue, 26 Jun 2018 07:02:55 -0400 Received: from www.llwyncelyn.cymru ([82.70.14.225]:50114 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933444AbeFZLCx (ORCPT ); Tue, 26 Jun 2018 07:02:53 -0400 Received: from alans-desktop (82-70-14-226.dsl.in-addr.zen.co.uk [82.70.14.226]) by fuzix.org (8.15.2/8.15.2) with ESMTP id w5QB2M5O029834; Tue, 26 Jun 2018 12:02:22 +0100 Date: Tue, 26 Jun 2018 12:02:21 +0100 From: Alan Cox To: Peter Zijlstra Cc: Alan Cox , Fenghua Yu , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Ashok Raj , Dave Hansen , Rafael Wysocki , Tony Luck , Ravi V Shankar , Arjan van de Ven , linux-kernel , x86 Subject: Re: [RFC PATCH 06/16] x86/split_lock: Save #AC setting for split lock in firmware in boot time and restore the setting in reboot Message-ID: <20180626120221.7fbd0eff@alans-desktop> In-Reply-To: <20180626090521.GF2494@hirez.programming.kicks-ass.net> References: <1527435965-202085-1-git-send-email-fenghua.yu@intel.com> <1527435965-202085-7-git-send-email-fenghua.yu@intel.com> <20180621195823.GD13636@worktop.programming.kicks-ass.net> <1529680267.4364.50.camel@linux.intel.com> <20180626090521.GF2494@hirez.programming.kicks-ass.net> Organization: Intel Corporation X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Jun 2018 11:05:21 +0200 Peter Zijlstra wrote: > On Fri, Jun 22, 2018 at 04:11:07PM +0100, Alan Cox wrote: > > On Thu, 2018-06-21 at 21:58 +0200, Peter Zijlstra wrote: > > > On Sun, May 27, 2018 at 08:45:55AM -0700, Fenghua Yu wrote: > > > > Firmware may contain split locked instructions. > > > > > > I think that's the wrong attitude. You should mandate in your BIOS > > > development guide that Firmware _MUST_NOT_ contain unaligned LOCK > > > prefixed instructions. > > > > > > > In the longer term I would agree entirely with that sentiment. > > But then how do we deal with SMIs ? On a system doing that level of real time you don't do SMIs. I think Thomas comment that this shouldn't be in a production kernel because the firmware people need to have their house in order before that is a fair one. (and I've already been poking people to make sure this is documented properly as a requirement) Alan