Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2972292rdb; Tue, 6 Feb 2024 03:31:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJnk/PPvr7sgXirKa3+DzEOm0177Xdh+g8XKsPiAVyLM9mK7FdjQgogekmDh8nBgsRrl9U X-Received: by 2002:a05:6358:949f:b0:176:c47b:7ef5 with SMTP id i31-20020a056358949f00b00176c47b7ef5mr1880464rwb.4.1707219074702; Tue, 06 Feb 2024 03:31:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707219074; cv=pass; d=google.com; s=arc-20160816; b=w8WTLO4E1TCguI9OIvSsGo6YQh9nukTs2Al1Z9JlLE7owI2lFM5Y9sF4meHjVwpHuG H/17mZklAEbt0ZMWj7X1RyPiWvNC6ljqV/Mmx38M+45Ihbepv/VsRih4+4fn4ZT/x7is JOjmhJSXhalU7BdzANXgg+tJpA2BX6HbgXTRINFtZT02GeHCf25hWrVUaCn562ulNqSj Q9A8VP3snkpxgLY2wBXGEd8oXd+l5LKVwMjy7rtW0+6JUoEvNaQ47auM7X00EcxbXbzc 1SO4eLAUofF/i/uHX9MDgMMyQbWFyvV2FWby5BHVD3YrAJlvfXA45PS8+zattOTEUlGB yzqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=e1W9O9oowdQMbW/v6+hBBEq8P/M7sDibZ3mf0iNk5hU=; fh=HI/oRxrjFzRYQs2m3LTjTCsRB/PpO7pBFy+zBhafLYo=; b=ZpU2DrsLqS+jx/bcZ9C9okEwR6RKWVGMuudkpGQNtiICR5ENzFJdmkQ6pl0KNpN8uk T1LQ4SYlvspVaBJ+X+88yUNZICgSJfXXgRS8bs6WcttsqUsq51qD6ijQFEzyyxmjDn+b GToW1po3PkxT6FL5IvNrk919YUpu4cAzRSedbaZJmBrlsYO+/w6y9OUJpIKG2q6eOh5z m4T98pImcElxEZ0u/HcoKBq5zApmBOjKNTjA9byAEanGnx5fZX1x4ze6vbJQQiTaJ1DK ze+LH/W94CUoIGzSfjQlAIaeVx51c/XVkQmrP6PKbQ4yLwxHhSzLCgQIjCfV07QQohvZ uv6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-54769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com X-Forwarded-Encrypted: i=1; AJvYcCWmKxCBB03xD1XbtG4j6lH20KqJJp9V0/idcbyyt/y7rOUVy9EO5s8luoZAQzIzRMvFYCCyt/OkLGRmkkphh47th2wU7m07a2toZz4HwA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id g17-20020a635651000000b005d8c18c7c65si1445823pgm.671.2024.02.06.03.31.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 03:31:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-54769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 671C6B21666 for ; Tue, 6 Feb 2024 11:29:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C11512EBE6; Tue, 6 Feb 2024 11:29:38 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79C6412D152; Tue, 6 Feb 2024 11:29:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707218977; cv=none; b=bWr2fVSa/uiW4OfqjDNyUWrzPWCRy6qdpOZTWDdtF/++NjxsmNFtOBk24oWufA8PNPC/NwUSUM8bqXjG5lA2fKYedzIZFZdz/HvhoZwwHL0DkaEVUCe8GzHUPS8Gmbz/0k0b7EWf1syX+sKdq8Trars9uEwYm6u0HI61zK1NgxQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707218977; c=relaxed/simple; bh=C6jq6gONzhEHjn/SunkCOAnt+ckT2TxdCHEFn2845Jc=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=elHajE6D4Bh90nukovhlc3SiA/c91j9vnNGRc0rxg0igh3fN48083NgRjEik/yNMcMwkKc+GJ1h9Z1LbLzDO0AsiVt7SDpk4EwVnPoJi19Q95HTBo/OuMN3FhwdJ8Nz3k60NORinLcPYLKLK1V8DjcH65srYlbzSnN8DNcI1qxk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4TTgtK6JCRz67ZCr; Tue, 6 Feb 2024 19:26:17 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id DCF0B140B39; Tue, 6 Feb 2024 19:29:32 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 6 Feb 2024 11:29:32 +0000 Date: Tue, 6 Feb 2024 11:29:31 +0000 From: Jonathan Cameron To: Hojin Nam CC: "linux-cxl@vger.kernel.org" , Wonjae Lee , KyungSan Kim , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "will@kernel.org" , "mark.rutland@arm.com" Subject: Re: [PATCH] perf: CXL: fix mismatched cpmu event opcode Message-ID: <20240206112931.00004224@Huawei.com> In-Reply-To: <20240206102132.00000797@Huawei.com> References: <20240206094151epcms2p373ed7f50efa332765e14bff2b5a2abe2@epcms2p3> <20240206102132.00000797@Huawei.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500005.china.huawei.com (7.191.163.240) To lhrpeml500005.china.huawei.com (7.191.163.240) On Tue, 6 Feb 2024 10:21:32 +0000 Jonathan Cameron wrote: > On Tue, 06 Feb 2024 18:41:51 +0900 > Hojin Nam wrote: > > > S2M NDR BI-ConflictAck opcode is described as 4 in the CXL > > 3.0 specification. However, it is defined as 3 in macro definition. > > > Please provide a reference to a specific spec section. > Ideally from r3.1 as that's the easily available version today. > I think this is Table 3-50 S2M NDR Opcodes in r3.1 > > Looks like s2m_ndr_cmpm should be there for bit 3 so we should probably > add that as part of the fix. > Also, please add a Fixes tag. > > > Signed-off-by: Hojin Nam > > --- > > drivers/perf/cxl_pmu.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/perf/cxl_pmu.c b/drivers/perf/cxl_pmu.c > > index 365d964b0f6a..bc0d414a6aff 100644 > > --- a/drivers/perf/cxl_pmu.c > > +++ b/drivers/perf/cxl_pmu.c > > @@ -419,7 +419,7 @@ static struct attribute *cxl_pmu_event_attrs[] = { > > CXL_PMU_EVENT_CXL_ATTR(s2m_ndr_cmp, CXL_PMU_GID_S2M_NDR, BIT(0)), > > CXL_PMU_EVENT_CXL_ATTR(s2m_ndr_cmps, CXL_PMU_GID_S2M_NDR, BIT(1)), > > CXL_PMU_EVENT_CXL_ATTR(s2m_ndr_cmpe, CXL_PMU_GID_S2M_NDR, BIT(2)), > > - CXL_PMU_EVENT_CXL_ATTR(s2m_ndr_biconflictack, CXL_PMU_GID_S2M_NDR, BIT(3)), > > + CXL_PMU_EVENT_CXL_ATTR(s2m_ndr_biconflictack, CXL_PMU_GID_S2M_NDR, BIT(4)), > > /* CXL rev 3.0 Table 3-46 S2M DRS opcodes */ > > CXL_PMU_EVENT_CXL_ATTR(s2m_drs_memdata, CXL_PMU_GID_S2M_DRS, BIT(0)), > > CXL_PMU_EVENT_CXL_ATTR(s2m_drs_memdatanxm, CXL_PMU_GID_S2M_DRS, BIT(1)), > > -- > > 2.34.1 > >