]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64/sysreg: Add HDBSS related register information
authoreillon <yezhenyu2@huawei.com>
Wed, 25 Feb 2026 04:04:17 +0000 (12:04 +0800)
committerWill Deacon <will@kernel.org>
Tue, 19 May 2026 10:29:20 +0000 (11:29 +0100)
The ARM architecture added the HDBSS feature and descriptions of
related registers (HDBSSBR/HDBSSPROD) in the DDI0601(ID121123) version,
add them to Linux.

Signed-off-by: eillon <yezhenyu2@huawei.com>
Signed-off-by: Tian Zheng <zhengtian10@huawei.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/esr.h
arch/arm64/tools/sysreg

index 7e86d400864e031e0c328516134dc1779151c3a8..81c17320a588d9f01da2447a8e8ecadfdaf38b7e 100644 (file)
 #define ESR_ELx_CM             (UL(1) << ESR_ELx_CM_SHIFT)
 
 /* ISS2 field definitions for Data Aborts */
+#define ESR_ELx_HDBSSF_SHIFT   (11)
+#define ESR_ELx_HDBSSF         (UL(1) << ESR_ELx_HDBSSF_SHIFT)
 #define ESR_ELx_TnD_SHIFT      (10)
 #define ESR_ELx_TnD            (UL(1) << ESR_ELx_TnD_SHIFT)
 #define ESR_ELx_TagAccess_SHIFT        (9)
index 6c3ff14e561e69e66bf8e2ca4e45429a1f74cf0e..4516971cea06eb0f96d1e69472738b2aa87688f8 100644 (file)
@@ -4597,6 +4597,35 @@ Sysreg   GCSPR_EL2       3       4       2       5       1
 Fields GCSPR_ELx
 EndSysreg
 
+Sysreg HDBSSBR_EL2     3       4       2       3       2
+Res0   63:56
+Field  55:12   BADDR
+Res0   11:4
+Enum   3:0     SZ
+       0b0000  4KB
+       0b0001  8KB
+       0b0010  16KB
+       0b0011  32KB
+       0b0100  64KB
+       0b0101  128KB
+       0b0110  256KB
+       0b0111  512KB
+       0b1000  1MB
+       0b1001  2MB
+EndEnum
+EndSysreg
+
+Sysreg HDBSSPROD_EL2   3       4       2       3       3
+Res0   63:32
+Enum   31:26   FSC
+       0b000000        OK
+       0b010000        ExternalAbort
+       0b101000        GPF
+EndEnum
+Res0   25:19
+Field  18:0    INDEX
+EndSysreg
+
 Sysreg DACR32_EL2      3       4       3       0       0
 Res0   63:32
 Field  31:30   D15