Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4416588ioa; Wed, 27 Apr 2022 03:28:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4qfdjMXKy0KIqrayto2YN3i9xXZeQdDCW8DKf+b4mpJ8G8LPzIxf2xiwkJcGil6O0HZ7y X-Received: by 2002:a63:3409:0:b0:3ab:4d72:1f0a with SMTP id b9-20020a633409000000b003ab4d721f0amr11907109pga.420.1651055303817; Wed, 27 Apr 2022 03:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651055303; cv=none; d=google.com; s=arc-20160816; b=jNOKyPquQY84Koroj1BAVtqrD/lOh7XOMr43XxK7jp0LVGPuJ6zqWZN5KW15tDk1op ra72bQ8N03ZgKT0eO2wHC+Bf+/khL59hrIaB3eQEiHtk1Tv4QUH6enwkFwqFOdJRJur6 AYe6AuMprthBbT8OyCCC8XuvQ81JQHgHATfrFEoJJ/mntW49LF2qZa3PxBYQvMLBrt+9 +I7yWyhB+LoryGhHdzvQlvsc9+Eb0MN/NkDXA0K07elnLWyIlT9IVJHsggqOnpkhjFrO tDsIJi5rwCkd1Oc8S2M6QyD+3K2S2WESEdkyaKe6AvUHsB93rZn/nvM0czlu7V1Pkuu0 gZJw== 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=2kGoDhwDDU4SUv0yonPrLgPdKoDB23uSHWFWBT2qSyo=; b=pM2O208ezrlzU0Hh2nlamHj8nrXIyU5oN05CU9tjxfY2qQ6cfilw7DniGYd1c9RKK5 gIBQQCucd5AY4mhTvOsyEwPl0+WCJGK2XnV15CJulOOqvpLhlKUU8nA4JOJLWUOn6fWc Kv/mjbqkL7L0CR16AmqFQHjxxFmuSb83l0KJ6WQ+1moZYQxL0WWyDBqY7uSTqPQQ8ZYz priSBVRe4xVmc1QPqu4Wuhbmb6aR1+eQeM255FBLqHQMwIjzMSBetqIFxSjPCpbBn/8Z kF9Be5m19pJlQPs9pgPaI82j/XNhfNkY+ruvbp3uzdN7Hwayxih7AQDLAOCNRfw7xrtQ LZQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=ZyvvWUzN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s25-20020a634519000000b0039d82c5e0b8si1123290pga.340.2022.04.27.03.28.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:28:23 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=ZyvvWUzN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A1896399890; Wed, 27 Apr 2022 02:44:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351392AbiDZOFq (ORCPT + 99 others); Tue, 26 Apr 2022 10:05:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351375AbiDZODx (ORCPT ); Tue, 26 Apr 2022 10:03:53 -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 42C2E1A82C; Tue, 26 Apr 2022 07:00: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=1650981647; x=1682517647; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2kGoDhwDDU4SUv0yonPrLgPdKoDB23uSHWFWBT2qSyo=; b=ZyvvWUzNOp8iKFNsAEIBTB2cipSq4YEOVRY/9f57a1+CXJV75tgoo00b OKQpQexRYzEiFE1/1sTKFOks4IH/tQdhlaKTJIXgGolUDWb56P6zwFovm bCRnKLAdESugIo+3xLQ9FCvl+GuoBzVzmv9YzY9QKwiDaDHcjph4oQb1I Y=; X-IronPort-AV: E=Sophos;i="5.90,291,1643673600"; d="scan'208";a="83172134" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-iad-1a-4ba5c7da.us-east-1.amazon.com) ([10.25.36.210]) by smtp-border-fw-80007.pdx80.corp.amazon.com with ESMTP; 26 Apr 2022 14:00:20 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan2.iad.amazon.com [10.40.163.34]) by email-inbound-relay-iad-1a-4ba5c7da.us-east-1.amazon.com (Postfix) with ESMTPS id 4F20630008C; Tue, 26 Apr 2022 14:00:14 +0000 (UTC) Received: from EX13D02UWB001.ant.amazon.com (10.43.161.240) by EX13MTAUWB001.ant.amazon.com (10.43.161.207) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 26 Apr 2022 13:59:47 +0000 Received: from EX13MTAUEA002.ant.amazon.com (10.43.61.77) by EX13D02UWB001.ant.amazon.com (10.43.161.240) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 26 Apr 2022 13:59:47 +0000 Received: from dev-dsk-alisaidi-1d-b9a0e636.us-east-1.amazon.com (172.19.181.128) by mail-relay.amazon.com (10.43.61.169) with Microsoft SMTP Server id 15.0.1497.32 via Frontend Transport; Tue, 26 Apr 2022 13:59:46 +0000 Received: by dev-dsk-alisaidi-1d-b9a0e636.us-east-1.amazon.com (Postfix, from userid 5131138) id 5192F20ED; Tue, 26 Apr 2022 13:59:45 +0000 (UTC) From: Ali Saidi To: , , , , , CC: , , , , , , , , , , , , , , , Subject: [PATCH v7 1/5] perf: Add SNOOP_PEER flag to perf mem data struct Date: Tue, 26 Apr 2022 13:59:33 +0000 Message-ID: <20220426135937.18497-2-alisaidi@amazon.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220426135937.18497-1-alisaidi@amazon.com> References: <20220426135937.18497-1-alisaidi@amazon.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 --- 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