Message ID | 20240216014522.32321-1-hj96.nam@samsung.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-67953-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp238485dyb; Thu, 15 Feb 2024 17:45:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUWX1qpGBW7/P4IfXlNkMt7eaxLcD/BzVpoZvmqFn/jjTi6NpUvsiRi0Q/GDXVjc/p36NAgp7RCgNC2Du3FsRTuSBtb9g== X-Google-Smtp-Source: AGHT+IE4cqTVoour7BAEgOHsgdd6qhMCbvfekupYKK1x1HDOIuawPPHExXSB/D+7Q6I2TTQebGUH X-Received: by 2002:a17:902:dac4:b0:1db:9f6c:c5e5 with SMTP id q4-20020a170902dac400b001db9f6cc5e5mr2517596plx.25.1708047927409; Thu, 15 Feb 2024 17:45:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708047927; cv=pass; d=google.com; s=arc-20160816; b=rj/Tt/l4uWEHbpeiKgeeh8bnzH1MFh4MNhTrJTrMUMs9XiHplP8Kend3wxZbuD221Z 9DrePpIL5jVv/ataJzn8Gn5n2Db94njL0UnUnV13Wcn5RV5hCSHwo73bTsHi4EbpIvqL gTns4r4QFWp41ZQZvsdK9kxhrQi8PgFo+BjSTj4ViN+xBTt5d+TZ7p8IjEvPvbfl3sCF Apl3w9kr3uiTe497pNDiAVLFqR5OFdypv++VIBnr8P85zQAJdxfzadKcCnVi5vlYPfeB AiSqBnpcMU+TMle/PTIDFpqs1i09P0E4dywtQZkKEG+jmRKboetbJCwNv6oguqK5firm 6Bvw== 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 :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=i/eLcapPImUQCaXtI1ampR61jKvG768azzE6vB6Rrcw=; fh=ZR3d405Tq7H8y50vmFz2dwVmFPmAF+Ie23Nm6VNO3Yc=; b=kpA+0wSJwIsCtZQwgyAvNlrobwLinO3aou/m5sEn21aXGzOkFp02y6bBe1avpvCYLf /xdRcCix7Av1A+nbLwc7olflzHLa1irbnnWI2CAf84AKZNQVzSxr+DW3E5ugsy65dIwB EM2J3MQ0dpiyKqnqvK8tT9X+x0UkcwCXVxJmUf7pSkkBFFc6pIb1rraONUshq6t1zmDl xZ/POsMUeqWAhxjnaUeBzWubPQm5kMVbsCsR8inLk7R2pYSv8o3UKZUdtZ4pSebc0Mfs K2q4qaMTKdP8gDVDtvi5zG/Dpeu4MsgBl+btC3WCIVO3DAMHFigEPuHdf9yxgzIuz6f5 /WIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Ug6vs0DD; 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-67953-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67953-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t18-20020a17090340d200b001da0c3d0f8bsi2124872pld.73.2024.02.15.17.45.27 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 17:45:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67953-ouuuleilei=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=Ug6vs0DD; 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-67953-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67953-ouuuleilei=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 38281286289 for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 01:45:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E65410A14; Fri, 16 Feb 2024 01:45:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="Ug6vs0DD" 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 D4658101C4 for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 01:45:10 +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=1708047917; cv=none; b=VqABBd/+ur1kam3f7E81ziTzTwWjLrqddKqRimS5ILH/19hPinOGxIcaIPivy485BALavieEUT9KQLrGy0fezdD/GsncVkV6lGUnNCg0hCFJcHUIAUOO5Wjdyc1lgzEUhT5SVqKXNqYQoHrleBr3Hmc4xdKjnoYF8pEMnIM8+5k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708047917; c=relaxed/simple; bh=MIiy51TTSIUBzvWxt0QQOKklVlPZdMcdU3zIr/oxeNg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: References; b=sNvdUnkH3GrFdB1oyF9aEUz/Xa5YcLtBP4j0C5q5uKk9mHKSAb05VWzUGPJ0hpko7FMDce4glIzlRFcXMuFXiQb8THMn5LcyRbtkQC6FpE8PMUD7IjK0KdbOmeJE0cbumJXpfkxTEG+u5c9WSiJih3w94jltAtLWYuzQT5UDhiE= 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=Ug6vs0DD; 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 epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20240216014508epoutp03495d1849572bcd9bd7055d2b884192d7~0NIX61aOk1834018340epoutp03h for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 01:45:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20240216014508epoutp03495d1849572bcd9bd7055d2b884192d7~0NIX61aOk1834018340epoutp03h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1708047908; bh=i/eLcapPImUQCaXtI1ampR61jKvG768azzE6vB6Rrcw=; h=From:To:Cc:Subject:Date:References:From; b=Ug6vs0DDxJSejvfOBDQaU1J2odjQT0dao+S2siuyFSboaHc2iWNID2TFm+Escp2Sk L9xeYknC7nTK4/M0ws4vQt0Vqm46FQbuhvSpgBMws2iIL2u5bnPF6VHxNZncXLhs3A /u/XcJyIuBdPe/FQy0+d1khMrnEZ9Og2caDbHQCY= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20240216014508epcas2p2c44ef3ec3a95eda1616c5d7e2d5e2a2c~0NIXjPvil0502405024epcas2p2x; Fri, 16 Feb 2024 01:45:08 +0000 (GMT) Received: from epsmgec2p1-new.samsung.com (unknown [182.195.36.68]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4TbZW754hJz4x9Q8; Fri, 16 Feb 2024 01:45:07 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmgec2p1-new.samsung.com (Symantec Messaging Gateway) with SMTP id A9.64.18994.32EBEC56; Fri, 16 Feb 2024 10:45:07 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20240216014507epcas2p41686c0ccb1fa73715499e45bbbc7d7e9~0NIWmRfks0186401864epcas2p4p; Fri, 16 Feb 2024 01:45:07 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240216014507epsmtrp28ad494e93f9e855f90d19b1ed4aabc89~0NIWlcWTX2712327123epsmtrp2C; Fri, 16 Feb 2024 01:45:07 +0000 (GMT) X-AuditID: b6c32a4d-743ff70000004a32-d7-65cebe2348e5 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id A8.A5.08817.32EBEC56; Fri, 16 Feb 2024 10:45:07 +0900 (KST) Received: from calab-Precision-7920-Tower.dsn.sec.samsung.com (unknown [10.229.83.132]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240216014507epsmtip10a3e707447dbea74243dd2811e985a11~0NIWWcGkj1488314883epsmtip1P; Fri, 16 Feb 2024 01:45:07 +0000 (GMT) From: hj96.nam@samsung.com To: will@kernel.org Cc: linux-cxl@vger.kernel.org, jonathan.cameron@huawei.com, wj28.lee@samsung.com, ks0204.kim@samsung.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mark.rutland@arm.com, Hojin Nam <hj96.nam@samsung.com>, Jonathan Cameron <Jonathan.Cameron@huawei.com> Subject: [PATCH v3] perf: CXL: fix CPMU filter value mask length Date: Fri, 16 Feb 2024 10:45:22 +0900 Message-Id: <20240216014522.32321-1-hj96.nam@samsung.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplk+LIzCtJLcpLzFFi42LZdljTXFd537lUg5sNGhYf3vxjsVi18Bqb xdE9HBabHl9jtTg/6xSLxeVdc9gsll6/yGTRcsfUYuP9d2wOnB5r5q1h9Gg58pbVY9OqTjaP zUvqPfq2rGL0+LxJLoAtKtsmIzUxJbVIITUvOT8lMy/dVsk7ON453tTMwFDX0NLCXEkhLzE3 1VbJxSdA1y0zB+gkJYWyxJxSoFBAYnGxkr6dTVF+aUmqQkZ+cYmtUmpBSk6BeYFecWJucWle ul5eaomVoYGBkSlQYUJ2xrU559gK1gpUvN2Z28A4nbeLkZNDQsBEYvrUTSxdjFwcQgJ7GCXm tExignA+MUocnXocyvnGKDF122RGmJYDXb/YIBJ7GSVuNG+AcnqYJH49mwJWxSYgJTH5yyH2 LkYODhEBYYmHL1NAapgF5jBJHNh3gg2kRljAQaLv2SZWEJtFQFVi4ZarYL28ApYS25eeYYbY Ji+x/+BZZoi4oMTJmU9YQGxmoHjz1tnMIEMlBB6xSyx8upUJosFF4ujMBjYIW1ji1fEt7BC2 lMTnd3vZQA6SEMiX+LSTBSJcIDGrZy1Uq7HEu5vPWUFKmA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WMkqkFxbnpucWGBUZ5qeV6xYm5 xaV56XrJ+bmbGMHBq6W1g3HPqg96hxiZOBgPMUpwMCuJ8E7qPZMqxJuSWFmVWpQfX1Sak1p8 iFGag0VJnPfb694UIYH0xJLU7NTUgtQimCwTB6dUA5NO9i25vsB/B752bYmbVbVmx80Qrhjt HM+C/4a1MVP4/pR8ObrvYr9xX6LA4vsGFzYfCzt4+Fx54u8/+n92cwk+XtB629VANGL28lsK y6O2rapNFTWRkDuaP//fyc6gd0pPu1Zm+eaJ33uzX83LaP3a3m2PJpbManuiELrP4OJ+Hzbx 076LHn3irz0/eVfbQi+/F1f1mN5vyZnz8BIDS9X+B/rNb1IiEhYs+Cs9f92ULN3st78d82vZ BZorXx4Imekn2/KMYcG21nePDu7vmfAzaGmiwuLGE8mHNl2NXHOUhf/8TN4Yqb8HRK7MNX7v kNLAZ6ikM+/Wyno2oyplwTXbZs9WmfJNYd67FZq3a0XNlViKMxINtZiLihMBj1hXnM0CAAA= X-CMS-MailID: 20240216014507epcas2p41686c0ccb1fa73715499e45bbbc7d7e9 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240216014507epcas2p41686c0ccb1fa73715499e45bbbc7d7e9 References: <CGME20240216014507epcas2p41686c0ccb1fa73715499e45bbbc7d7e9@epcas2p4.samsung.com> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791018063519298053 X-GMAIL-MSGID: 1791018063519298053 |
Series |
[v3] perf: CXL: fix CPMU filter value mask length
|
|
Commit Message
Hojin Nam
Feb. 16, 2024, 1:45 a.m. UTC
From: Hojin Nam <hj96.nam@samsung.com> CPMU filter value is described as 4B length in CXL r3.0 8.2.7.2.2. However, it is used as 2B length in code and comments. Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Hojin Nam <hj96.nam@samsung.com> --- Hi Will, Sorry, I think whitespace-damage occurred while sending the patch. I returned space to tab in the code below line 642, thank you! Changes since v2: - Return damaged whitespace to tabs (Will) Changes since v1: - Remove Fixes tag (Jonathan) - Repair broken sign off (Jonathan) drivers/perf/cxl_pmu.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Comments
On Fri, 16 Feb 2024 10:45:22 +0900, hj96.nam@samsung.com wrote: > From: Hojin Nam <hj96.nam@samsung.com> > > CPMU filter value is described as 4B length in CXL r3.0 8.2.7.2.2. > However, it is used as 2B length in code and comments. > > Applied to arm64 (for-next/fixes), thanks! [1/1] perf: CXL: fix CPMU filter value mask length https://git.kernel.org/arm64/c/802379b8f9e1 Cheers,
diff --git a/drivers/perf/cxl_pmu.c b/drivers/perf/cxl_pmu.c index 365d964b0f6a..ca5e92f28b4a 100644 --- a/drivers/perf/cxl_pmu.c +++ b/drivers/perf/cxl_pmu.c @@ -59,7 +59,7 @@ #define CXL_PMU_COUNTER_CFG_EVENT_GRP_ID_IDX_MSK GENMASK_ULL(63, 59) #define CXL_PMU_FILTER_CFG_REG(n, f) (0x400 + 4 * ((f) + (n) * 8)) -#define CXL_PMU_FILTER_CFG_VALUE_MSK GENMASK(15, 0) +#define CXL_PMU_FILTER_CFG_VALUE_MSK GENMASK(31, 0) #define CXL_PMU_COUNTER_REG(n) (0xc00 + 8 * (n)) @@ -314,9 +314,9 @@ static bool cxl_pmu_config1_get_edge(struct perf_event *event) } /* - * CPMU specification allows for 8 filters, each with a 16 bit value... - * So we need to find 8x16bits to store it in. - * As the value used for disable is 0xffff, a separate enable switch + * CPMU specification allows for 8 filters, each with a 32 bit value... + * So we need to find 8x32bits to store it in. + * As the value used for disable is 0xffff_ffff, a separate enable switch * is needed. */ @@ -642,7 +642,7 @@ static void cxl_pmu_event_start(struct perf_event *event, int flags) if (cxl_pmu_config1_hdm_filter_en(event)) cfg = cxl_pmu_config2_get_hdm_decoder(event); else - cfg = GENMASK(15, 0); /* No filtering if 0xFFFF_FFFF */ + cfg = GENMASK(31, 0); /* No filtering if 0xFFFF_FFFF */ writeq(cfg, base + CXL_PMU_FILTER_CFG_REG(hwc->idx, 0)); }