Is it included CONFIG_DEBUG_SPINLOCK_SLEEP, which can give you more information, including a stack trace, where the error is.
Another angle you need to look at is the sleep functions that you invoke. Examples are msleep(), mutex_lock(), copy_to_user()etc.
source
share