From 22a8e14b14ba3c2ef04627cbb59d38861969e789 Mon Sep 17 00:00:00 2001 From: a-ramses Date: Fri, 13 Dec 2024 01:43:06 +0100 Subject: [PATCH] smp: T6030 cpu start offset Signed-off-by: a-ramses --- proxyclient/m1n1/hv/__init__.py | 2 +- src/smp.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/proxyclient/m1n1/hv/__init__.py b/proxyclient/m1n1/hv/__init__.py index 1f223d97b..6219484d9 100644 --- a/proxyclient/m1n1/hv/__init__.py +++ b/proxyclient/m1n1/hv/__init__.py @@ -1562,7 +1562,7 @@ def cpustart_wh(base, off, data, width): chip_id = self.u.adt["/chosen"].chip_id if chip_id in (0x8103, 0x6000, 0x6001, 0x6002): cpu_start = 0x54000 + die * 0x20_0000_0000 - elif chip_id in (0x8112, 0x8122): + elif chip_id in (0x8112, 0x8122, 0x6030): cpu_start = 0x34000 + die * 0x20_0000_0000 elif chip_id in (0x6020, 0x6021, 0x6022): cpu_start = 0x28000 + die * 0x20_0000_0000 diff --git a/src/smp.c b/src/smp.c index 15ccc0e40..8059159d0 100644 --- a/src/smp.c +++ b/src/smp.c @@ -18,6 +18,7 @@ #define CPU_START_OFF_T8103 0x54000 #define CPU_START_OFF_T8112 0x34000 #define CPU_START_OFF_T6020 0x28000 +#define CPU_START_OFF_T6030 0x34000 #define CPU_START_OFF_T6031 0x88000 #define CPU_REG_CORE GENMASK(7, 0) @@ -279,6 +280,9 @@ void smp_start_secondaries(void) case T6022: cpu_start_off = CPU_START_OFF_T6020; break; + case T6030: + cpu_start_off = CPU_START_OFF_T6030; + break; case T6031: case T6034: cpu_start_off = CPU_START_OFF_T6031;