Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3980573iob; Tue, 17 May 2022 11:06:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcQ+quUx3GV6mEOzZJKxMToNjrUn227IRxpFcfckjLSIcKXuVva7RvfjH5yqpCcdVjJ/QQ X-Received: by 2002:a17:90a:a894:b0:1df:7577:4d3c with SMTP id h20-20020a17090aa89400b001df75774d3cmr8263649pjq.43.1652810815174; Tue, 17 May 2022 11:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652810815; cv=none; d=google.com; s=arc-20160816; b=Q1MpE5D/6avtBO99VwGDZgI7LLX0ggT0jTlOaUU4/yjSy94FNLu8mM3jMLs+v3iF8x EUi5+1oikOnZJTLCRJIiiURoTW/svM75WRsVezt5dhRP8Vj3sKMeHvsN+lUTVWyjmIaI K8gMzL8K7DTzBC+bcJUXyZMVn2tiaFetKrylv3dGYkVSkoFfco5R7FYUnuDT0ExwXE8C NaFSet4DXhf/tjQw/qiHno7W30J1JgUVNn12++Gf27ohYZdI+BhkAnG9f/UUls9dzp5X CD3FOkSRyCjzzIr9MEl3Es4eezdyShZiQcwR5qo+5wOmK4Nu3mSfGOM5QmKgxoO++/Zd tRSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9LQDczlsUbioUw/chrc6rYRzu+eQYkbhPFuXOp7w9iA=; b=yI2d6PJ9aCgQkLcQuD4qe1C9F9tE3qm7Z39R4/NrrezXgSW3GIR2kUj2KpFbi3OUte slW2XcTioOC3rQEOxuTaz3IWusajAwkbAVprvX83oU14nloe7Tvn8cI9kI+ZgAnVSBsx GTQYm5/KMPWCz/J4Or4AycL55fQgWwtyaF2DbSgghfZuJTrMNXK7RP92AK1RJBhGSxMd OTcw+tcVATWhv0qy8MO4QL+6/Y6TpQB7kHp4sSUXHz/UxF1joH9XSYnZgObtA9/+EItK n743RhcZpkjWO0RtgZQXw1WL93V7wWluFskNySqfc/UmRaZy08CnWsf3c5EMOsGqSEc6 mo4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=ru1ietjo; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p8-20020a639508000000b0038222818815si17244725pgd.112.2022.05.17.11.06.42; Tue, 17 May 2022 11:06:55 -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=@amazon.com header.s=amazon201209 header.b=ru1ietjo; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234312AbiEQCDk (ORCPT + 99 others); Mon, 16 May 2022 22:03:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiEQCDi (ORCPT ); Mon, 16 May 2022 22:03:38 -0400 Received: from smtp-fw-80007.amazon.com (smtp-fw-80007.amazon.com [99.78.197.218]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48DD23B024; Mon, 16 May 2022 19:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1652753017; x=1684289017; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9LQDczlsUbioUw/chrc6rYRzu+eQYkbhPFuXOp7w9iA=; b=ru1ietjoJinwmICh8vOn12eq5QxlwBe1rW1/PW+Zgl6mJCF8SBZunFB3 nNlOsRlwsdbVHh6L2D/owY0dS/QVeZ0WwXtr0Tsp8mjqak2cG+UbGUqU5 jonlNLGjz6Uj1NMK9u5cdac5mDeEKuEndGYuQ/8V7A9C6DrhJ92Thk9iL U=; X-IronPort-AV: E=Sophos;i="5.91,231,1647302400"; d="scan'208";a="89072190" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-pdx-2c-51ba86d8.us-west-2.amazon.com) ([10.25.36.210]) by smtp-border-fw-80007.pdx80.corp.amazon.com with ESMTP; 17 May 2022 02:03:36 +0000 Received: from EX13MTAUWC002.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-pdx-2c-51ba86d8.us-west-2.amazon.com (Postfix) with ESMTPS id 38B7BC0732; Tue, 17 May 2022 02:03:36 +0000 (UTC) Received: from EX13D02UWC004.ant.amazon.com (10.43.162.236) by EX13MTAUWC002.ant.amazon.com (10.43.162.240) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 17 May 2022 02:03:34 +0000 Received: from EX13MTAUEE002.ant.amazon.com (10.43.62.24) by EX13D02UWC004.ant.amazon.com (10.43.162.236) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 17 May 2022 02:03:34 +0000 Received: from dev-dsk-alisaidi-1d-b9a0e636.us-east-1.amazon.com (172.19.181.128) by mail-relay.amazon.com (10.43.62.224) with Microsoft SMTP Server id 15.0.1497.32 via Frontend Transport; Tue, 17 May 2022 02:03:33 +0000 Received: by dev-dsk-alisaidi-1d-b9a0e636.us-east-1.amazon.com (Postfix, from userid 5131138) id 8E22F2128; Tue, 17 May 2022 02:03:33 +0000 (UTC) From: Ali Saidi To: , , , , , CC: , , , , , , , , , , , , , , , Subject: [PATCH v9 1/5] perf: Add SNOOP_PEER flag to perf mem data struct Date: Tue, 17 May 2022 02:03:22 +0000 Message-ID: <20220517020326.18580-2-alisaidi@amazon.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220517020326.18580-1-alisaidi@amazon.com> References: <20220517020326.18580-1-alisaidi@amazon.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_SPF_WL 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 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 --- 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.32.0