Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5756941imw; Wed, 20 Jul 2022 11:53:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uZCGVzwACeUJ7MfZERTICH+m9OGeiF1Kcse+QTmxmHbAVVkW4Kl3m9DP+z69kXlRdBm4NP X-Received: by 2002:a17:907:608d:b0:72f:191b:7625 with SMTP id ht13-20020a170907608d00b0072f191b7625mr22171298ejc.754.1658343217604; Wed, 20 Jul 2022 11:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658343217; cv=none; d=google.com; s=arc-20160816; b=UMRc4pHXorPab1aVzXFeSUemUXPdpZqj0Ow7BZsDiENtzrZSC0j+77wd04vraCNjNf OVeZYS92SnOTXJ2gof1cJJj/EiTIdcuoxSuaUz5R515M2D9zRLZIrcH1JPsy0ieNPCMd 4/Lh/ZAs4XljwCEMG75EkDGZsbFPK3jti3s8WUlxqWNtj0E926Se429DZCFTy3WO4euv 3aXBot8j1uajH6UZkYVjSm91ir9U3BZFti94YRk0hC/6C8QCWDQGdhKplgajfAaUvdS3 wTEfNu8pBAOcw46oAgyji4FJSh+W6ka1mCj5ggZZtQOxsYnSxCYCUi69QzkREOWD6Lmi Ouyg== 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=i9QQR2rsXgZmVUMBMtooeVo8QRuyuu9fSSUyJusdHFw=; b=MwFFsUrLn506QpVWGI6p4oDa5fj0ezYspP7I9FmAW2hGRmhW0E/nrEHW3xPuTQVaiw /NWJEHYc3O3gp3EuuFq8A1MwI28iSQkjo3oBMznDMGHlAPNA0vaq710I6gJTDVr+9aTP Lfp3GZlpqAiAngh090s13Tg63/ox1iZsjx4D86US2fKJRjypWF6z83ncQKWtpQktCyxl ekBz5qQpoEeyKQgOWH0O1qxdSaemRescMfRZ0f0tGVT4q93cuVGB+JfYxo7qdZze5VEz ooS+aeS3ZTC89qATrdQz4/KKPkc5jcvLGI75j9by5aIZcWw7AFOexU/GapwkenQUL+aW Ytfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XOmDb99r; 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 z8-20020a05640235c800b0043a2348fea4si5116469edc.468.2022.07.20.11.53.12; Wed, 20 Jul 2022 11:53:37 -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=XOmDb99r; 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 S231924AbiGTSq4 (ORCPT + 99 others); Wed, 20 Jul 2022 14:46:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229626AbiGTSqy (ORCPT ); Wed, 20 Jul 2022 14:46:54 -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 438745F11D; Wed, 20 Jul 2022 11:46:54 -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 F3653B821B3; Wed, 20 Jul 2022 18:46:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69F46C341C7; Wed, 20 Jul 2022 18:46:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658342811; bh=6JkQqpw0MmTlbMYmqr0ZVhedIMa8/luYWE6ik91JFbE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XOmDb99rEVneVO589It/Ck5dJ/xZOKEAXZL25BZzDy9Yt0s58r29QNcMLuRwipO8O DsTscB4kCggj/R0Zjdb0sO7evdsw/+S/xn3N4crXwuv3FlDR8aZsS3s6DqBf9tpL7O AQifSnoyYy17ME+hCCam/oRCmP7RVehNojDyGotY2+3MbcJ0B+6u8jEsOGKco9A2Jf xTaie09kp8q5i3+C/uMg5VX8pCPP/3zx0KW2sKVsRO28karhdU1Kj1isNp3Q7d7Mm7 G+XYUz1CPM2Ewnhud/CBu18EW+nxXbBAp1XBF3KsfhHMKuGlNvKl86u/PgoGgOMIb9 JOK6qfBN+Xk9w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 3F20340374; Wed, 20 Jul 2022 15:46:49 -0300 (-03) Date: Wed, 20 Jul 2022 15:46:49 -0300 From: Arnaldo Carvalho de Melo To: Leo Yan , Peter Zijlstra Cc: 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: 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 Wed, Jul 20, 2022 at 03:45:51PM -0300, Arnaldo Carvalho de Melo escreveu: > 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? Just took a look and it isn't in tip/master. - 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 -- - Arnaldo