3 Replies Latest reply on Jan 15, 2016 4:36 PM by CMata_Intel

    How to fix this Intel edison kernel BUG?

    cer1991

      Hello everyone,

      I meet this problem when I use my dirver(coded by myself) on edison

      [ 3960.093260] INFO: task kworker/u4:4:373 blocked for more than 120 seconds.
      [ 3960.093325] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
      [ 3960.093395] kworker/u4:4    D f576de90  6188   373      2 0x00000000
      [ 3960.093440] Workqueue: AFE4300_wq AFE4300_do_task [AFE4300]
      [ 3960.093456]  f5445da8 00000046 c18cb6a6 f576de90 f5445d64 c1ce9000 f6c9e000 0dcd111d
      [ 3960.093510]  00000365 f50c3210 f73efb00 f6c810b0 f576de90 f5d34b44 f6c0e000 f5445d70
      [ 3960.093564]  c127271f f5cf5100 f5445d78 c125acce f5445d94 c125c443 f5cf5100 00000007
      [ 3960.093618] Call Trace:
      [ 3960.093649]  [<c18cb6a6>] ? _raw_spin_unlock_irqrestore+0x26/0x60
      [ 3960.093677]  [<c127271f>] ? wake_up_process+0x1f/0x40
      [ 3960.093703]  [<c125acce>] ? wake_up_worker+0x1e/0x20
      [ 3960.093728]  [<c125c443>] ? insert_work+0x53/0x90
      [ 3960.093756]  [<c18cb627>] ? _raw_spin_unlock+0x17/0x40
      [ 3960.093781]  [<c125cdef>] ? __queue_work+0x10f/0x340
      [ 3960.093807]  [<c18ca523>] schedule+0x23/0x60
      [ 3960.093833]  [<c18c7b85>] schedule_timeout+0x165/0x2a0
      [ 3960.093863]  [<c1270d3b>] ? get_parent_ip+0xb/0x40
      [ 3960.093889]  [<c18cf0b5>] ? sub_preempt_count+0x95/0xf0
      [ 3960.093915]  [<c1270d3b>] ? get_parent_ip+0xb/0x40
      [ 3960.093944]  [<c18c95db>] wait_for_completion+0xab/0xe0
      [ 3960.093968]  [<c1272760>] ? wake_up_state+0x20/0x20
      [ 3960.093995]  [<c15bd838>] __spi_sync+0x68/0xb0
      [ 3960.123240]  [<c15bd88f>] spi_sync+0xf/0x20
      [ 3960.123274]  [<f8d173e4>] AFE4300_do_task+0xb4/0x1d0 [AFE4300]
      [ 3960.123302]  [<c1270d3b>] ? get_parent_ip+0xb/0x40
      [ 3960.123333]  [<c15bd8c0>] ? spi_sync_locked+0x20/0x20
      [ 3960.123363]  [<c125db1e>] process_one_work+0xfe/0x410
      [ 3960.123389]  [<c1270d3b>] ? get_parent_ip+0xb/0x40
      [ 3960.123415]  [<c18cefad>] ? add_preempt_count+0x7d/0xf0
      [ 3960.123440]  [<c18cf0b5>] ? sub_preempt_count+0x95/0xf0
      [ 3960.123468]  [<c125e1fc>] worker_thread+0xfc/0x360
      [ 3960.123495]  [<c18cb6a6>] ? _raw_spin_unlock_irqrestore+0x26/0x60
      [ 3960.123522]  [<c125e100>] ? rescuer_thread+0x2d0/0x2d0
      [ 3960.123547]  [<c12634d0>] kthread+0xa0/0xb0
      [ 3960.123572]  [<c18cf0b5>] ? sub_preempt_count+0x95/0xf0
      [ 3960.123605]  [<c18d1037>] ret_from_kernel_thread+0x1b/0x28
      [ 3960.123630]  [<c1263430>] ? kthread_create_on_node+0xc0/0xc0
      
      

      Does anyone know why it happens and how can I fix it?

      Is it caused by spi master on edison or others?