Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp968972imm; Fri, 22 Jun 2018 08:13:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJTcG8j5ZPlre9V+pB7xth4RE0VAdZSTX9I3jXzDWim+lqQeqUsK1VwRzOUJ/AGDqtYpBbi X-Received: by 2002:a65:4a92:: with SMTP id b18-v6mr1763722pgu.107.1529680425416; Fri, 22 Jun 2018 08:13:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529680425; cv=none; d=google.com; s=arc-20160816; b=WoS0fYKtm8zFvh5TwTlos2d7Z9iENqKYONJ9DLnBGw7n/ZfuSyVzMXfhTUuIueET5U Ma7X6XT56GPO/Je6I6pDYcCSqjVS9b518L8e+rbxW2m4MBfF5HZLuHVgrIUou8bO/iJW kS4I5NrklmCs8SUYBPuc4qefktTGb+1Iqui18J4ZB5UhchNz7yLwi9lG1hliPUNb3aUL vedUPjCwTa6TfGpDOzK3it+mRA5XuWIWp7mqw2hz6qrl+oF4dmzukGp+sPUv0n9c4b37 ERCYHuoHMTqQqmEGff0e8G4al9LSF44GCE2lt4YJQNZnFIc5gJd/3sDto9afXvZV1spX LilA== 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:date:cc:to:from:subject :message-id:arc-authentication-results; bh=MIouFTSoZbOetJC3XaYIAgUmbmtynTPDCgDAlnygwG0=; b=pZOa6Gcm36aE1xttev50Kb4Gph2H6tJq8tA5ibcoF7oeJtGCm3w77rPsYbX+IO/4RY nDWQfTVPwfIx/YLOV1KzSeGU36asUd8tfC6OnBrf5WjaF9+CT5sWXlTOWAbe067Nzh9N /lD3PvvtWrkFKM6aMA6yM7bNgp4iiD6cmFcl65BJxliuVJX6k88McYFHXO7+3iiJieaO 6v28Jb8hZU70KAq+9oIyYhBWgPybTBHJiqGtUvReK283SQRr5M8Bdq61oxYOIobNKwMG 6JU9lM0vR91TMTudxuTp2jfVByVuM6SU9EmCmeKsc9HjXWB+rbFfg8+MEcD64/yX2SDs P14A== 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 v5-v6si7877593plo.166.2018.06.22.08.13.30; Fri, 22 Jun 2018 08:13:45 -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 S933484AbeFVPLQ (ORCPT + 99 others); Fri, 22 Jun 2018 11:11:16 -0400 Received: from mga18.intel.com ([134.134.136.126]:62150 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933304AbeFVPLP (ORCPT ); Fri, 22 Jun 2018 11:11:15 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jun 2018 08:11:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,257,1526367600"; d="scan'208";a="66383152" Received: from tjanczak-mobl1.ger.corp.intel.com ([10.252.25.146]) by fmsmga001.fm.intel.com with ESMTP; 22 Jun 2018 08:11:09 -0700 Message-ID: <1529680267.4364.50.camel@linux.intel.com> 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 From: Alan Cox To: Peter Zijlstra , Fenghua Yu Cc: 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 Date: Fri, 22 Jun 2018 16:11:07 +0100 In-Reply-To: <20180621195823.GD13636@worktop.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> Organization: Intel Corporation Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 (3.26.6-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Alan