Open dtometzki opened 1 year ago
Hi, Did you manage to make it work? If not, I can help. My kernel builds from there from this branch are fine. But I don't use VF2 to full right now, just ssh-ing to it. Also, try blacklisting jpu and vdec first. From backtrace it's evident that they cause some malfunction.
Hello together,
i use the branch JH7110_VisionFive2_devel to build a custom kernel with starfive_visionfive2_defconfig.
Without add or delete any config option i see a kernel crash
[ 135.491224] vdec 130a0000.vpu_dec: device init. [ 135.495776] SUCCESS alloc_chrdev_region [ 135.499935] Unable to handle kernel access to user memory without uaccess routines at virtual address 00000001000000cf [ 135.510696] Oops [#1] [ 135.512973] Modules linked in: vdec(O+) jpu(O) [ 135.517428] CPU: 3 PID: 605 Comm: insmod Tainted: G O 5.15.0-starfive #2 [ 135.525432] Hardware name: StarFive VisionFive V2 (DT) [ 135.530570] epc : really_probe.part.0+0x1ac/0x234 [ 135.535281] ra : really_probe.part.0+0x1a6/0x234 [ 135.539986] epc : ffffffff80506ffc ra : ffffffff80506ff6 sp : ffffffd007383a50 [ 135.547212] gp : ffffffff81504148 tp : ffffffe0c0193200 t0 : ffffffe0c7977900 [ 135.554440] t1 : 0000000000000400 t2 : ffffffff814d6990 s0 : ffffffd007383a80 [ 135.561667] s1 : ffffffe0bfef4010 a0 : 0000000000000000 a1 : 0000000000000000 [ 135.568893] a2 : 0000000000000010 a3 : 0000000000000001 a4 : 0000000000082001 [ 135.576119] a5 : 00000000ffffffff a6 : 00000000000001c0 a7 : 0000000000000038 [ 135.583345] s2 : 0000000000000000 s3 : ffffffff015741f8 s4 : 0000000000000029 [ 135.590571] s5 : 0000000000000002 s6 : ffffffff015742c0 s7 : 0000000000000021 [ 135.597797] s8 : 0000000000000cc0 s9 : 000000000000fff1 s10: 0000000000000100 [ 135.605024] s11: 0000000000000013 t3 : ffffffffffffffff t4 : 0000000000000000 [ 135.612251] t5 : ffffffff8148adb8 t6 : ffffffe0c79778cd [ 135.617562] status: 0000000200000120 badaddr: 00000001000000cf cause: 000000000000000d [ 135.625484] [] really_probe.part.0+0x1ac/0x234
[ 135.631491] [] driver_probe_device+0x70/0xde
[ 135.637495] [] driver_probe_device+0x2c/0xb0
[ 135.643330] [] driver_attach+0x60/0x102
[ 135.648904] [] bus_for_each_dev+0x5a/0x98
[ 135.654477] [] driver_attach+0x1a/0x22
[ 135.659786] [] bus_add_driver+0xe6/0x198
[ 135.665273] [] driver_register+0x50/0xe4
[ 135.670759] [] platform_driver_register+0x1c/0x24
[ 135.677191] [] vpu_init+0x9c/0x1000 [vdec]
[ 135.682866] [] do_one_initcall+0x3e/0x168
[ 135.688440] [] do_init_module+0x46/0x1a4
[ 135.693929] [] load_module+0x196e/0x1ed6
[ 135.699416] [] do_sys_finit_module+0x8a/0xb6
[ 135.705421] [] sys_finit_module+0x10/0x18
[ 135.710995] [] ret_from_syscall+0x0/0x2
[ 135.716426] ---[ end trace ff142be4e461309e ]---
Any idea to this ?
best regards Damian