I have a kernel driver, where there is a section, in which a spin_lock() is applied and a wait_event_interruptible_timeout() within this spin_lock.
When I insmod the driver for this card, Scheduling while atomic BUG is coming and the Jetson TX2 is crashing (restarting) abruptly. The same driver works fine on an x86.
So is this anything related to the architecture?
Can anyone shed some light on this issue?
spin_lock(...); .... .... wait_event_interruptible_timeout(....); .... .... spin_unlock(....);