Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp396434rdb; Thu, 15 Feb 2024 03:45:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU5KIJpG9K25L/OvC11tFYT6EEMXXGjqRREra2Hx9emHOZRR902Wcu21/jPlrlSstwsEF1Kck/+f6FTuiWVJJBfPmUBipbet/hcscX/uA== X-Google-Smtp-Source: AGHT+IEWqsjE+tIGJnp42Fxsx6XrNaDRWTniZkI/k/IwqQQ5RHHyfPh5sih/JgYq8JXdbWkbLy2x X-Received: by 2002:a17:906:f9ce:b0:a3c:c167:16ab with SMTP id lj14-20020a170906f9ce00b00a3cc16716abmr1212996ejb.50.1707997520206; Thu, 15 Feb 2024 03:45:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707997520; cv=pass; d=google.com; s=arc-20160816; b=qIHaIomBMrNpKuDArC2o8GaQDsHAhFIPldvrzPFKSZgAqnY2HXyERoAuNh+AalFo1K SD0jXBNA1/GMJgKPeb6t7ipjMxmPXE71+G9rTdH6y2ZtCbNaJMebW1PaiKLb3ae4vQRD obpiAeFEjjtZS2shhj4iG1q8c45iAIdr6e9VdHSYgHTmdIVPBFz64wETEApKPahzOYXZ 55yp4J94pRW0z59lYUfuEAhm+CKdDtnwO6GKnkgu7YDt56BFxdp6aBAly1qskKkoG3P5 jhyJFp+X3/g5MHx/tkfJNXMvvBDVsKKSzKmpjRd6MQiXsetaZC5XljyBz7V2btc9sORN xAWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=xjiqIcJ8dytrL4Cgn7vKFh48nfn+FXdMJxKJrJqwyuU=; fh=XlXP4fgpv/0g3VNrgJcupsLhWca3O859lFm+p8TiyWw=; b=jM8SQCfgBs2mtHo6J6bKAOhQS8jXT21PSAGFOATX1/mElMLNwc2TDvquUTIp+H0hjX 6BZ2/aWlVCa3OzJYC90b+z9sE7eMIqWh6K2zsVIWz/02yT6PZiSYGmvmqHe1Lb4YkvL0 oErppP8ALEMKdafvRyFBYEbt+vlq4XG1fAYkSmj1SMk/RkIZo3N3iJaP/Z4iRgStRuug JyrcVwz8tOErjCgWfhT5Y4Xg5p1xvJX187hYSbRWd7hJAmSQmuUrUhPu0L1QEFv7gavU IOIKVhBtbsY3rQq9rYMzv3m6vJyiZpSnWv8kqJ6Z6udQnpcbbVbjOzJWDchJ5GtGVKz4 fQKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lIxvIFkI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-66828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66828-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hd37-20020a17090796a500b00a3da2650aa3si331192ejc.263.2024.02.15.03.45.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 03:45:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lIxvIFkI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-66828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66828-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id ED0F21F26D19 for ; Thu, 15 Feb 2024 11:45:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3763212B175; Thu, 15 Feb 2024 11:45:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lIxvIFkI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5442712B15C; Thu, 15 Feb 2024 11:45:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707997503; cv=none; b=lTfD/F3OzDjc5rknpFMaBI+yCrBPSk5RzX/xDy2p8HoMAS62yobEQHiDD4UiiU1FG1fN3XygL5NxcdksCyXX0gjF1h+5R44mLlu0889jy18GcmMX46p1rsS0CycIufTn2FOwR9NL8dWqG9r5BKOErkJw/OT3YKMcce9X17728qk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707997503; c=relaxed/simple; bh=E38KSe5rcCXjcKiFq0QIkELRysT7jPLEi6+QeMypuMA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kOiQYmeITEwa6hFh44vyLTidFIO1x+jvGhO7+pWSSqmFavW8fhY+HFtWkB/CjHpCnnKlaDcO5FpiHOzj+VGFRGTVkF8MoEunGbXvICWQkoCKYOUxpZqCc2F/WHTC4iaMCZy1hf9Q5Yxqn4mQoOBikBVDyRz1jeQlA8czEAdPKyo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lIxvIFkI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C3C4C433F1; Thu, 15 Feb 2024 11:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707997502; bh=E38KSe5rcCXjcKiFq0QIkELRysT7jPLEi6+QeMypuMA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lIxvIFkINUJi5cRZ4xP8NhUn1Zw8pTPkI4yqnyjOG7YfH78IzIm6L3pT7IaY4pUJL rTevdBQ/kcLowHDOPgGDqW2uHh8vlpGz5SZLxoftBGuXNgCEP/7bkPrG4W/F3SvGQV t4pcnS79vMvXsOj58bwJOfAAndEZ3AAqAf7aN7kEe3f8vBRlGXJIS2Zdi5j7tf+WbL 0ijPBAmn/72+lsFmtk/bJRC4JqBSoOV2wJ5rNXojSuEJ2YpXqaVeZTrrPzRpw36sqb JhoIAWzrQDtSf9eQihJjIXQnlWZHF80OZ1n94JDCp4/qW0zRHJJpc9QSL5vquxYJ4m 8G0mV6HExSDwQ== Date: Thu, 15 Feb 2024 11:44:57 +0000 From: Will Deacon To: Hojin Nam Cc: "linux-cxl@vger.kernel.org" , "jonathan.cameron@huawei.com" , Wonjae Lee , KyungSan Kim , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "mark.rutland@arm.com" Subject: Re: [PATCH v2] perf: CXL: fix CPMU filter value mask length Message-ID: <20240215114457.GB358@willie-the-truck> References: <20240215080906epcms2p2c49c6b9bfe271e1d089ad35ab527b958@epcms2p2> 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-Disposition: inline In-Reply-To: <20240215080906epcms2p2c49c6b9bfe271e1d089ad35ab527b958@epcms2p2> User-Agent: Mutt/1.10.1 (2018-07-13) Hi Hojin, On Thu, Feb 15, 2024 at 05:09:06PM +0900, Hojin Nam wrote: > 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. > > Signed-off-by: Hojin Nam > --- > > Hi Jonathan, > as you said, I didn't actually hit this. I just found it by simply > comparing the code to the CXL Spec. I removed Fixes tag and > repaired broken sign off, Thank you! > > 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(-) > > 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) Unfortunately, your patch appears to be whitespace-damaged (missing space, tabs converted to space) so I'm not able to apply it :( Will