10-28-2019 11:05 PM
I've met a problem when downloading kernel to EMMC on ZYNQ7030.
Our system is ZYNQ7030+spi flash+eMMC. The programming process is as followed:
Problem occurred during step 3, and reported error as below:
Built with PetaLinux v2015.4 (Yocto 1.8) zynq_proto_2 /dev/ttyPS0
zynq_proto_2 login: root
root@zynq_proto_2:~# BUG: scheduling while atomic: kworker/0:1/245/0x00000002
Modules linked in: ipv6
CPU: 0 PID: 245 Comm: kworker/0:1 Not tainted 4.0.0-xilinx #8
Hardware name: Xilinx Zynq Platform
Workqueue: events macb_tx_error_task
[<c001490c>] (unwind_backtrace) from [<c0010e4c>] (show_stack+0x10/0x14)
[<c0010e4c>] (show_stack) from [<c047e4c0>] (dump_stack+0x80/0xcc)
[<c047e4c0>] (dump_stack) from [<c047c510>] (__schedule_bug+0x48/0x64)
[<c047c510>] (__schedule_bug) from [<c047ee34>] (__schedule+0x74/0x484)
[<c047ee34>] (__schedule) from [<c047f2e4>] (schedule+0xa0/0xb0)
[<c047f2e4>] (schedule) from [<c0481b74>] (schedule_hrtimeout_range_clock+0xd0/0x10c)
[<c0481b74>] (schedule_hrtimeout_range_clock) from [<c005a914>] (usleep_range+0x44/0x4c)
[<c005a914>] (usleep_range) from [<c02cbfd8>] (macb_tx_error_task+0xa8/0x25c)
[<c02cbfd8>] (macb_tx_error_task) from [<c00323b8>] (process_one_work+0x13c/0x228)
[<c00323b8>] (process_one_work) from [<c0032878>] (worker_thread+0x188/0x288)
[<c0032878>] (worker_thread) from [<c00361b0>] (kthread+0xd8/0xec)
[<c00361b0>] (kthread) from [<c000de40>] (ret_from_fork+0x14/0x34)
Anyone know what cause this error ? Thanks!
10-30-2019 12:48 AM
It looks like this is a gem driver issue. You Petalinux version is old. Is it possible to use latest Petalinux?
Or you can try below patch.