Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp680926rdh; Wed, 7 Feb 2024 17:34:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXAxL+4Df+67rxT7Q5zQQlpr1vEYpDk6MyaDr7PGyz3Ns1XMygPD3niHWX2DEISc65aEO2UPo2ipFK7lWUpqgUtUXx+QD4n0tttuj/zlw== X-Google-Smtp-Source: AGHT+IHE6MIFIB5N2HGjwLe21liEkI4i7U8i00Hu2X4Z01vdnFyq6SeSrV26kT9oCxHgUglF0xwQ X-Received: by 2002:a05:6a20:1451:b0:19c:a16d:ca79 with SMTP id a17-20020a056a20145100b0019ca16dca79mr7477782pzi.15.1707356075147; Wed, 07 Feb 2024 17:34:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707356075; cv=pass; d=google.com; s=arc-20160816; b=MGNOB4tw+8nsJLymlTVT8B0cjizivPHY9HNy8kuShMDy7SjwGekvp8n1Of2OOVYS0t zp10JaDy5cOmtdCxJXR56cYsYaU0thigNkpMeXERw7mrhnAfVGZsiYLqDhyOORf2q+eF fjHF19lO9CEEFbdAImIkdcs5FJDMo/SzV8UgSEaiDAdWdAfJo+DCCB/zecPiuviCDM8j WK91V/QXy8aMxdav7uDC0L1qTq/XYyVddr56HyPt/vu31+BHlCTVyGC8wWyDFDNTzpSt rLZlpUt/eMazNi/epGX700+3xtSL/1aVEdLIwdj7a1nxxevYN4h0NkuKnmDc7TPEUJ5v fWIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:dlp-filter:cms-type:content-transfer-encoding:date :message-id:cc:to:from:sender:reply-to:subject:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:dkim-signature :dkim-filter; bh=86gvZtSeCMNrCtsyk+Iz52UnueTtZaTSI0sib+SSIOM=; fh=sUX79QvjoZ7m9SaPGQYH8Ap2uYyu0uuIqNK+GWyeULQ=; b=mVWzp096PRuKIUtUJytdzmOxdjO3Ldd7FDdyCMcY+IqGCZ3nb5gt6g/UBaZalqk4M6 XdnN0Nx+Kc+16A+NB5Q+voDf0MzvroTLHdsniJx4LyzMY86ZHSj8xUM2iCBstNlp9Osv ssw5jL1kxSpyMrIatYAxAHS0Od4Pw+e9JWdudGMl1RsD/OJRMCRzIP9FKGl9x+yeWsbv MtiFWQenZWGyro5hKYrnQIDnlVRn7oSmY+jd3xiImGlzZubYLyltWcjycl6QjV3WWvqV iUPg527ncZ89hKi6RIK1FnedsR7U6L9yej59svn7wkxViDZ76UHUM4Of/BJLsQLal1L1 eKmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=B7OATkgi; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-57373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com X-Forwarded-Encrypted: i=2; AJvYcCU/1B5ujfeN31wLs8azpuIfDWR+u1IH8hykLc+EA7s1pMkKCB2+0HP8lrGYBP046vUkC92NzCdFUUss8z/nWLB0irr7Hf78kW5Qdt2txA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p21-20020a63fe15000000b005dc351748dfsi2428899pgh.121.2024.02.07.17.34.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 17:34:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=B7OATkgi; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-57373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CBFEA2855A9 for ; Thu, 8 Feb 2024 01:34:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32F6012E55; Thu, 8 Feb 2024 01:34:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="B7OATkgi" Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (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 0837E1CD21 for ; Thu, 8 Feb 2024 01:34:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707356067; cv=none; b=gXCECZ5XRW/n9g2ClIzluYke5kURA2w/0H8lMmo+p9QbNXnEabGZGvm1ROC5FmbXnPnu3zfG1yVmxv3MGRQ6+8dsmdO+If/7U8KsEPAqEiH0hz44+uOXDbTYz4+Fo8n5+Remkx0eRyWwK8O1I6nZIpM1fbrgpx8ZrKjF3i2fS3Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707356067; c=relaxed/simple; bh=vxTiQpGGb8vn3Fr5ySvGvzPYMt7hsbxXMN2SZEfErjU=; h=Mime-Version:Subject:From:To:CC:Message-ID:Date:Content-Type: References; b=QA7DETYlbabt+LqAIkKrK64qOcvKOEp+hGStSrI5nsOAeFXythHodoO1TWqcNMaGBkWWmu0aXQJjzyBjq0PiyV85Yzb1BcZrI/6xdSvbKUD2euuHfwN0GzjXWA6Z2seF/2PBVVy7oBlun+QsTp1lXHta1uDNAlQjc1Fx1wnKpCM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=B7OATkgi; arc=none smtp.client-ip=203.254.224.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20240208013417epoutp0326337b525df36b63fa25432dc0f5712a~xv0m_2tlo2412824128epoutp03Y for ; Thu, 8 Feb 2024 01:34:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20240208013417epoutp0326337b525df36b63fa25432dc0f5712a~xv0m_2tlo2412824128epoutp03Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1707356057; bh=86gvZtSeCMNrCtsyk+Iz52UnueTtZaTSI0sib+SSIOM=; h=Subject:Reply-To:From:To:CC:Date:References:From; b=B7OATkgi9RlVqG4IS09GIORiRFUhI5bujI9qSkA+WZb9+apvDD6MqQWdYBwoa3IQF VZ1BDJHczpkj3sJjwEieqplF6DjwOx3AQHWgJF4CeotLBd2OWl6ilZCHj6AyLLQ00W ZWILLM5jgC8pMGln4fz29M1Gje9w8xvKNohjEgiI= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20240208013416epcas2p3098460d3a4f49fec0cd61a62bbb14441~xv0maZaAL1717617176epcas2p39; Thu, 8 Feb 2024 01:34:16 +0000 (GMT) Received: from epsmgec2p1-new.samsung.com (unknown [182.195.36.98]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4TVffJ02Xnz4x9QH; Thu, 8 Feb 2024 01:34:16 +0000 (GMT) X-AuditID: b6c32a4d-743ff70000004a32-6f-65c42f976809 Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmgec2p1-new.samsung.com (Symantec Messaging Gateway) with SMTP id 21.B6.18994.79F24C56; Thu, 8 Feb 2024 10:34:15 +0900 (KST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Subject: [PATCH v3] perf: CXL: fix mismatched cpmu event opcode Reply-To: hj96.nam@samsung.com Sender: Hojin Nam From: Hojin Nam To: "linux-cxl@vger.kernel.org" , "jonathan.cameron@huawei.com" CC: Wonjae Lee , KyungSan Kim , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "will@kernel.org" , "mark.rutland@arm.com" X-Priority: 3 X-Content-Kind-Code: NORMAL X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20240208013415epcms2p2904187c8a863f4d0d2adc980fb91a2dc@epcms2p2> Date: Thu, 08 Feb 2024 10:34:15 +0900 X-CMS-MailID: 20240208013415epcms2p2904187c8a863f4d0d2adc980fb91a2dc Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnk+LIzCtJLcpLzFFi42LZdljTTHe6/pFUg11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9mc0eLOZkXWVuzvjrIP81WZXf sU2zNj84LnDjw+LTDO2qYV+P8x40Ps/07Xy+9/vN5SsWn19nfXjbwecyAsfY9kXXa89wVK91 zFiutPzrPO2LhTObJh79MumYEktxRqKhFnNRcSIAY/aUkCIEAAA= DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240208013415epcms2p2904187c8a863f4d0d2adc980fb91a2dc References: S2M NDR BI-ConflictAck opcode is described as 4 in the CXL r3.0 3.3.9 Table 3.43. However, it is defined as 3 in macro definition. Fixes: 5d7107c72796 ("perf: CXL Performance Monitoring Unit driver") Signed-off-by: Hojin Nam --- Hi Jonathan, Sorry, I misunderstood your guide. I roll-backed to v1 patch keeping fixes tag. Thank you! Changes since v2: - Remove s2m_ndr_cmpm attribute and referecne added at v2 (Jonathan) Changes since v1: - Add s2m_ndr_cmpm event attribute - Add fixes tag (Jonathan) 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