Open zskdan opened 4 years ago
I have the problem,too.
This is a 'page domain fault' crash from kernel. To avoid this, check the status of 'CONFIG_CPU_SW_DOMAIN_PAN' flag in your kernel config. $ zcat /proc/config.gz | grep CONFIG_CPU_SW_DOMAIN_PAN If it is in enabled state, then disable it to avoid 'page domain fault' crash from kernel.
Thanks @ajaixavier for your feedback. I've just finally got time to go back to this project.
I have no more kernel panic after unsetting CONFIG_CPU_SW_DOMAIN_PAN.
axidma_display_image
seems to be running OK. but unfortunately nothing show off from the HDMI. Do you have any working setup for this ?
Thanks!
Hello @zskdan @dhzzy88 @ajaixavier , I encountered an error at the same location, but the error message is different. What could be the reason for this?
[ 1299.997142] Unable to handle kernel access to user memory without uaccess routines at virtual address 0000003fe89688a0
[ 1300.007734] Oops [#1]
[ 1300.009180] Modules linked in: axidma(O)
[ 1300.013100] CPU: 0 PID: 809 Comm: axidma_display_ Tainted: G O 6.3.12-dirty #6
[ 1300.021664] Hardware name: freechips,rocketchip-vivado (DT)
[ 1300.027222] epc : axidma_ioctl+0x8e8/0xa26 [axidma]
[ 1300.039412] ra : axidma_ioctl+0x8e8/0xa26 [axidma]
[ 1300.051540] epc : ffffffff01334cba ra : ffffffff01334cba sp : ffffffd8844ffe00
[ 1300.058700] gp : ffffffff812e3868 tp : ffffffd88747f480 t0 : 6100000000000000
[ 1300.065900] t1 : 0000000000000061 t2 : 61203a616d646978 s0 : ffffffd8844ffea0
[ 1300.073100] s1 : 0000003fe8968898 a0 : 0000000000000036 a1 : ffffffd8fc5e0588
[ 1300.080306] a2 : ffffffd8fc5e3620 a3 : 0000000000000000 a4 : d1be0e6e08481a00
[ 1300.087510] a5 : d1be0e6e08481a00 a6 : c0000000ffffefff a7 : ffffffff81319700
[ 1300.094722] s2 : ffffffd8844ffe10 s3 : ffffffff812e40a0 s4 : 0000000000000008
[ 1300.101920] s5 : ffffffd883869400 s6 : 0000002ad3a36980 s7 : 0000003f8c1dfd10
[ 1300.109128] s8 : 0000003f8c1e0008 s9 : 0000000000000000 s10: 0000002ad3a03a44
[ 1300.116334] s11: 0000002ad3a039b8 t3 : ffffffff812f589f t4 : ffffffff812f589f
[ 1300.123536] t5 : ffffffff812f58a0 t6 : ffffffd8844ffc28
[ 1300.128828] status: 0000000200000120 badaddr: 0000003fe89688a0 cause: 000000000000000d
[ 1300.136766] [<ffffffff01334cba>] axidma_ioctl+0x8e8/0xa26 [axidma]
[ 1300.150258] [<ffffffff80181b08>] sys_ioctl+0x6e/0x8c
[ 1300.155172] [<ffffffff80003570>] ret_from_syscall+0x0/0x2
[ 1300.160760] Code: 0613 6066 3517 0000 0513 3c65 9097 7f38 80e7 ab00 (6488) 85d2
[ 1300.169406] ---[ end trace 0000000000000000 ]---
Segmentation fault
I'm trying to use axidma_display_image to display an image (bitmap image 640 x 480 x 32) on the DISPLAY attached on HDMI to my ARTY-Z7-20. The FPGA base design is the one in https://github.com/Digilent/Arty-Z7-20-base-linux. I've just replaced AXIDMA_DMA with AXIDMA_VDMA references as in this patch 0001-display_image-use-vdma.txt
But It seems that the 2nd
copy_from_user()
here is making a kernel oops:Any idea how to resolve that?