Re: [PATCH] media: rc: nuvoton: fix deadlock in nvt_write_wakeup_codes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Heiner,

On Sun, Feb 12, 2017 at 06:01:22PM +0100, Heiner Kallweit wrote:
> nvt_write_wakeup_codes acquires the same lock as the ISR but doesn't
> disable interrupts on the local CPU. This caused the following
> deadlock. Fix this by using spin_lock_irqsave.
> 
> [  432.362008] ================================
> [  432.362074] WARNING: inconsistent lock state
> [  432.362144] 4.10.0-rc7-next-20170210 #1 Not tainted
> [  432.362219] --------------------------------

-snip-

Thank you for that, I'll make a pull request soon so we have it for 4.11.

Would you mind testing the new wakeup_protocols interface on the nuvoton
please?

cd /sys/class/rc/rc0
echo rc-5 > wakeup_protocols
echo 0xffff > wakeup_filter_mask
echo 0x1e01 > wakeup_filter

(replace as needed)

Thanks!

Sean



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux