rockchip-linux / kernel

BSP kernel source
Other
913 stars 1.07k forks source link

rk3308b kernel4.4 preempt-rt #266

Open chenjinle opened 2 years ago

chenjinle commented 2 years ago

INIT: version 2.90 booting [ 2.985859] BUG: scheduling while atomic: swapper/0/0/0x00000002 [ 2.985866] Modules linked in: [ 2.985885] Preemption disabled at:[] schedule_preempt_disabled+0x15/0x16 [ 2.985886] [ 2.985894] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.144-rt161 #1 [ 2.985897] Hardware name: Generic DT based system [ 2.985922] [] (unwind_backtrace) from [] (show_stack+0xb/0xc) [ 2.985936] [] (show_stack) from [] (dump_stack+0x51/0x68) [ 2.985949] [] (dump_stack) from [] (schedule_bug+0x55/0x7c) [ 2.985962] [] (__schedule_bug) from [] (schedule+0x4d/0x26c) [ 2.985976] [] (schedule) from [] (schedule+0x63/0x88) [ 2.985987] [] (schedule) from [] (rt_spin_lock_slowlock+0xff/0x1f4) [ 2.986003] [] (rt_spin_lock_slowlock) from [] (choose_freq+0x2f/0xe4) [ 2.986016] [] (choose_freq) from [] (cpufreq_interactive_timer+0x153/0x240) [ 2.986028] [] (cpufreq_interactive_timer) from [] (cpufreq_interactive_idle_notifier+0x5f/0x6c) [ 2.986041] [] (cpufreq_interactive_idle_notifier) from [] (notifier_call_chain+0x27/0x38) [ 2.986055] [] (notifier_call_chain) from [] (atomic_notifier_call_chain+0x21/0x2c) [ 2.986068] [] (atomic_notifier_call_chain) from [] (atomic_notifier_call_chain+0xf/0x14) [ 2.986082] [] (atomic_notifier_call_chain) from [] (cpu_startup_entry+0xd1/0x126) [ 2.986094] [] (cpu_startup_entry) from [] (start_kernel+0x273/0x2e0) [ 2.986127] ------------[ cut here ]------------ [ 3.140502] WARNING: CPU: 0 PID: 0 at kernel/sched/core.c:3352 migrate_enable+0x39/0x270() [ 3.140512] Modules linked in: [ 3.140522] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 4.4.144-rt161 #1 [ 3.140525] Hardware name: Generic DT based system [ 3.140547] [] (unwind_backtrace) from [] (show_stack+0xb/0xc) [ 3.140562] [] (show_stack) from [] (dump_stack+0x51/0x68) [ 3.140578] [] (dump_stack) from [] (warn_slowpath_common+0x55/0x7c) [ 3.140592] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) [ 3.140603] [] (warn_slowpath_null) from [] (migrate_enable+0x39/0x270) [ 3.140617] [] (migrate_enable) from [] (cpufreq_interactive_timer+0x145/0x240) 152 printk messages dropped [ 3.144227] [] (dump_stack) from [] (warn_slowpath_common+0x55/0x7c) 221 printk messages dropped [ 3.150972] [] (run_ksoftirqd) from [] (smpboot_thread_fn+0x17b/0x190) 204 printk messages dropped [ 3.157019] Modules linked in: 120 printk messages dropped [ 3.160245] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 220 printk messages dropped [ 3.170929] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 220 printk messages dropped [ 3.182928] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 219 printk messages dropped [ 3.192914] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 220 printk messages dropped [ 3.204917] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 237 printk messages dropped [ 3.216916] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 210 printk messages dropped [ 3.227989] [] (kthread) from [] (ret_from_fork+0x11/0x1c) 213 printk messages dropped [ 3.239917] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 203 printk messages dropped [ 3.249912] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 237 printk messages dropped [ 3.262915] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 219 printk messages dropped [ 3.273899] [] (dump_stack) from [] (warn_slowpath_common+0x55/0x7c) 204 printk messages dropped [ 3.284072] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 220 printk messages dropped [ 3.295916] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 237 printk messages dropped [ 3.307916] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 227 printk messages dropped [ 3.319989] [] (kthread) from [] (ret_from_fork+0x11/0x1c) 196 printk messages dropped [ 3.329914] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 203 printk messages dropped [ 3.340918] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 238 printk messages dropped [ 3.352926] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 203 printk messages dropped [ 3.363929] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 237 printk messages dropped [ 3.376099] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 203 printk messages dropped [ 3.385928] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 237 printk messages dropped [ 3.398924] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 333 printk messages dropped [ 3.416035] CPU: 0 PID: 3 Comm: ksoftirqd/0 Tainted: G W 4.4.144-rt161 #1 1133 printk messages dropped [ 3.474989] [] (kthread) from [] (ret_from_fork+0x11/0x1c) 1069 printk messages dropped [ 3.498627] CPU: 0 PID: 43 Comm: kworker/0:1 Tainted: G W 4.4.144-rt161 #1 1121 printk messages dropped [ 3.509655] [] (usb_remove_ep_devs) from [] (remove_intf_ep_devs+0x2d/0x2e) 1187 printk messages dropped [ 3.521250] [] (sysfs_remove_group) from [] (sysfs_remove_groups+0x17/0x18) 1177 printk messages dropped [ 3.532724] [] (usb_disconnect) from [] (hub_event+0x42b/0xa80) 1093 printk messages dropped [ 3.543481] [] (kthread) from [] (ret_from_fork+0x11/0x1c) 671 printk messages dropped [ 3.550059] [] (show_stack) from [] (dump_stack+0x51/0x68) 182 printk messages dropped [ 3.551870] Hardware name: Generic DT based system 149 printk messages dropped [ 3.553344] [] (migrate_enable) from [] (kernfs_put+0x9d/0x120) 396 printk messages dropped [ 3.557266] [] (device_del) from [] (usb_disconnect+0xab/0x128) 200 printk messages dropped [ 3.559258] [] (klist_remove) from [] (device_release_driver+0x73/0x8e) 379 printk messages dropped [ 3.562977] Modules linked in: 159 printk messages dropped [ 3.564898] [] (show_stack) from [] (dump_stack+0x51/0x68) 190 printk messages dropped [ 3.573939] [] (unpin_current_cpu) from [] (migrate_enable+0x1f1/0x270) 301 printk messages dropped [ 3.589893] [] (show_stack) from [] (dump_stack+0x51/0x68) 300 printk messages dropped [ 3.594889] [] (show_stack) from [] (dump_stack+0x51/0x68) 187 printk messages dropped [ 3.604902] [] (dump_stack) from [] (warn_slowpath_common+0x55/0x7c) 605 printk messages dropped [ 3.625891] [] (show_stack) from [] (dump_stack+0x51/0x68) 992 printk messages dropped [ 3.668853] WARNING: CPU: 0 PID: 4 at kernel/cpu.c:198 unpin_current_cpu+0x1f/0x50() 683 printk messages dropped [ 3.679482] [] (usb_runtime_idle) from [] (rpm_callback+0x15/0x20) 574 printk messages dropped [ 3.685121] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 665 printk messages dropped [ 3.692505] ---[ end trace 00000000000003c6 ]--- 153 printk messages dropped [ 3.694002] [] (usb_runtime_idle) from [] (__rpm_callback+0x15/0x20) 221 printk messages dropped [ 3.703102] [] (unpin_current_cpu) from [] (migrate_enable+0x1f1/0x270) 197 printk messages dropped [ 3.705530] [] (pm_runtime_work) from [] (process_one_work+0x117/0x204) 223 printk messages dropped [ 3.707614] [] (show_stack) from [] (dump_stack+0x51/0x68) 200 printk messages dropped [ 3.713942] [] (unpin_current_cpu) from [] (migrate_enable+0x1f1/0x270) 199 printk messages dropped [ 3.718325] [] (pm_runtime_suspend) from [] (usb_runtime_idle+0x15/0x1a) 312 printk messages dropped [ 3.721324] ------------[ cut here ]------------ 137 printk messages dropped [ 3.724856] Modules linked in: 118 printk messages dropped [ 3.731030] Modules linked in: 118 printk messages dropped [ 3.737856] Modules linked in: 101 printk messages dropped [ 3.742855] Modules linked in: 118 printk messages dropped [ 3.748856] Modules linked in: 118 printk messages dropped [ 3.755031] Modules linked in: 118 printk messages dropped [ 3.761858] Modules linked in: 101 printk messages dropped [ 3.766857] Modules linked in: 118 printk messages dropped [ 3.772856] Modules linked in: 118 printk messages dropped [ 3.779030] Modules linked in: 118 printk messages dropped [ 3.785018] Modules linked in: 102 printk messages dropped [ 3.788042] [] (unwind_backtrace) from [] (show_stack+0xb/0xc) 221 printk messages dropped [ 3.797926] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 203 printk messages dropped [ 3.807929] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 220 printk messages dropped [ 3.819927] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 220 printk messages dropped [ 3.831106] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 212 printk messages dropped [ 3.842853] WARNING: CPU: 0 PID: 4 at kernel/cpu.c:198 unpin_current_cpu+0x1f/0x50() 210 printk messages dropped [ 3.853914] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 220 printk messages dropped [ 3.864914] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 224 printk messages dropped [ 3.876961] [] (do_current_softirqs) from [] (run_ksoftirqd+0x1b/0x40) 216 printk messages dropped [ 3.887915] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 203 printk messages dropped [ 3.898914] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 237 printk messages dropped [ 3.911079] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 220 printk messages dropped [ 3.922916] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 220 printk messages dropped [ 3.934918] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 221 printk messages dropped [ 3.945923] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 220 printk messages dropped [ 3.957926] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 237 printk messages dropped [ 3.969928] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 203 printk messages dropped [ 3.980934] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 228 printk messages dropped [ 3.992844] ------------[ cut here ]------------ 127 printk messages dropped [ 3.999098] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 237 printk messages dropped [ 4.011926] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 202 printk messages dropped [ 4.022919] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 237 printk messages dropped [ 4.034918] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 205 printk messages dropped [ 4.044934] [] (unpin_current_cpu) from [] (migrate_enable+0x1f1/0x270) 235 printk messages dropped [ 4.057915] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 203 printk messages dropped [ 4.067919] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 237 printk messages dropped [ 4.080921] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 220 printk messages dropped [ 4.091914] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 203 printk messages dropped [ 4.102914] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 237 printk messages dropped [ 4.115085] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 215 printk messages dropped [ 4.126863] CPU: 0 PID: 4 Comm: ktimersoftd/0 Tainted: G W 4.4.144-rt161 #1 224 printk messages dropped [ 4.138902] [] (dump_stack) from [] (warn_slowpath_common+0x55/0x7c) 204 printk messages dropped [ 4.148913] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 220 printk messages dropped [ 4.160918] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 220 printk messages dropped [ 4.171915] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 209 printk messages dropped [ 4.182980] [] (smpboot_thread_fn) from [] (kthread+0x89/0x98) 214 printk messages dropped [ 4.194919] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 220 printk messages dropped [ 4.205913] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 220 printk messages dropped [ 4.217913] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 220 printk messages dropped [ 4.228913] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 232 printk messages dropped [ 4.241862] CPU: 0 PID: 4 Comm: ktimersoftd/0 Tainted: G W 4.4.144-rt161 #1 207 printk messages dropped [ 4.251903] [] (dump_stack) from [] (warn_slowpath_common+0x55/0x7c) 204 printk messages dropped [ 4.262912] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 220 printk messages dropped [ 4.274916] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 220 printk messages dropped [ 4.285914] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 226 printk messages dropped [ 4.297978] [] (smpboot_thread_fn) from [] (kthread+0x89/0x98) 197 printk messages dropped [ 4.307913] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 225 printk messages dropped [ 4.319967] [] (run_ksoftirqd) from [] (smpboot_thread_fn+0x17b/0x190) 215 printk messages dropped [ 4.331080] [] (warn_slowpath_common) from [] (warn_slowpath_null+0xf/0x14) 208 printk messages dropped [ 4.341965] [] (run_ksoftirqd) from [] (smpboot_thread_fn+0x17b/0x190) 233 printk messages dropped [ 4.354933] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 203 printk messages dropped [ 4.364930] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 237 printk messages dropped [ 4.377924] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 203 printk messages dropped [ 4.387924] [] (warn_slowpath_null) from [] (unpin_current_cpu+0x1f/0x50) 211 printk messages dropped [ 4.399843] ------------[ cut here ]------------

funny1023 commented 2 years ago

Solve it?