From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A322C1090253 for ; Thu, 19 Mar 2026 16:51:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=n3cOmeyu/iyQcgtBeQEtXvSyM8gdtmUvFeeqIAKFdMM=; b=LcHaWT1ZbV2eYAJ1W62gDCc/XT IvrUkxrqLLrThwXrY9oWb8j4RXkN1ByzinfwwTaySJkbiG54+qBeTTdQQ8WTCn8FRtyzAvuZ+7OI/ rrfowOUzW9EOYKuhBSITpHFMGJMZzbL8rOcBT/cZmK7j19TUNSOA6+L4uH3EeCRm36CHcHx4iKnCL 2e8oqjzzlFbsgnXRinumffuDCGiTClVgch7gmwCv0LjCLPKrw7uHVy5+Lep+IznVTep4Tboy+fnvp AwbjKcxVYxUk/YcKvbP+g1zYG6nf2GssRg54Q/YF8eUfoZ1oKXX1/3f9trK4BAVxnl3/nAb+XpkUl kpZgCwHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w3GaV-0000000B7Ef-43y3; Thu, 19 Mar 2026 16:51:11 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w3GaU-0000000B7EN-1vsv for linux-arm-kernel@lists.infradead.org; Thu, 19 Mar 2026 16:51:10 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id DFC5060097; Thu, 19 Mar 2026 16:51:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B95DC19424; Thu, 19 Mar 2026 16:51:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773939069; bh=JPx5kKJ011tIDGNARmGKOCUeBWZwPQJaWIHDxPwPPMQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Q+qWD7nmG/+TnFjeEk0UA7YR6ytNpD6BuNPRMQpMCLc4b0ZX9xrrTLwibAIyUlbxm qVyKQKGsiixml03GNRTXJicf7jnhGavo9/rekADlOicWu981D8nslQwIbjpk/pHO6F ZKl6G8qY8lJBJ1HYpORCzjbcu0NAib/NYlb+i4ybq4vXJ/uNEZc1ItBCglSYWEgCDc WCwJ72QkMplg50Yu3Gi94s3cvrimXnzDWg5U3VJrZPxWjq8Z6LET+1H5aum+rJzJnr Vrsib3HoZ1tSVh97m4A0cTDKn+KFwIfBONZADylR6vCMY1KbhooRkt7QgumfL0exz+ 3VoWYUQNGAY1Q== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w3GaR-00000003jM4-1o6O; Thu, 19 Mar 2026 16:51:07 +0000 Date: Thu, 19 Mar 2026 16:51:06 +0000 Message-ID: <86a4w369vp.wl-maz@kernel.org> From: Marc Zyngier To: Will Deacon , James Clark Cc: Oliver Upton , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Colton Lewis , Alexandru Elisei , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/3] KVM: arm64: Read PMUVer as unsigned In-Reply-To: <20260305-james-kvm-pmuver-sign-v2-0-ee80a125af9b@linaro.org> References: <20260305-james-kvm-pmuver-sign-v2-0-ee80a125af9b@linaro.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: will@kernel.org, james.clark@linaro.org, oupton@kernel.org, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, coltonlewis@google.com, alexandru.elisei@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 05 Mar 2026 16:28:16 +0000, James Clark wrote: > > Fix some issues with the signedness of PMUVer and PerfMon ID fields. > > I ran into the first issue when testing "ARM64 PMU Partitioning" patches > on the FVP. The second issue was only found by inspection. > > Signed-off-by: James Clark > --- > Changes in v2: > - Handle ID_AA64DFR0_EL1_PMUVer_IMP_DEF correctly by using > pmuv3_implemented() > - Fix another issue with incorrect sign in cpufeature.c > - Add a commit to refactor has_pmuv3() to use pmuv3_implemented() for > consistency > - Link to v1: https://lore.kernel.org/r/20260305-james-kvm-pmuver-sign-v1-1-eea0a2116dd0@linaro.org > > --- > James Clark (3): > KVM: arm64: Read PMUVer as unsigned > arm64: cpufeature: Make PMUVer and PerfMon unsigned > arm64: cpufeature: Use pmuv3_implemented() function > > arch/arm/include/asm/arm_pmuv3.h | 7 +++++++ > arch/arm64/kernel/cpufeature.c | 16 ++++------------ > arch/arm64/kvm/debug.c | 5 ++++- > 3 files changed, 15 insertions(+), 13 deletions(-) Given that this only tangentially affects KVM, it'd better be routed via the arm64/perf tree. With that in mind: Reviewed-by: Marc Zyngier Thanks, M. -- Without deviation from the norm, progress is not possible.