The default value of CORES_TS_OFFSET will cause the following known issue:

 # cat /sys/kernel/debug/llce_core/core1_ts
 Unable to handle kernel paging request at virtual address ffffffc00ced0870
 Mem abort info:
 ESR = 0x0000000096000007
 EC = 0x25: DABT (current EL), IL = 32 bits
 SET = 0, FnV = 0
 EA = 0, S1PTW = 0
 FSC = 0x07: level 3 translation fault
 Data abort info:
 ISV = 0, ISS = 0x00000007
 CM = 0, WnR = 0
 swapper pgtable: 4k pages, 39-bit VAs, pgdp=000000008b84f000
 [ffffffc00ced0870] pgd=10000008dffff003, p4d=10000008dffff003, 
pud=10000008dffff003, pmd=1000000889aeb003, pte=0000000000000000
 Internal error: Oops: 96000007 1 PREEMPT SMP
 Modules linked in: 8021q llce_mailbox llce_core llce_can pfeng(O) sch_fq_codel 
openvswitch nsh nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 
[last unloaded: llce_core]
 CPU: 1 PID: 781 Comm: cat Tainted: G O 5.15.135-yocto-standard #1
 Hardware name: NXP S32G399A-RDB3 (DT)
 pstate: 60000005 (nZCv daif PAN -UAO -TCO -DIT -SSBS BTYPE=-)
 pc : debugfs_readl_get+0xc/0x30 [llce_core]
 lr : simple_attr_read+0x7c/0x130
 sp : ffffffc00d23bcd0
 x29: ffffffc00d23bce0 x28: ffffff88142e0040 x27: 0000000000000000
 x26: 0000000000000000 x25: 0000000000000000 x24: 0000007fb45bf000
 x23: 0000000000020000 x22: ffffff8820da7150 x21: 0000000000000000
 x20: ffffffc00d23bda0 x19: ffffff8820da7100 x18: 0000000000000000
 x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
 x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
 x11: 0000000000000001 x10: 0101010101010101 x9 : ffffffc00836968c
 x8 : ffffffc009fb6c18 x7 : 0000000000000000 x6 : 0000000000000001
 x5 : ffffffc009d31000 x4 : ffffffc009d31808 x3 : 0000000000000000
 x2 : ffffffc001170000 x1 : ffffffc00d23bcd0 x0 : ffffffc00ced0870
 Call trace:
 debugfs_readl_get+0xc/0x30 [llce_core]
 debugfs_attr_read+0x54/0x9c
 vfs_read+0xb4/0x1ec
 ksys_read+0x74/0x104
 __arm64_sys_read+0x24/0x30
 invoke_syscall+0x5c/0x130
 el0_svc_common.constprop.0+0x68/0x124
 do_el0_svc+0x4c/0xb0
 el0_svc+0x54/0x110
 el0t_64_sync_handler+0xa4/0x130
 el0t_64_sync+0x1a0/0x1a4
 Code: bad PC value
 --[ end trace feb346f6b33a6527 ]--
 Kernel panic - not syncing: Oops: Fatal exception
 SMP: stopping secondary CPUs
 Kernel Offset: disabled
 CPU features: 0x8,00002001,20000842
 Memory Limit: none
 --[ end Kernel panic - not syncing: Oops: Fatal exception ]--

This patch changing the CORES_TS_OFFSET to 0x13730, which is from the
"Release Note" of BSP38 and given as a workaround, will fix the above issue.

The value of CORES_TS_OFFSET may be changed in future BSP versions, and we
will update it accordingly.

Signed-off-by: Zhantao Tang <zhantao.t...@windriver.com>
---
 drivers/mfd/llce-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/llce-core.c b/drivers/mfd/llce-core.c
index 212bf99283dc1..e7a798324f9f8 100644
--- a/drivers/mfd/llce-core.c
+++ b/drivers/mfd/llce-core.c
@@ -36,7 +36,7 @@
 #define LLCE_MGR_TX_BOOT_END                   (0x00000F00U)
 #define LLCE_MGR_FRPE_BOOT_END                 (0x0000F000U)
 #define LLCE_MGR_BOOT_END_ALL_CORES_MASK       (0x0000FFFFU)
-#define CORES_TS_OFFSET                                (0x13FD0)
+#define CORES_TS_OFFSET                                (0x13730)
 
 struct sram_node {
        const char *name;
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13203): 
https://lists.yoctoproject.org/g/linux-yocto/message/13203
Mute This Topic: https://lists.yoctoproject.org/mt/102074006/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to