Hi Radxa Technical Team,
I am currently working on the Radxa Orion O6 (CIX P1 SoC). My project involves deep micro-architecture research and performance tuning on the ARM Cortex-A720 cores.
The Goal
I need to dynamically modify the following system registers from the Linux Kernel (EL1) level:
-
IMP_CPUECTLR_EL1 -
IMP_CPUECTLR2_EL1
The Problem
When I attempt to write to these registers using a kernel module, the system immediately triggers a Hard Lockup / RCU Stall.
Here is the kernel log snippet showing the stall:
Plaintext
[ 1369.125984] [2026:01:22 08:53:54][pid:37812,cpu7,insmod]imp_msr loaded (SMP supported)
[ 1383.906085] [2026:01:22 08:54:09][pid:38228,cpu6,tee]CPU0 READ cpuectlr = 0x242000720620b014
[ 1387.899851] [2026:01:22 08:54:13][pid:38339,cpu1,tee]CPU0 READ cpuectlr2 = 0x0000000026477401
[ 1431.194178] [2026:01:22 08:54:56][pid:38969,cpu2,in irq]rcu: INFO: rcu_preempt self-detected stall on CPU
[ 1431.194206] [pid:38969,cpu2,in irq]rcu: 2-...!: (5250 ticks this GP) idle=6e9c/1/0x4000000000000000 softirq=65231/65231 fqs=36
[ 1431.194217] [pid:38969,cpu2,in irq] (t=5251 jiffies g=128957 q=127846 ncpus=12)
[ 1431.194225] [pid:38969,cpu2,in irq]rcu: rcu_preempt kthread timer wakeup didn't happen for 5146 jiffies! g128957 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x200
[ 1431.194232] [pid:38969,cpu2,in irq]rcu: Possible timer handling issue on cpu=10 timer-softirq=29704
[ 1431.194237] [pid:38969,cpu2,in irq]rcu: rcu_preempt kthread starved for 5147 jiffies! g128957 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x200 ->cpu=10
[ 1431.194245] [pid:38969,cpu2,in irq]rcu: Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
[ 1431.194249] [pid:38969,cpu2,in irq]rcu: RCU grace-period kthread stack dump:
[ 1431.194254] [pid:38969,cpu2,in irq]task:rcu_preempt state:R stack:0 pid:14 ppid:2 flags:0x00000008
[ 1431.194266] [pid:38969,cpu2,in irq]Call trace:
[ 1431.194270] [pid:38969,cpu2,in irq] __switch_to+0xdc/0x150
[ 1431.194288] [pid:38969,cpu2,in irq] __schedule+0x2dc/0x7d0
[ 1431.194297] [pid:38969,cpu2,in irq] schedule+0x5c/0x100
[ 1431.194304] [pid:38969,cpu2,in irq] schedule_timeout+0x8c/0x100
[ 1431.194313] [pid:38969,cpu2,in irq] rcu_gp_fqs_loop+0x140/0x420
[ 1431.194324] [pid:38969,cpu2,in irq] rcu_gp_kthread+0x134/0x164
[ 1431.194332] [pid:38969,cpu2,in irq] kthread+0x108/0x10c
[ 1431.194341] [pid:38969,cpu2,in irq] ret_from_fork+0x10/0x20
[ 1431.194351] [pid:38969,cpu2,in irq]rcu: Stack dump where RCU GP kthread last ran:
[ 1431.194357] [pid:38969,cpu2,in irq]Sending NMI from CPU 2 to CPUs 10:
(Note: The system hangs immediately after the write instruction msr S3_0_C15_C1_4, ...)
Technical Diagnosis
Based on the ARMv9 architecture and Cortex-A720 TRM, this behavior confirms that write access to Implementation Defined registers is being trapped or disabled by higher exception levels (EL3/EL2).
I suspect the firmware is configured as follows:
-
TF-A (EL3):
ACTLR_EL3.ECTLREN(or equivalent bit) is NOT set, trapping EL1/EL2 writes to EL3. -
U-Boot (EL2):
ACTLR_EL2.ECTLRENis NOT set, preventing EL1 access. -
Hypervisor Trap:
HCR_EL2.TIDCP(Trap Implementation Dependent Coprocessor) might be SET, causing EL1 accesses to trap to EL2.
Current Limitation
I have checked the CIX SDK provided (cix-sdk/bsp/), but it appears to contain only UEFI/EDK2 sources. I cannot find the ARM Trusted Firmware (TF-A) or U-Boot source code, nor can I find the build environment to modify bl31.
My Request
To proceed with our research, we urgently need support in one of the following ways:
-
Option A (Preferred): Please provide the full source code for TF-A and U-Boot compatible with the CIX P1/Orion O6, so we can rebuild the firmware with unlocked permissions.
-
Option B: Please provide a custom firmware package (containing
bl31.binandu-boot) with the following changes:-
Set
ACTLR_EL3.ECTLREN= 1 -
Set
ACTLR_EL2.ECTLREN= 1 -
Clear
HCR_EL2.TIDCP= 0
-
Device Information:
-
Board: Radxa Orion O6
-
SoC: CIX P1 (Cortex-A720)
-
Kernel Version: [Please insert your kernel version, e.g., 6.1.x]
Looking forward to your support. This is a critical blocker for our project.
Best Regards.