03:19
vagrantc has quit [Ping timeout: 265 seconds]
05:01
Terry137322934 has quit [Quit: Bye Bye]
06:59
LucasTanure has joined #linux-amlogic
07:02
<
LucasTanure >
Hi I am having an Kernel panic with Vim3 and latest kernel
07:03
<
LucasTanure >
[ 9.792966] SError Interrupt on CPU3, code 0x00000000bf000000 -- SError
07:03
<
LucasTanure >
[ 9.792980] CPU: 3 PID: 3471 Comm: kded5 Tainted: G C 6.2.0 #1
07:03
<
LucasTanure >
[ 9.792985] Hardware name: Khadas VIM3 (DT)
07:03
<
LucasTanure >
[ 9.792987] pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
07:03
<
LucasTanure >
[ 9.792991] pc : kmem_cache_free_bulk.part.98+0x1f0/0x528
07:03
<
LucasTanure >
[ 9.793004] lr : kmem_cache_free_bulk.part.98+0x2f8/0x528
07:03
<
LucasTanure >
[ 9.793008] sp : ffff80000a2eb7f0
07:03
<
LucasTanure >
[ 9.793009] x29: ffff80000a2eb7f0 x28: ffff00001f358518 x27: ffff000000008800
07:03
<
LucasTanure >
[ 9.793016] x26: ffff00000262b300 x25: ffff00000262b300 x24: 0000000000000001
07:03
<
LucasTanure >
[ 9.793019] x23: ffff00000262b000 x22: 0000000000000000 x21: ffff00001f358538
07:03
<
LucasTanure >
[ 9.793022] x20: fffffc0000098ac0 x19: 0000000000000004 x18: 0000000000000040
07:03
<
LucasTanure >
[ 9.793025] x17: 0000000000000018 x16: 00000000000007f8 x15: 0000000000000003
07:03
<
LucasTanure >
[ 9.793028] x14: 0000000000000006 x13: ffff800008e48550 x12: 0000ffff9dc91fff
07:03
<
LucasTanure >
[ 9.793031] x11: 0000000000000004 x10: 0000000000000001 x9 : ffff000007e93680
07:03
<
LucasTanure >
[ 9.793035] x8 : 0000000000000020 x7 : ffff000001d2b100 x6 : 0000000000000007
07:03
<
LucasTanure >
[ 9.793037] x5 : 0000000000000020 x4 : ffff000000008800 x3 : 0000000000000001
07:03
<
LucasTanure >
[ 9.793040] x2 : 0000000000000007 x1 : 0000000000000000 x0 : ffff00001f358540
07:03
<
LucasTanure >
[ 9.793045] Kernel panic - not syncing: Asynchronous SError Interrupt
07:03
<
LucasTanure >
Linux version 6.2.0
07:04
<
LucasTanure >
U-Boot 2021.07 (Sep 28 2022 - 14:55:03 +0800) khadas-vim3
07:08
<
LucasTanure >
it doesnt happen if I remove
07:08
<
LucasTanure >
* If the memory is already reserved (by another region), we
07:08
<
LucasTanure >
* should not allow it to be marked nomap, but don't worry
07:08
<
LucasTanure >
* if the region isn't memory as it won't be mapped.
07:08
<
LucasTanure >
if (memblock_overlaps_region(&memblock.memory, base, size) &&
07:08
<
LucasTanure >
memblock_is_region_reserved(base, size))
07:08
<
LucasTanure >
return -EBUSY;
07:08
<
LucasTanure >
from static int __init early_init_dt_reserve_memory(phys_addr_t base,
07:08
<
LucasTanure >
phys_addr_t size, bool nomap)
07:09
<
LucasTanure >
removing that makes "OF: fdt: Reserved memory: failed to reserve memory for node 'secmon@5000000': base 0x0000000005000000, size 3 MiB" go away
07:11
<
LucasTanure >
I know that issue seems to be harmless but it related to my kernel panic
07:11
<
LucasTanure >
narmstrong do you saw that issue before?
07:29
f_ has joined #linux-amlogic
07:58
<
narmstrong >
LucasTanure: it was here for a long time but it never caused issues so far
08:02
<
LucasTanure >
I think the kernel is using a memory that is shouldn't use
08:02
<
LucasTanure >
I get this memory issue only if the /* 3 MiB reserved for ARM Trusted Firmware (BL31) */
08:02
<
LucasTanure >
is not reserved
08:03
<
LucasTanure >
so I think is critical to reserve that memory
08:23
LucasTanure has quit [Quit: Client closed]
08:34
<
narmstrong >
It should be in the DT reserved memory, but we also set it from uboot in the dtb reserved memory but due to the conflicts the dtb one is ignored but the DT one should be used
08:40
<
f_ >
HackerKkillinghi: Congrats!
08:41
<
HackerKkillinghi >
hi
08:41
<
HackerKkillinghi >
f_:
08:48
<
f_ >
I just reviewed your MR.
08:48
<
f_ >
Nice that you successfully ported the X96 Mini.
08:49
* f_
gets back to doing unrelated stuff.
10:18
LucasTanure has joined #linux-amlogic
10:21
<
LucasTanure >
@narmstrong it is in the kernel DT
10:21
<
LucasTanure >
/* 3 MiB reserved for ARM Trusted Firmware (BL31) */
10:21
<
LucasTanure >
no-map;
10:21
<
LucasTanure >
reg = <0x0 0x05000000 0x0 0x300000>;
10:21
<
LucasTanure >
secmon_reserved: secmon@5000000 {
10:24
JohnnyonFlame has joined #linux-amlogic
10:42
rockosov has quit [Ping timeout: 248 seconds]
10:44
rockosov has joined #linux-amlogic
11:20
LucasTanure has quit [Quit: Leaving]
11:20
JohnnyonFlame has quit [Ping timeout: 255 seconds]
11:47
JohnnyonFlame has joined #linux-amlogic
13:07
<
f_ >
Hey did WeTek die?
15:00
rpardini has joined #linux-amlogic
16:34
buzzmarshall has joined #linux-amlogic
18:02
f_ has quit [Ping timeout: 265 seconds]
18:02
rpardini has quit [Quit: gone]
18:03
f_ has joined #linux-amlogic
18:08
f_ has quit [Quit: Lost terminal]
18:17
JohnnyonFlame has quit [Ping timeout: 250 seconds]
18:20
JohnnyonFlame has joined #linux-amlogic
19:59
JohnnyonFlame has quit [Ping timeout: 248 seconds]
20:01
JohnnyonFlame has joined #linux-amlogic
20:02
jacobk has joined #linux-amlogic
20:44
Terry137322934 has joined #linux-amlogic
21:28
jacobk has quit [Ping timeout: 248 seconds]
21:34
vagrantc has joined #linux-amlogic
21:46
jacobk has joined #linux-amlogic
23:38
JohnnyonFlame has quit [Ping timeout: 276 seconds]
23:47
jacobk has quit [Ping timeout: 250 seconds]
23:47
vagrantc has quit [Quit: leaving]