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