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 26B6CC433EF for ; Tue, 7 Jun 2022 16:52:39 +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: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:In-Reply-To:References: List-Owner; bh=7LTZQkB5FcBrTiqwAV2Mw0u70VT7Bzre1gcAav8EBqE=; b=GB2fcxKyOjIZ0a x0rh7NlP8r6wcxXFzQPjo0JdfjrjDAsYeV85Ko14K+n5RUp5FpsLmL7qxI6aqEvM+tWY58yJGxdq+ CH6Fp+vK3n8vfKGrmjY9OBdnNEV61PEszfr8fi9cjWXCLxDO+bFCyLQOqILxrzO2DFGlNyDcUkM6h nHgsmONjfRhkLkBY+U6XC+5cT/lcXfNW0X594gu1WRVy6pIbuBKnzNqmWqE7hhPEbnCXv3gAOepnO daNm9swuoqROsey7QreZUNRMjB1qF3rR6kXxr8sBAJXaZTKi2FWC8KjHpBODW2kv6/QxYw3vc8nI4 olTNpCqiyTWkDln5N8NQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nycQe-008Tm7-DJ; Tue, 07 Jun 2022 16:51:40 +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 1nycQb-008Tkz-De for linux-arm-kernel@lists.infradead.org; Tue, 07 Jun 2022 16:51:38 +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 BB110B82289; Tue, 7 Jun 2022 16:51:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68357C385A5; Tue, 7 Jun 2022 16:51:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654620694; bh=+VYrygZ0VNaFLLoYHAOMHHeCtTBqdFhWShzo0yr6xAs=; h=From:To:Cc:Subject:Date:From; b=QLx204cvw2tPq21DZl3ZjuWFV5VyAYuBXsSsEoOpbMd0Aw6d+Ml91Zhn2DvPFBB1O j87QkLlb6xevLaKeegp76r0pzhLJw+5NNiwDAJ4gSP9IpDxQq34ZZ4SPPTh36Q0XCs txLeHb9x0OZp74HoM2SMx6Cun1o0d4ytx1ZYqTstURvcLLKBT+OBmWse7lbix2VwgC BGzOdqx5H6DKb02b0kLSA2lMiL9KFhY8tTh+jA+/XSYubybEP9imk2Qm+P+8oNh+fs CVXBXr5L+s5GvGbUpu+OqNxTxfeZIz4ZXZqUrJrwiv0U87jZzWeIAUDHgWtbLVnkVm U9MnWibj6MBwg== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH] arm64/sme: Fix tests for 0b1111 value ID registers Date: Tue, 7 Jun 2022 17:51:28 +0100 Message-Id: <20220607165128.2833157-1-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1217; h=from:subject; bh=+VYrygZ0VNaFLLoYHAOMHHeCtTBqdFhWShzo0yr6xAs=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBin4HMSS0Bg1NrSc8xBBvFvh8IXtA0JcaMlLstoPrW AuG2ksCJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYp+BzAAKCRAk1otyXVSH0BBsB/ 9fwYlERY4goMOVF6Yk0dYqKDyDsa8dyWogitrstTCM3wg2gIAONniq72GRFgNB0FQOBhx+X7cUV719 rfDb0YBxXseRt0ZMAKwy3iPop/T1jvpUqnjJIBfiOjk5YDG6qk0In1XBWSN3E071Fw5hQPTSEDf9pf Fqkeyw81RFuw+Si8MtFPfTL1GvIF54QlcFiyno3XnnK8oMm6eXw/Jo1TG0Di+/M7ETntPoCXiZL4Y7 SobjbBTFCRl3rhHWqm2ucirjiqFgNYD6TZOLPz53//LQj1SWi9oMi2gBDiraiYj79DLhHV75vVSzRv Rb/ZKAoyJF71CAKh67bxO4fjjUwQh4 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220607_095137_633558_0E43955A X-CRM114-Status: GOOD ( 13.50 ) 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 For both ID_AA64SMFR0_EL1.I16I64 and ID_AA64SMFR0_EL1.I8I32 we check for the presence of the feature by looking for a specific ID value of 0x4 but should instead be checking for the value 0xf defined by the architecture. This had no practical effect since we are looking for values >= our define and the only valid values in the architecture are 0b0000 and 0b1111 so we would detect things appropriately with the architecture as it stands even with the incorrect defines. Signed-off-by: Mark Brown --- arch/arm64/include/asm/sysreg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 084bacc16fa3..6d4f5683ba24 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -775,9 +775,9 @@ #define ID_AA64SMFR0_F32F32_SHIFT 32 #define ID_AA64SMFR0_FA64 0x1 -#define ID_AA64SMFR0_I16I64 0x4 +#define ID_AA64SMFR0_I16I64 0xf #define ID_AA64SMFR0_F64F64 0x1 -#define ID_AA64SMFR0_I8I32 0x4 +#define ID_AA64SMFR0_I8I32 0xf #define ID_AA64SMFR0_F16F32 0x1 #define ID_AA64SMFR0_B16F32 0x1 #define ID_AA64SMFR0_F32F32 0x1 -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel