From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 11E78C433F5 for ; Wed, 20 Apr 2022 08:21:55 +0000 (UTC) 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OrnRbB95nIu0UUH9iCXMUwHyYqE+nIGKbabANvpBtwY=; b=WO0klU6GJoqOkq gCLQLvkgJ+mdxXUYtRjO/QF07eLfGQCpFPwiHltEQI99Ny7MdlfcP/pt49NsXp8tyNTNtFkHwWqFV 9dUbfXO2vbUY//jez4nFcBF8S9iFfBXEfVORklH2kTMqeUgns7GVoJ9mVHKcKg1xfIWTbw73CYqKu lpr9zZf/h8NgOoIIr8zE0+Qfos8b161NMzsdjpF+vYQbbUuUWpguF8Svaf4RdH6zslSgUXYGSkkCt I3wcPeS4hx9dZCq7Rwp0pKHFOSHad1Jt/m1CWli9cbK048HksiRK8XMS/Z+n/weAVTvlR7Vn2gt9h exQ8ia94/HQBKxSokSJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nh5a2-0083Fl-TH; Wed, 20 Apr 2022 08:20:55 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nh5Zz-0083CK-NO for linux-arm-kernel@lists.infradead.org; Wed, 20 Apr 2022 08:20:53 +0000 Received: by mail-ej1-x631.google.com with SMTP id t11so1866716eju.13 for ; Wed, 20 Apr 2022 01:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=37dXOeJAMPQb/aG1DhfASa3E4eLCqeB00YEjRZAkEoY=; b=kg+MJjWHdMSqpwWZAIdt+66NX7VK6JJe5TSpR86R3H4Q3NsdrvdSM+OLrd7FSaTvEc g0Wlm1JnAzb0Fz/tpaZ/WDhN7agm9xEHc3MLg9GiyHyN63Llvi88fnv9UmzDEKAO8TA/ cSYpju5rc+tkaOpXunGVhe84R77+vkM9wt7RB1zqVKh0CF/E19nYW6ZRpwqUMVVBvNIq +w8uY8eRZbRa6tLy9BVAwXv1ulP5ee6sbCZLvT8B/4Y0VHisqKVqRJ+ageD6pbPykiYN Nb+zgGZf1U4zBQ698fV/ovzsvuzjNeR3hUCOOmlVlUiKd+Rzcenwzo4EPECcU55AAkg8 /ehw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=37dXOeJAMPQb/aG1DhfASa3E4eLCqeB00YEjRZAkEoY=; b=LwIfY+VxhaLd4czbtxRTKF3KpUjgb1+xwR2X8Mk3me7TGX2x4sTSzksfrCQG3+y+jv Dwn2RiTtMFzF7tdIqmUP2cw2BlKAoQWrxOs7Xw0SUaenKJ+xvANTYMJDTa96BCkfsrwD y2kRa/FhcEuek3aiL9e+wwTj4l7oC2ETFIu+QZMiQVsYEAvjSwIzN1HuoO/P+zdKALC9 U5XPWZDmpvvq1pdP+woAApMM6fvWe2B1ksegZRFeoLFX22R+ItRzEd7UK9mbo5zM0sCQ fKudSMCB8xfCrb6fogcn72ZAqJaPUKYIMIALI8vMVTDod6cs69eq+GrZLXQ+b4iBuoa1 4PhA== X-Gm-Message-State: AOAM530NvrIi+fgkyi0eHtz2+6lvDRg8TfIVktWeaaNHpRPOZnSXo+lZ icthGSWwQuBCRUuzRlgMcK+iOw== X-Google-Smtp-Source: ABdhPJwGGAxB80ju4/rLep0FQz+cm1bQDM+t8WqYC0SlwEjYmdLPFsgYrg9VWDIe5T5UzwFcznPj5A== X-Received: by 2002:a17:907:3d93:b0:6e8:756c:e54d with SMTP id he19-20020a1709073d9300b006e8756ce54dmr17130002ejc.207.1650442847328; Wed, 20 Apr 2022 01:20:47 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([104.245.96.34]) by smtp.gmail.com with ESMTPSA id bw3-20020a170906c1c300b006e88cdfbc32sm6493010ejb.45.2022.04.20.01.20.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 01:20:46 -0700 (PDT) Date: Wed, 20 Apr 2022 16:20:40 +0800 From: Leo Yan To: Ali Saidi Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org, german.gomez@arm.com, acme@kernel.org, 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, kjain@linux.ibm.com, lihuafei1@huawei.com, mark.rutland@arm.com, mathieu.poirier@linaro.org, mingo@redhat.com, namhyung@kernel.org, peterz@infradead.org, will@kernel.org Subject: Re: [PATCH v5 2/5] perf: Add SNOOP_PEER flag to perf mem data struct Message-ID: <20220420082040.GA843168@leoy-ThinkPad-X240s> References: <20220408195344.32764-1-alisaidi@amazon.com> <20220408195344.32764-3-alisaidi@amazon.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220408195344.32764-3-alisaidi@amazon.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220420_012051_826998_53429C53 X-CRM114-Status: GOOD ( 20.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Apr 08, 2022 at 07:53:41PM +0000, 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 The patch looks good to me: Reviewed-by: Leo Yan Sine this is a common flag, it's better if x86 or PowerPC maintainers could take a look for this new snooping type. Thanks! Leo > --- > 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 82858b697c05..c9e58c79f3e5 100644 > --- a/include/uapi/linux/perf_event.h > +++ b/include/uapi/linux/perf_event.h > @@ -1308,7 +1308,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.32.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel