Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5755168imw; Wed, 20 Jul 2022 11:51:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sxxm+2pK+cZcIiWcZ0z3L+22vgsWcpRQFAiy6EAuemeW357pyxixIhluK+968R+A5X/C1f X-Received: by 2002:a05:6a00:238c:b0:52a:c865:6e9a with SMTP id f12-20020a056a00238c00b0052ac8656e9amr40264269pfc.84.1658343083972; Wed, 20 Jul 2022 11:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658343083; cv=none; d=google.com; s=arc-20160816; b=YBXR56OeAsefKZ5ydlHKgLdN4ADgJiaHjUH4iZ1XVe5S7SgsOxKD/yFMaByFyJGF0P 5y+y5rldmk9Lj9m/GryoSWZxFPedgvtia9Fh2p+iMK5rf3GKY3ZDNQAF4Q+9m/5Xey8M GEU4OnpPdhvrkbYfC4S54JJjswdQnkuwgWIFGn8ii8ZaLTkePymS56mnY+f8HLSVkaHS kuFn0583jFMQlONUCWTUcCzXFsTjOT0kybntO6ZAnFJkq4JFHX2mWqmEwc9+m25/C3Lq dpBW0ch5DL7nJtM8cIxHWyQ7z8+rdJ23VVZXVIZutQfu4YnpSZixGw2TcjwL32YC3GjY WtnQ== 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=zVxTcAKYxr6zgo99bjNNcvquAqEG3JXh5Q1FGt4/ppo=; b=tDJWfYS5KPnsUn/g86XlaexmXitnDq3Tp4v9RbqlMrFTWVFZaU7XQDxPVR1RxawuyU fJQgjgokCehLUuU9eWlmtNTdcXeOwXtEY/JSpVPDS+coc9Ogn3K1ofz/p2b5MhzKqNgQ b0/pFr16u9bDo7M0aUCOUVaLpCrQGvraVP92HCZj+DnqWx50JwLL7yATgoUduXSewzqD iO4oNzTU7YFxE83tL8WfEuubWBx78attW7iVmEgNZhGh9wgwMNCOhKBYtMkUje8ILK0t xstMQnNcG+Rxvvyx1fpTFKY0jggMm8G1puOLlLV0YeGCs2D03UJ9OZpBFlnWcT/3SBhb vLVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rpiu+lMO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3-20020a170902d54300b0016c4f0065d8si8566165plf.602.2022.07.20.11.51.09; Wed, 20 Jul 2022 11:51:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rpiu+lMO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229525AbiGTSqC (ORCPT + 99 others); Wed, 20 Jul 2022 14:46:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbiGTSp6 (ORCPT ); Wed, 20 Jul 2022 14:45:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21A7CDF0B; Wed, 20 Jul 2022 11:45:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B7357B821B4; Wed, 20 Jul 2022 18:45:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F990C3411E; Wed, 20 Jul 2022 18:45:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658342755; bh=BPQTo+ZMfUwnwE9+Ibb9aPcdaThaA2NZNCEJsUhFYb0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Rpiu+lMOe7LQw/XQwmcjijloEwn1YnudjjKKMYUVSvWT5SbnUfgaZeMK62bUm7xXf 2f/mreg3MhoNdFgbpQBx4qWmwVKQMXhtql6GqzEWknr211aiFb7V+wStgsWkXdVS6y wlJB7BQXhhJkhuXpSE92LzZS53GZEETkB4RzTkZDDsZMlc1qCLQRmpsKMXq8ciGny0 GZGz74tOKpaVKXCo465haSW5yfeKCWgyAdf8IbdIb2/KymyjAC1uZMnJg3YjKPUYPd W9POy3dIVtWdg7MNvqjbLxRRfRJz4irpSIpI6Cj8t01nP9UhmlEsUS+jtN+zrqO17n g9BUMvIwM/weg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id A625E40374; Wed, 20 Jul 2022 15:45:51 -0300 (-03) Date: Wed, 20 Jul 2022 15:45:51 -0300 From: Arnaldo Carvalho de Melo To: Leo Yan Cc: Peter Zijlstra , Ingo Molnar , Mark Rutland , Jiri Olsa , Namhyung Kim , Ian Rogers , John Garry , Will Deacon , James Clark , German Gomez , Ali Saidi , Joe Mario , Adam Li , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kajol Jain Subject: Re: [PATCH v5 01/17] perf: Add SNOOP_PEER flag to perf mem data struct Message-ID: References: <20220604042820.2270916-1-leo.yan@linaro.org> <20220604042820.2270916-2-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220604042820.2270916-2-leo.yan@linaro.org> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Sat, Jun 04, 2022 at 12:28:04PM +0800, Leo Yan escreveu: > From: Ali Saidi > > Add a flag to the perf mem data struct to signal that a request caused a > cache-to-cache transfer of a line from a peer of the requestor and > wasn't sourced from a lower cache level. The line being moved from one > peer cache to another has latency and performance implications. On Arm64 > Neoverse systems the data source can indicate a cache-to-cache transfer > but not if the line is dirty or clean, so instead of overloading HITM > define a new flag that indicates this type of transfer. > > Signed-off-by: Ali Saidi > Reviewed-by: Leo Yan > Reviewed-by: Kajol Jain Hey, any knews about this going upstream? PeterZ? - Arnaldo > --- > include/uapi/linux/perf_event.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h > index d37629dbad72..7b88bfd097dc 100644 > --- a/include/uapi/linux/perf_event.h > +++ b/include/uapi/linux/perf_event.h > @@ -1310,7 +1310,7 @@ union perf_mem_data_src { > #define PERF_MEM_SNOOP_SHIFT 19 > > #define PERF_MEM_SNOOPX_FWD 0x01 /* forward */ > -/* 1 free */ > +#define PERF_MEM_SNOOPX_PEER 0x02 /* xfer from peer */ > #define PERF_MEM_SNOOPX_SHIFT 38 > > /* locked instruction */ > -- > 2.25.1 -- - Arnaldo