Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1558178yba; Thu, 4 Apr 2019 13:16:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqweAlZrc4aYyZjvphp6IO0tcwMjXaGPmQ11hE8RApNEfQYUJS5sVCtGW0D1OGiONJjUjhy8 X-Received: by 2002:a65:6546:: with SMTP id a6mr7926767pgw.5.1554408979573; Thu, 04 Apr 2019 13:16:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554408979; cv=none; d=google.com; s=arc-20160816; b=dBPrMXpBwZUJmnmdfYXFu+0usEYthV0O6v/1C81jPYK1kPa+0TSS4MIPRIXZtbYK3c BUrceLyPMKxlBsia3oapVSn6CNietgodjKhWz9gZ9/+H28P5gVOEiBS4lazvuPua1kBS iM/6mE8FKScTmNJeS4wlFZYeLFRDuBSwfrmPLDnW0sr69mNpEY+LdnZLcVG9xQ4JZLoD 0Nxpv1E8PxlFYpMN0tVP319Zux5d/PRBtiDcSm2rxedZJYjX45wc+QUudwKaMSa3NPSS VFTYTF8YWxDrvV8+CFLOEsc7ZtQe4ZH8E1kt25EfgmCu5IKhTJcsNB57vYWwjD8v+gy5 qMfA== 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; bh=uTFGofyZkt3W0n5CkZW7mJK9fzHUnLNmvQxEwPjWKqg=; b=bpqPxkkhHHSo4RkBL/NSsoQ9WELVS9IldYqKlcjkBg8jwO/9LXzMXXB3t1aLW1+74j JtzRI4EtXOaYEQmoJoK2wuy/gXGheAB3vqGlXZmEM/rjYMUL9wY3HmoWpnEUKcAUTSXg GwuznvNypdNBy98x9tVstAY3geTyUzvmQ7JiOG+NZtCjAuzBicIEnI9w6W4WhdPIVjiA oIrle5XUzT36bz0/zk0P4mLH5xhgRsMV7QWlRvcfwAJLv6R2vEhzOa8N2+EjY92narPD kUoQk/Lin72q6l+QoG9XncNdZETRGcGdEh0AULADJhDXsKHkGb8flEJOWWwVpol9PaRw 9Vtg== 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 q13si16919544pff.3.2019.04.04.13.16.03; Thu, 04 Apr 2019 13:16:19 -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 S1729701AbfDDSOT (ORCPT + 99 others); Thu, 4 Apr 2019 14:14:19 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:46199 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729178AbfDDSOT (ORCPT ); Thu, 4 Apr 2019 14:14:19 -0400 Received: from p5492e2fc.dip0.t-ipconnect.de ([84.146.226.252] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hC6sK-0007ZS-RJ; Thu, 04 Apr 2019 20:14:09 +0200 Date: Thu, 4 Apr 2019 20:14:08 +0200 (CEST) From: Thomas Gleixner To: Fenghua Yu cc: Ingo Molnar , Borislav Petkov , H Peter Anvin , Dave Hansen , Paolo Bonzini , Ashok Raj , Peter Zijlstra , Kalle Valo , Xiaoyao Li , Michael Chan , Ravi V Shankar , linux-kernel , x86 , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH v6 13/20] x86/split_lock: Enable split lock detection by default In-Reply-To: Message-ID: References: <1554326526-172295-1-git-send-email-fenghua.yu@intel.com> <1554326526-172295-14-git-send-email-fenghua.yu@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 Thu, 4 Apr 2019, Thomas Gleixner wrote: > On Wed, 3 Apr 2019, Fenghua Yu wrote: > > +static void init_split_lock_detect(struct cpuinfo_x86 *c) > > +{ > > + if (cpu_has(c, X86_FEATURE_SPLIT_LOCK_DETECT)) { > > + u32 l, h; > > + > > + mutex_lock(&split_lock_detect_mutex); The mutex protects what exactly in the cpu bringup code? Thanks, tglx