Message ID | 20210704071644.107397-5-leo.yan@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=H7S8=L4=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18188C07E95 for <linux-arm-kernel@archiver.kernel.org>; Sun, 4 Jul 2021 07:20:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D450D6192E for <linux-arm-kernel@archiver.kernel.org>; Sun, 4 Jul 2021 07:20:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D450D6192E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fDxD3wdzpM0hp2cxqHu4CtfvR2D32UTPe7gtfPEVSYE=; b=JAJuxxvhGWz+cF sHTWQ4V/5t+NidVd6C4sRpEwdLlHVZQbwkW7Pux4SBhoAbAPILfA+5QiI0TNneFwoqgoeIXLPRe5c xzdp/Bzmm5GMI+pG2+GqyYVgA+3y42kVnGEHJ4DRZ0uwu1jmFdj0ttN9Jh5x/uYKtsgX4J7O4ZPqD 4KHj7DoHsBnJOdzV5webHtA3sa13dNSkR1oHYZDKmIObc5dX4vqrdeFNxkds4V8IOP4nO1Nngozp6 BibVYk/2XGrch4KuZ33YyYpstl+MY6adRZSTr4MZCWznQarOa8P2I7vfD7iu/8NzwYnbKkALMrmwh ++kdasDXCBJKZGdrP9xw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzwO5-005rYg-Ha; Sun, 04 Jul 2021 07:17:57 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzwNV-005rNb-AZ for linux-arm-kernel@lists.infradead.org; Sun, 04 Jul 2021 07:17:22 +0000 Received: by mail-pj1-x1030.google.com with SMTP id l11so9488588pji.5 for <linux-arm-kernel@lists.infradead.org>; Sun, 04 Jul 2021 00:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Q5Wf8ghZ23c6vSvSmNVjb2NVOeSumBPmpt+tM4X+4G0=; b=sPPIAp6bykeHv8kNEiNQSCH3ZxxoXifu1yRZOpcwWPNEr0fyMcMBODJMeCbSdX3rQR wjMbs3m5gsKDPv5lyx/QgE5e2gxb+9Dzh2piLOFCcTLAPDOMc6lo3y1SidC97ncjri4o 39iHTnXCslYQiJVFWKaSbc0leC98lBqCqkszir2CJHxzKPpOCX7EAm3Xo99jF5HyZGBZ 95CLan0JYfl6yZNUYfl8UaQgFQxYilZgLOZNB4SjbzRYJ5Nt5jcJiXgb1jZLKZDRsk80 iatwVhlW8M9/y6n7k8g5bLXC+MUMOGRCNBcy+fsRX4q+lU/H4Zb9fWXiW5tIloDKZd2U Pi6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Q5Wf8ghZ23c6vSvSmNVjb2NVOeSumBPmpt+tM4X+4G0=; b=P6bM5IADPIk/SvLxDTEIfugtVvEjcLOW8JEyyxS9y4xs1unCLfNieC7Nic1dvWUa8+ OdhB5y6tYnQqKw8v28tb9A82GaA+e06hOh7b2QFLse6owCbxaL/u1RZbYfrMSygwPLxb Beo61zQXFkskEh2TcVsSym5VXg1ETae67F44Ly4w46F1m8vaG1SoProKFKiw4UmifNQd FYcFJKdKt2j4AEkhhNXjaTgOUoMUcAyc3N/2sk1XW6RAcBqV7GbGN5zzY7kQQpZbNG4r pn7W6JH/GSUKrAr5JirHsozQLvi9oYa64DXN4PmfWcVQQjfps5LcmSL+odjrtdLrtV/q wzFQ== X-Gm-Message-State: AOAM5304tJ8Pubjh0a+/hzkTdLv4mFoS1DzGa1u5QTCsN5S9nLxMzDWC LCSN/+3dm2Uogmge0TUvRxrrDw== X-Google-Smtp-Source: ABdhPJzUFCWdKrT5LqvA16eca5FTWrFAEQFxu73CU4ERAiEVgUNZaIdSuqJv3g3yMzx1OBcIywsEvg== X-Received: by 2002:a17:90b:1284:: with SMTP id fw4mr8381195pjb.74.1625383038146; Sun, 04 Jul 2021 00:17:18 -0700 (PDT) Received: from localhost ([103.207.71.35]) by smtp.gmail.com with ESMTPSA id z7sm8588734pfn.36.2021.07.04.00.17.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jul 2021 00:17:17 -0700 (PDT) From: Leo Yan <leo.yan@linaro.org> To: Arnaldo Carvalho de Melo <acme@kernel.org>, Peter Zijlstra <peterz@infradead.org>, Adrian Hunter <adrian.hunter@intel.com>, Ingo Molnar <mingo@redhat.com>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Borislav Petkov <bp@alien8.de>, x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>, Mathieu Poirier <mathieu.poirier@linaro.org>, Suzuki K Poulose <suzuki.poulose@arm.com>, Mike Leach <mike.leach@linaro.org>, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org Cc: Leo Yan <leo.yan@linaro.org> Subject: [PATCH v3 04/10] perf/x86: Add barrier after updating bts Date: Sun, 4 Jul 2021 15:16:38 +0800 Message-Id: <20210704071644.107397-5-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210704071644.107397-1-leo.yan@linaro.org> References: <20210704071644.107397-1-leo.yan@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210704_001721_393208_F94638FF X-CRM114-Status: GOOD ( 12.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
perf: Refine barriers for AUX ring buffer
|
expand
|
diff --git a/arch/x86/events/intel/bts.c b/arch/x86/events/intel/bts.c index 6320d2cfd9d3..4a015d160bc5 100644 --- a/arch/x86/events/intel/bts.c +++ b/arch/x86/events/intel/bts.c @@ -209,6 +209,9 @@ static void bts_update(struct bts_ctx *bts) } else { local_set(&buf->data_size, head); } + + /* The WMB separates data store and aux_head store matches. */ + wmb(); } static int
Add barrier wmb() to separate the AUX data store and aux_head store. Signed-off-by: Leo Yan <leo.yan@linaro.org> --- arch/x86/events/intel/bts.c | 3 +++ 1 file changed, 3 insertions(+)