Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp152527imm; Thu, 21 Jun 2018 15:44:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLul60KMGY9/8/BBZ2czfvKt9ILlFfScfEzU+xddbf9oJK78VYtZxp2eGZTnfw8ZWxX+j12 X-Received: by 2002:a17:902:a610:: with SMTP id u16-v6mr30357981plq.195.1529621093295; Thu, 21 Jun 2018 15:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529621093; cv=none; d=google.com; s=arc-20160816; b=POEGxOqJONnjwv+y5rJqJie8MqSsyGEMqwtOm3gAQLq4zodfOZV7Sgw7hIfAtoz9+G 5DJNm4ItDaS475D4hz97nOw+bfwwhERIuwIzuGasjTkh2t5CWfD7UQuwn06CYysSkZwl TNMkPxSf//SVBLx8JtcJtTtvIO5/LS045aPyE5aG7fXYXnb7eHETJFPuZaDGqW60bcmO 5prypyVelkMed7teToskyBxTLMetF6hIECCsEi8wHIeqrpsY6k593qORHZvO+H4mF62J +8c3KCZwpJgbAaLx1ONj5L1H8WEn0EncFCtbz2nCFGscIWQ7SsSlHQRSM4UvQk1ofJVy W+vA== 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=obK/a9yjHjB7nAj+DddyJzIUN5QbKqPSrckWDy19ycM=; b=Ml0xdJua4FlXbjnXlmRjEhJXwqxekIbAHwhkzIkLyeyJX6PgVQO275GcPrb35rBPr0 FNRZAoR34UnLm3e8OCB92eze1rptgxTv+cQKn66hD5dw76MMc54mWhYfFRR4AniYFrJv d9oRjzPjSCVTtWR1YQywYThG0429WQ+kC7sTSMC3mFSxHG5qaIiKZxbpvhFpauGTgB8r zz28683VL+FAwnIS8hNV74JIoynqh0F85Jo7L2KHeoPw7XbSMW+cJ0UciYNOTG+Abx69 KxI3YE7rjYbwSL+czGlRM9c1ZkvPq9IDYh/Geev/tNUC2IM7qYQ9gnKrVRNgKWGjzPxq KDaQ== 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 m21-v6si5965994pls.217.2018.06.21.15.44.39; Thu, 21 Jun 2018 15:44:53 -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 S934190AbeFUWng (ORCPT + 99 others); Thu, 21 Jun 2018 18:43:36 -0400 Received: from mga02.intel.com ([134.134.136.20]:33494 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934071AbeFUWmd (ORCPT ); Thu, 21 Jun 2018 18:42:33 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jun 2018 15:42:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,253,1526367600"; d="scan'208";a="59935162" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by fmsmga002.fm.intel.com with ESMTP; 21 Jun 2018 15:42:32 -0700 Date: Thu, 21 Jun 2018 15:42:03 -0700 From: Fenghua Yu To: Dave Hansen Cc: Peter Zijlstra , Fenghua Yu , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Ashok Raj , 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: <20180621224203.GA18979@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> <20180621220844.GB2494@hirez.programming.kicks-ass.net> <6fbff2df-96c9-db51-371b-a23d1a84d070@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6fbff2df-96c9-db51-371b-a23d1a84d070@intel.com> 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 Thu, Jun 21, 2018 at 03:18:19PM -0700, Dave Hansen wrote: > On 06/21/2018 03:08 PM, Peter Zijlstra wrote: > > On Thu, Jun 21, 2018 at 03:00:03PM -0700, Fenghua Yu wrote: > >> The control knob for kernel is to choose re-executing the faulting > >> instruction (default) or kernel panic. Kernel panic may be useful in hard > >> real time which has less tolerant to bad performance. > > The kernel should never trigger this, ever. Any #AC is a plain bug and > > should be fixed. So unconditional WARN+disable is suffient. > > It sounds like we need to start with that functionality and then if > Fenghua wants to do more, we have add-on patches that can be evaluated > by themselves. For split lock in kernel, by default, I just do warning, disable feature in #AC handler, continue to execute the faulting instruction, and re-enable #AC for split lock after a delay. This is the default behavior in the current patches. By "WAR+disable", you mean I just do this default behavior and remove the control knob? Thanks. -Fenghua