Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6674586iob; Wed, 11 May 2022 02:54:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPMQEjDokx3whrGFn3puk3vjM4CYTZ4mCV8fudW7KeBRnSs4mkPLMFOC1Dma6H1ahH6IHu X-Received: by 2002:a05:6a00:846:b0:50d:f02f:bb46 with SMTP id q6-20020a056a00084600b0050df02fbb46mr24410427pfk.74.1652262859843; Wed, 11 May 2022 02:54:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652262859; cv=none; d=google.com; s=arc-20160816; b=P1jVxKftofGDfyIESk1T/B9JudMghngULJ6PHjzHJ3t7Wruj+H/q13+Et8keDHLwgk va4hyZTMcuzT0qcJpGE964g+PWQisrDZfMfe7cPuUpBP4KWvFxpgGxgEU3K8/dZBkgom EM3WcEP/lCwHF+6gbk2zmc4jCQ8e3D/W5NsdDlgLADp+JfOCB3e7P6WiuRul01m70tIm mlvw1MEyyQfvurgDaQ0ALKxwhG9smYKWYMiiqLhoLPd945GP5ST9BubNkK8HZv62LTHe ylAcogGWQ4w/L1Qs+Um5wYhPe8tWlSr6+tZiLhG2sXzi/ekAvOU6w+kYqDozwH2lwAM4 Ut6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=emyIR3ECpntnmKkZx+mZMYKk5M6gQg/7DfvRafIfLcI=; b=MUV+HsbDHFVy1ellBHKk1Rp0nUhUeKw0JFtYG7SrM8yBydYBeSB0X/Lz1YjmdQNmsq scM7KCYK1oy2lq+hEFXJjxpLsMD/5U/FV7sePn3pQ/WsxfVM6bhJ2hFdGoP+Me/IOmqA sSSH8iP6gMOTjy17uG1wx+Q/evK2jlLUZQsPIUZ3NLS3VKP53DD0LF1La1dsUA0rhR6R qfYVjwZd7JDmyesV45iu8N24rF7OBJ4xLI7fZr1YVqxRQsVt6ruFbFyeWILIICNW+E1i 6ZXFyyZ6GLORisIpVyXlfUoJMBF2KPze0LkVrsH/Yd0PLCeVN++U8DRX70aihV4QS11a GJbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="oTGAQ6/M"; 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=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7-20020a1709029b8700b0015f309fe425si1854787plp.40.2022.05.11.02.54.08; Wed, 11 May 2022 02:54:19 -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=@ibm.com header.s=pp1 header.b="oTGAQ6/M"; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241964AbiEKFmu (ORCPT + 99 others); Wed, 11 May 2022 01:42:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234318AbiEKFmo (ORCPT ); Wed, 11 May 2022 01:42:44 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 830DD244F1C; Tue, 10 May 2022 22:42:43 -0700 (PDT) Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24B5JEu6014884; Wed, 11 May 2022 05:42:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=emyIR3ECpntnmKkZx+mZMYKk5M6gQg/7DfvRafIfLcI=; b=oTGAQ6/M02Wf6Gh0o81+eMhJs56uM3si/7Km5F13UIKjHPTdceqrDI8uOu1pYVCwiCiZ ahyJ+mvXhW3xyqzTyoCdN9ZjJfTt2HU3oV+Dzgz6ntoqcXxIWADEhY2tNWarpYezK0Ry OPKIVJb8dCWSE2bWJM5O55+v0NeaGAOkdkDQ7WZ44laRllHICnuycBseylIYW683ABTF xkuhB3+5ggEbM2QixjsVz4XdogeO45l92M4SimCMw3Ml3MhV+QXAi3tX9U43rsncTk8G fWq4bzecAN2VGqqQp0XSe/o51yoXRhzI8NhUHqRqbQDZR6S4wlpYCV4/dCkGR4oEW3fj dw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g06w3rapa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 May 2022 05:42:11 +0000 Received: from m0098416.ppops.net (m0098416.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24B5ZJRT014418; Wed, 11 May 2022 05:42:11 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g06w3ranp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 May 2022 05:42:11 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 24B5XdVZ030825; Wed, 11 May 2022 05:42:09 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma04ams.nl.ibm.com with ESMTP id 3fwgd8vxwu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 May 2022 05:42:09 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24B5g6EG47644940 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 May 2022 05:42:06 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9744A4C046; Wed, 11 May 2022 05:42:06 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 33F4F4C04A; Wed, 11 May 2022 05:41:59 +0000 (GMT) Received: from [9.43.104.77] (unknown [9.43.104.77]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 11 May 2022 05:41:58 +0000 (GMT) Message-ID: Date: Wed, 11 May 2022 11:11:57 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH v8 1/5] perf: Add SNOOP_PEER flag to perf mem data struct Content-Language: en-US To: Ali Saidi , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org, german.gomez@arm.com, leo.yan@linaro.org, acme@kernel.org Cc: benh@kernel.crashing.org, Nick.Forrington@arm.com, alexander.shishkin@linux.intel.com, andrew.kilroy@arm.com, james.clark@arm.com, john.garry@huawei.com, jolsa@kernel.org, lihuafei1@huawei.com, mark.rutland@arm.com, mathieu.poirier@linaro.org, mingo@redhat.com, namhyung@kernel.org, peterz@infradead.org, will@kernel.org References: <20220504184850.24986-1-alisaidi@amazon.com> <20220504184850.24986-2-alisaidi@amazon.com> From: kajoljain In-Reply-To: <20220504184850.24986-2-alisaidi@amazon.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: Npea4B33pMI1rdMHvCsM_6o12Cbi2eZ0 X-Proofpoint-GUID: t80z1TXx5J7GTnh8EFjWwZ0xJNhaLB5h X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-11_01,2022-05-10_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 suspectscore=0 impostorscore=0 mlxscore=0 bulkscore=0 priorityscore=1501 clxscore=1011 adultscore=0 mlxlogscore=999 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205110025 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 5/5/22 00:18, Ali Saidi wrote: > 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 > --- > 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 */ Patch looks good to me. Reviewed-By: Kajol Jain Thanks, Kajol Jain