How to solve “BUG: scheduling while atomic: swapper /0x00000103/0, CPU#0”? in TSC2007 Driver?

前端 未结 4 1948
礼貌的吻别
礼貌的吻别 2020-12-03 03:19

I found tsc2007 driver and modified according to our needs. Our firm is producing its own TI DM365 board. In this board we used TSC2007 and connected PENIRQ pin to GPIO0 of

4条回答
  •  春和景丽
    2020-12-03 03:43

    For anyone else with a similar error - I had this problem because I had a function, called from an atomic context, that used kzalloc(..., GFP_KERN) when it should have used GFP_NOWAIT or GFP_ATOMIC.

    This is just one example of a function sleeping when you don't want to, which is something you have to be careful of in kernel programming.

    Hope this is useful to somebody else!

提交回复
热议问题