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 554E1C433FE for ; Mon, 30 May 2022 13:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ykwfoIyRcdFaunTvorqBc4W3qCRWgYJ8+X/7uj6Faeo=; b=yFNhwcQ7elm9y7 HFeCar48dwcS19Xc+FxRxDPqZ1psrj+YNA34nyz+qhCHD91Pwfl715cMnh1a2Hfz9he3NkGeFTMIR +1DTocCciofHmWETSbvkwdQNpgDvXU+GDROD9KQBI8nb+2rZidXnXGeKzo6QWOAIBmaoo9TniVNS/ 6F6kButUKkoSXwqTnDVqIaDxuSp6TzPw3w/oAk8lADxfV0647fZ7n3JvAkP75dN8wQ2xqW56lAFOl DrHRyQIkJvt1QTohYJTH/XhwCm5QRAc1b5ql3zqgVMBz8QpyC/gCJhZzJN2zjAiWy2nPI0YdLixb6 +0VJfw6lqBcZ8VO9OhWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nvfQP-006glJ-7X; Mon, 30 May 2022 13:27:13 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nvfQL-006giz-Tx for linux-arm-kernel@lists.infradead.org; Mon, 30 May 2022 13:27:11 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9F81EB80C9C; Mon, 30 May 2022 13:27:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26A9FC3411A; Mon, 30 May 2022 13:27:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653917227; bh=8RMiVVctj3sV0L6ZoUUur3BAGcCQ+VEqyIgyBivg9YM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J/DG/UZgDYlYks7dEwKqDo91ZK/dr2ImlOqmtFiwDe0Q/bBksZzTgcJXhWCdq0os5 m4iACe6lC8T4B2NKNFVcszbVz42WLAf60dQ8jl0G0XTnHx+B9EWEG9v7dLcg1zaRNM eLWfI1SaupRdG09wW24E/XfYtk4MCYn5lGixO7TRCCnRldfa4JbCy8Y8WWQrEA825m ay8qrQHNAMbfWtd5QkDOEiM2ZrRwk2sZMxpHSgFgVPxUHfSaRYmWcqW1C1bD+9Otys MyFoC1DoC2/6lkdN2XlBlFuhZR9zmZf/AvAmrmEBY0cZ96kyauLaIPHRnIwbgDZNfQ ep1wM/QTcoELw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Mark Brown , Marek Szyprowski , Catalin Marinas , Sasha Levin , will@kernel.org, maz@kernel.org, mark.rutland@arm.com, vladimir.murzin@arm.com, joey.gouly@arm.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.18 063/159] arm64/sme: Add ID_AA64SMFR0_EL1 to __read_sysreg_by_encoding() Date: Mon, 30 May 2022 09:22:48 -0400 Message-Id: <20220530132425.1929512-63-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220530132425.1929512-1-sashal@kernel.org> References: <20220530132425.1929512-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220530_062710_235727_3F2A4B08 X-CRM114-Status: GOOD ( 11.72 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Mark Brown [ Upstream commit 8a58bcd00e2e8d46afce468adc09fcd7968f514c ] We need to explicitly enumerate all the ID registers which we rely on for CPU capabilities in __read_sysreg_by_encoding(), ID_AA64SMFR0_EL1 was missed from this list so we trip a BUG() in paths which rely on that function such as CPU hotplug. Add the register. Reported-by: Marek Szyprowski Signed-off-by: Mark Brown Tested-by: Marek Szyprowski Link: https://lore.kernel.org/r/20220427130828.162615-1-broonie@kernel.org Signed-off-by: Catalin Marinas Signed-off-by: Sasha Levin --- arch/arm64/kernel/cpufeature.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 2cb9cc9e0eff..0182da409ec9 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -1287,6 +1287,7 @@ u64 __read_sysreg_by_encoding(u32 sys_id) read_sysreg_case(SYS_ID_AA64PFR0_EL1); read_sysreg_case(SYS_ID_AA64PFR1_EL1); read_sysreg_case(SYS_ID_AA64ZFR0_EL1); + read_sysreg_case(SYS_ID_AA64SMFR0_EL1); read_sysreg_case(SYS_ID_AA64DFR0_EL1); read_sysreg_case(SYS_ID_AA64DFR1_EL1); read_sysreg_case(SYS_ID_AA64MMFR0_EL1); -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel