Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp997119pxb; Fri, 22 Apr 2022 16:18:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5SW/ZaKCcF8z4sDAH5fCCd88F5HJSKJvoNk6HB/y+n4i7WCG4n/wGgbeB33wWKTpWA2qs X-Received: by 2002:a17:902:7296:b0:14b:4bc6:e81 with SMTP id d22-20020a170902729600b0014b4bc60e81mr6725268pll.132.1650669508758; Fri, 22 Apr 2022 16:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650669508; cv=none; d=google.com; s=arc-20160816; b=SSkp9Py+ddh6MEkfUodiMUiJ3x9mtdeOyAzdRV3hmHzLwUSfi3XK80KAnUOcsgFVB0 2wenbILoAm3Hw4gB3T2QkwOJhplW6jGUfTZpt7JRwXgpICLYU1Edb/abGJwAECw7dY3P ijaq3mCxz+D3CRop1FrRmk2t0G1Cik3QLwpIXhE2UWvG10X9udMCLLMA5GCa1kooJq+g lNWMTHiCYEihPjLQMGU94A6h93FqgyPYm/aERRG9lx/m6ysVP6/jRppeL4VB0qph04cW 8UCFx+czy67oYMwrUp1OHpjpvecBIQ/1+H2gzl/Wfw/MGttOvVoe7ID1aVxvns7xvAQ6 JX9w== 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=pIf8XjvVOLM926gmhXXRBBK1J3Op2QCT6Rw8kAViYLM=; b=yrzXS+MZAy8pNDSnbUd3AjR4KGHnjR7NRPVq/twyiwZX4twyQfVaH8zTx80lNe4Yut TrMDmofxoTZMS9e2X1efkgS3qOQSmL5gt+TnSkDfg6YFlzSl8BIl24hvIRiFesjTC4n3 EaVTAPu5zvrLidNW0TiR+ugTq1hTbdkSZjzeauiorg2h4+olNVNAZ+qb6gjyv0XPnFme i9Pg4D77+6dq+KD3JCVsRGjsCb5S55y3nPH+K9g7ayMf09Lr3v+dHPcNiKZuctqQXgzw zlpTHgUjdFTij4NOPhDDhG7GhYBPolMTusifR7a7qq05kSpZpGNq2HdcF8F9FSSe/Ris ztog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=n7DOI4VD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k15-20020a637b4f000000b003aa3e4d2684si10657734pgn.197.2022.04.22.16.18.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 16:18:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=n7DOI4VD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 583231BD5C4; Fri, 22 Apr 2022 15:27:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232776AbiDVW31 (ORCPT + 99 others); Fri, 22 Apr 2022 18:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234313AbiDVW2g (ORCPT ); Fri, 22 Apr 2022 18:28:36 -0400 Received: from smtp-fw-6002.amazon.com (smtp-fw-6002.amazon.com [52.95.49.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF7721A0B23; Fri, 22 Apr 2022 14:22:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1650662580; x=1682198580; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pIf8XjvVOLM926gmhXXRBBK1J3Op2QCT6Rw8kAViYLM=; b=n7DOI4VDYzR+FeJr/AzEpv/QIIzjQ9Nn9PxTsWFlWxh11NG5JXfc/f8Q hKAhxt841hKGcu9DFnMfK7AZs5/cVzfTTmlQzQH/EYyyapUByYoCtzIQw lxKRo99HXJzd6IRJTO5dhYuXuzmPYyfJM+mnG5uIGiqLVcWPRNt56JF3q k=; X-IronPort-AV: E=Sophos;i="5.90,282,1643673600"; d="scan'208";a="195599088" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-iad-1a-b27d4a00.us-east-1.amazon.com) ([10.43.8.2]) by smtp-border-fw-6002.iad6.amazon.com with ESMTP; 22 Apr 2022 21:22:58 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1a-b27d4a00.us-east-1.amazon.com (Postfix) with ESMTPS id 9E8C68129B; Fri, 22 Apr 2022 21:22:52 +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; Fri, 22 Apr 2022 21:22:51 +0000 Received: from EX13MTAUWA001.ant.amazon.com (10.43.160.58) by EX13D02UWB001.ant.amazon.com (10.43.161.240) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Fri, 22 Apr 2022 21:22:51 +0000 Received: from dev-dsk-alisaidi-1d-b9a0e636.us-east-1.amazon.com (172.19.181.128) by mail-relay.amazon.com (10.43.160.118) with Microsoft SMTP Server id 15.0.1497.32 via Frontend Transport; Fri, 22 Apr 2022 21:22:52 +0000 Received: by dev-dsk-alisaidi-1d-b9a0e636.us-east-1.amazon.com (Postfix, from userid 5131138) id 8D417D86; Fri, 22 Apr 2022 21:22:50 +0000 (UTC) From: Ali Saidi To: CC: , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v5 2/5] perf: Add SNOOP_PEER flag to perf mem data struct Date: Fri, 22 Apr 2022 21:22:49 +0000 Message-ID: <20220422212249.22463-1-alisaidi@amazon.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: 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 On Fri, 22 Apr 2022 21:43:28, Kan Liang wrote: > On 4/22/2022 2:49 PM, Ali Saidi wrote: > > On Wed, 20 Apr 2022 18:43:28, Kan Liang wrote: > >> On 4/8/2022 3:53 PM, 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. > >> > >> It sounds similar to the Forward state. Why can't the > >> PERF_MEM_SNOOPX_FWD be reused? > > > > Is there a definition of SNOOPX_FWD i can refer to? Happy to use this instead if > > the semantics align between architectures. > > > > + Andi > > As my understanding, the SNOOPX_FWD means the Forward state, which is a > non-modified (clean) cache-to-cache copy. > https://en.wikipedia.org/wiki/MESIF_protocol In this case the semantics are different. We know the line was transferred from another peer cache, but don't know if it was clean, dirty, or if the receiving core now has exclusive ownership of it. Thanks, Ali