From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 4D004329E79; Tue, 13 Oct 2026 12:54:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791896046; cv=none; b=LEtAgiIDTk+Bsqh2tCrGNjl+VobLHpUrweQtlAMO+ixgArseHBWR17eXJWjyMZte21p5xZsd1XabOUlpiXu4itks6J6sysbgYgirfq+Q1vwHUNyMxuMXSFNfuU2ll7R4lmP1buTZ/jnjdLQXNIE6+dhbOqjbjpoTI8Li+s1ujYE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791896046; c=relaxed/simple; bh=4eJncLMvSY0wCl8kvJFc0OHCEIPlrTGdweLzf1QNpG8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LWa9zhhZSGGQBAUnraRFAkyYqttS0ng9pXzaQyw/zXVtHHSz4PU2JdSNLRGB0Pob+HkKJxvH5EYpKCBeYNQKuC4EhpL6zzhwdRmpyOPYBikhjp2/0jk9MThN9ulQJh2/4Kt15ibsYoGZYb0+L/+AaTJC9iY5gnkI9vjKdo5WXIM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oCPwHhcb; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oCPwHhcb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98F261F000FF; Tue, 13 Oct 2026 12:54:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791896045; bh=GAP+BMREthHq6YFaBpyTeVadBDyTzipJehwOjfp21HA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=oCPwHhcbJYGtm89vLnXMU1WZCcdkXV0MquHC3D+UaI7yk30g5n3Ev1Q1jiZS6ff56 +1gd6d0Lddn4BRi2t8/tNHpvDCCwITmqwNfrkuE5wrcN49Gsem5k1MhSpDp7r3CUcG WjUQrsbqMMN6lZeEysiewz7DKEDaSr41UzN4bN6A= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Fuad Tabba , Bradley Morgan , Anshuman Khandual , Will Deacon , Sasha Levin Subject: [PATCH 6.12 462/497] arm64/boot: Dont set PMUv3p9 FGT2 bits without PMUv3 Date: Tue, 13 Oct 2026 13:40:29 +0200 Message-ID: <20261013112918.847031458@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261013112907.864180619@linuxfoundation.org> References: <20261013112907.864180619@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Fuad Tabba [ Upstream commit b52ef450139f5632d7e53e6fd5f5ec46c7029dac ] On a CPU with FGT2 and an IMPLEMENTATION DEFINED PMU (PMUVer 0b1111), __init_el2_fgt2 sets the PMUv3p9 bits in HDFGRTR2_EL2 and HDFGWTR2_EL2, which are RES0 there. The macro only checks that PMUVer is at least PMUv3p9, and 0b1111 passes. Exclude 0b1111 before the compare, as __init_el2_debug does. Fixes: 858c7bfcb35e1 ("arm64/boot: Enable EL2 requirements for FEAT_PMUv3p9") Signed-off-by: Fuad Tabba Reviewed-by: Bradley Morgan Reviewed-by: Anshuman Khandual Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- arch/arm64/include/asm/el2_setup.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/el2_setup.h b/arch/arm64/include/asm/el2_setup.h index e05218fbd58b4..bffaf4e6b62cd 100644 --- a/arch/arm64/include/asm/el2_setup.h +++ b/arch/arm64/include/asm/el2_setup.h @@ -277,8 +277,9 @@ mov x2, xzr mrs x1, id_aa64dfr0_el1 ubfx x1, x1, #ID_AA64DFR0_EL1_PMUVer_SHIFT, #4 - cmp x1, #ID_AA64DFR0_EL1_PMUVer_V3P9 - b.lt .Lskip_pmuv3p9_\@ + cmp x1, #ID_AA64DFR0_EL1_PMUVer_IMP_DEF + ccmp x1, #ID_AA64DFR0_EL1_PMUVer_V3P9, #8, ne + b.lt .Lskip_pmuv3p9_\@ // Skip if < PMUv3p9 or IMP_DEF orr x0, x0, #HDFGRTR2_EL2_nPMICNTR_EL0 orr x0, x0, #HDFGRTR2_EL2_nPMICFILTR_EL0 -- 2.53.0