Skip to content

Commit c46de5d

Browse files
committed
arm64/sysreg: Update TCR_EL1 register
JIRA: https://issues.redhat.com/browse/RHEL-101059 commit 14f1585 Author: Anshuman Khandual <anshuman.khandual@arm.com> Date: Sun, 21 Sep 2025 06:22:58 +0530 Update TCR_EL1 register fields as per latest ARM ARM DDI 0487 L.B and while here drop an explicit sysreg definition SYS_TCR_EL1 from sysreg.h, which is now redundant. Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Cc: Marc Zyngier <maz@kernel.org> Cc: Mark Brown <broonie@kernel.org> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Reviewed-by: Mark Brown <broonie@kernel.org> Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Mark Salter <msalter@redhat.com>
1 parent 2bdd592 commit c46de5d

File tree

2 files changed

+44
-10
lines changed

2 files changed

+44
-10
lines changed

arch/arm64/include/asm/sysreg.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,6 @@
281281
#define SYS_RGSR_EL1 sys_reg(3, 0, 1, 0, 5)
282282
#define SYS_GCR_EL1 sys_reg(3, 0, 1, 0, 6)
283283

284-
#define SYS_TCR_EL1 sys_reg(3, 0, 2, 0, 2)
285-
286284
#define SYS_APIAKEYLO_EL1 sys_reg(3, 0, 2, 1, 0)
287285
#define SYS_APIAKEYHI_EL1 sys_reg(3, 0, 2, 1, 1)
288286
#define SYS_APIBKEYLO_EL1 sys_reg(3, 0, 2, 1, 2)

arch/arm64/tools/sysreg

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4742,17 +4742,53 @@ Field 37 TBI0
47424742
Field 36 AS
47434743
Res0 35
47444744
Field 34:32 IPS
4745-
Field 31:30 TG1
4746-
Field 29:28 SH1
4747-
Field 27:26 ORGN1
4748-
Field 25:24 IRGN1
4745+
Enum 31:30 TG1
4746+
0b01 16K
4747+
0b10 4K
4748+
0b11 64K
4749+
EndEnum
4750+
Enum 29:28 SH1
4751+
0b00 NONE
4752+
0b10 OUTER
4753+
0b11 INNER
4754+
EndEnum
4755+
Enum 27:26 ORGN1
4756+
0b00 NC
4757+
0b01 WBWA
4758+
0b10 WT
4759+
0b11 WBnWA
4760+
EndEnum
4761+
Enum 25:24 IRGN1
4762+
0b00 NC
4763+
0b01 WBWA
4764+
0b10 WT
4765+
0b11 WBnWA
4766+
EndEnum
47494767
Field 23 EPD1
47504768
Field 22 A1
47514769
Field 21:16 T1SZ
4752-
Field 15:14 TG0
4753-
Field 13:12 SH0
4754-
Field 11:10 ORGN0
4755-
Field 9:8 IRGN0
4770+
Enum 15:14 TG0
4771+
0b00 4K
4772+
0b01 64K
4773+
0b10 16K
4774+
EndEnum
4775+
Enum 13:12 SH0
4776+
0b00 NONE
4777+
0b10 OUTER
4778+
0b11 INNER
4779+
EndEnum
4780+
Enum 11:10 ORGN0
4781+
0b00 NC
4782+
0b01 WBWA
4783+
0b10 WT
4784+
0b11 WBnWA
4785+
EndEnum
4786+
Enum 9:8 IRGN0
4787+
0b00 NC
4788+
0b01 WBWA
4789+
0b10 WT
4790+
0b11 WBnWA
4791+
EndEnum
47564792
Field 7 EPD0
47574793
Res0 6
47584794
Field 5:0 T0SZ

0 commit comments

Comments
 (0)