Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp604192pxb; Tue, 14 Sep 2021 04:59:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNElSXytJSbnW3oQnS4kZCXlLRDYTKNb2oeBvQoYB2u0j2yI6qZzLZHdLjFs8OGCdwxrZr X-Received: by 2002:a17:906:86d4:: with SMTP id j20mr18505819ejy.563.1631620754876; Tue, 14 Sep 2021 04:59:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631620754; cv=none; d=google.com; s=arc-20160816; b=k8myEAOEo1nskJeUPXDm6/r5XLpVIKxgd8UazXOp5qMhWH7/gHJwtQTy2kfZn3IS/x a9cvAUZhQyRGJO2Dpqq/l8CUorOUAHz0rniswXq414iipEtay1XCBhPYGGUqv7B14B+f Tav0XG8xSZ5Bme9hTL8PmFwWWXfGWg7afPuCwcpy1eDaQswNc8KA5o+q9suMT5SyEDyD KkZOq+wnq6VlzccJ7Ab2RFzl5yxk13MqY3nXY1q/Ax6/C9hUhJunBUCMeUQbfTuEwmbx uKG5tnaC5wRMVdTETlzUKfx2jrfX3pFuFunEkhWn1j5Qp5ZzolTU17ee6/6xLWhAzXUn +OqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lbaft6YWSRLzOdeUu5YKqGNKfNQ5U+1pdUU605d2s14=; b=ePd3ov4uu6WIjYXhQUGxKGul9l24Opx67K8RbTk93aTDfJZ5loZKMkqPn0E6KgBgLV JHmaCsk5PbwRiQB6rkh0HHhAbZJs+l02eC4viXuEth7Rr72kmHZtT5oo07S3j01TNq68 vn16MR04CppuTz0gyLYU6q2yF3f3e6ssdw6lysFkRcDruDnmUIZgPKKmO6+QKmsH8AQM oTRr6RgocKE2CWadb768FGVHdDZtKhzOS5stuf5euIRE40SBXF4da1l2A8nEjnOI+RuC I0VtsYqy0RvJWvmqTj5VFm3xI7Be0GnwyCAcEGwoFktz+KSt23bWAYcj+iyDKf9IdwBX mO1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=k+cQuR4j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f4si8309848edv.542.2021.09.14.04.58.49; Tue, 14 Sep 2021 04:59:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=k+cQuR4j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232284AbhINL42 (ORCPT + 99 others); Tue, 14 Sep 2021 07:56:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232065AbhINL41 (ORCPT ); Tue, 14 Sep 2021 07:56:27 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF365C061574; Tue, 14 Sep 2021 04:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=lbaft6YWSRLzOdeUu5YKqGNKfNQ5U+1pdUU605d2s14=; b=k+cQuR4jbwUsDsSB8nX4cD+lbc OYvYy290iOuaYRLCcT1sFLq7nAjtnal2BkG2YV9KirKJI+I0voCzFBvyb9PzN9v4ZpHJIqQsMh1uH tUmPemdwiEWChCa37euQu1pg6OhFqcFmNASQ656X8gfDaq//ko0a8SSzdHVHToUjzH79nSbuzcvhV LsZG4wbEyQ+arPzXSsgUPfi4HpKJmJ32NZS1caiA1osta3yCcqsPTg9mVCH6y1t1niZNo4jWpJCQf uCOCJ68KZcSTwI+smqFTFHdYFykwIJz14BZWumWjnnYrfTQ7hYTVcQ/OOiMlQ9p6Oc5Jq5EGmy63r fmAJx00Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQ6uN-00EcUW-PY; Tue, 14 Sep 2021 11:47:51 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 69F2D30003A; Tue, 14 Sep 2021 13:47:26 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5911A2D1FEA08; Tue, 14 Sep 2021 13:47:26 +0200 (CEST) Date: Tue, 14 Sep 2021 13:47:26 +0200 From: Peter Zijlstra To: Leo Yan Cc: Arnaldo Carvalho de Melo , Adrian Hunter , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Thomas Gleixner , Borislav Petkov , "H. Peter Anvin" , Mathieu Poirier , Suzuki K Poulose , Mike Leach , Michael Petlan , "Frank Ch. Eigler" , Song Liu , x86@kernel.org, Daniel =?iso-8859-1?Q?D=EDaz?= , Andrii Nakryiko , Alexei Starovoitov , Sedat Dilek , Andi Kleen , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org Subject: Re: [PATCH v5 4/9] perf/x86: Add compiler barrier after updating BTS Message-ID: References: <20210809111407.596077-1-leo.yan@linaro.org> <20210809111407.596077-5-leo.yan@linaro.org> <20210829105657.GC14461@leoy-ThinkPad-X240s> <20210914100517.GC1538480@leoy-ThinkPad-X240s> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210914100517.GC1538480@leoy-ThinkPad-X240s> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 14, 2021 at 06:05:17PM +0800, Leo Yan wrote: > Hi Peter, > > On Tue, Sep 14, 2021 at 11:51:36AM +0200, Peter Zijlstra wrote: > > On Sun, Aug 29, 2021 at 06:56:57PM +0800, Leo Yan wrote: > > > Hi Peter, or any x86 maintainer, > > > > > > On Mon, Aug 09, 2021 at 07:14:02PM +0800, Leo Yan wrote: > > > > Since BTS is coherent, simply add a compiler barrier to separate the BTS > > > > update and aux_head store. > > > > > > Could you reivew this patch and check if BTS needs the comipler > > > barrier in this case? Thanks. > > > > Yes, a compiler barrier is sufficient. > > > > You want me to pick it up? > > Maybe other maintainers are more suitable than me to answer this :) > > Yeah, I think it's great if you could pick it. OK, done.