Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp171216imm; Thu, 21 Jun 2018 16:06:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIti6LuvGy8fs92YKVW6sFUP7Rk4FD8B3cjxa4N4uM1f7bzRkLirWgJnfO+z/NU44V4gpRQ X-Received: by 2002:a62:a6dd:: with SMTP id r90-v6mr29268416pfl.60.1529622387011; Thu, 21 Jun 2018 16:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529622386; cv=none; d=google.com; s=arc-20160816; b=huCoF+Q2/wQppn5gcg657RUbwUQQDTdMMigkjtCbF3WLtYdQaUndLaKIccCSX8eKnl gsxCV/uWStwV/2VwsKhzoTJpibqDZYo2DTWfrKauO3GRWtYNHB9Q4fIR5ne5yFzF1dEZ Xs+qDRGJQIGe5BaPI9Q5q+kw0fb00tu6v5vR3MUBsqLRPauk3wPYcqOqxdMdJvVSpGjI I7cMQ6C8umq0ncI2KXYRdIHUDDIWxBtgNPZmyw5l575tJyaP+pohAlsLwlqZ5h/UXcoF aahcR+hSUy/E2/ItDfub0HcRzg/y+Ju82tbtbn8IAQbiGV6DojaQSaJu0VzjuSAsybfJ hEXg== 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=mEkCfaIsa7FB9eC4H7P7p11FzQlRYwMHxJKTDa+YTVY=; b=OQ2MSYQ7flvLPu++Uboxqt5/GNk8BJLG7q9jbPdKUlmIUkXgswn0IxSHzl95i/FUsI tuv0pg6Rgb3jZRgF1LjBYd4zzQfPjKuMuBenChU0awW0OOPbJ5ea7MszLdAD/Zxe8o8o kkKaMPjJkBeRsoJdDlNVa07W9xVGWyyp4M1ghi1b1eOD13ajksTmtSpZ92pm4bLY26Ax DNOLzz5rtSJIHg9FuigPULDokcOV0iDuVG9A8Rq4yT1/ZjiSRkbicT6WjYUQSzHpc5wW gOZrsD7KYfWeUS7RNKFg2ByNEsQ+YDKvT0LlIWORZaJM1Bd/jiV2QdFraquX0oDvNGru DTsA== 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 1-v6si6030585plu.282.2018.06.21.16.06.11; Thu, 21 Jun 2018 16:06:26 -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 S933864AbeFUXFc (ORCPT + 99 others); Thu, 21 Jun 2018 19:05:32 -0400 Received: from mga14.intel.com ([192.55.52.115]:31739 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933446AbeFUXFb (ORCPT ); Thu, 21 Jun 2018 19:05:31 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jun 2018 16:05:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,253,1526367600"; d="scan'208";a="59940484" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by fmsmga002.fm.intel.com with ESMTP; 21 Jun 2018 16:05:30 -0700 Date: Thu, 21 Jun 2018 16:05:02 -0700 From: Fenghua Yu To: Peter Zijlstra Cc: Fenghua Yu , Thomas Gleixner , 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 00/16] x86/split_lock: Enable #AC exception for split locked accesses Message-ID: <20180621230501.GC18979@romley-ivt3.sc.intel.com> References: <1527435965-202085-1-git-send-email-fenghua.yu@intel.com> <20180621193738.GA13636@worktop.programming.kicks-ass.net> <20180621201851.GC114883@romley-ivt3.sc.intel.com> <20180621220003.GD114883@romley-ivt3.sc.intel.com> <20180621221006.GC2494@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180621221006.GC2494@hirez.programming.kicks-ass.net> 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 Fri, Jun 22, 2018 at 12:10:06AM +0200, Peter Zijlstra wrote: > On Thu, Jun 21, 2018 at 03:00:03PM -0700, Fenghua Yu wrote: > > The control knob for firmware is to choose continuing firmware execution > > by disabling #AC split lock (default) or stopping firmware execution > > by enabling #AC for split lock. Stopping firmware execution may be useful > > in hard real time system to identify any split lock issue on the platform. > > Having the option only allows broken firmware to continue to exist. > Limiting people in how they can use their machines. But in a real case, when I enable #AC for split lock in kernel, reboot hits #AC because of split lock in firmware code and firmware handles #AC as fatal error and stops continuing to run. It will take long time/forever for firmware to fix the split lock issue. Before the firmware issue is fixed, reboot or S4 cannot run if the feature is enabled by kernel. And if unlucky, I'm afraid the patch set even has no chance to be merged to upstream if maintainer's test machine has firmware split lock issue and the machine simply cannot reboot or go to S4 if the feature is enabled. For those reasons, the current patches just don't trust firmware and disable #AC for split lock for firmware by default and allow sysadmin to enable it for firmware via the control knob. So is it ok to still keep the control knob and disable #AC for split lock for firmware by default? Thanks. -Fenghua