Re: [PATCH] clk: exynos: use irqsave version of spin_lock to avoid deadlock with irqs
From: Tomasz Figa
Date: Mon Dec 14 2015 - 06:03:01 EST
Hi Marek,
2015-12-11 23:38 GMT+09:00 Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>:
> It is allowed to enable/disable clocks from interrupts, so common Exynos
> ARM clock management code for CPUfreq should use 'irqsave' version of
> spin_lock calls to avoid potential deadlock caused by spin_lock recursion.
> The same spin_lock is used by gate/mux clocks during enable/disable calls.
>
> This deadlock, can be reproduced by enabling CPUfreq (ondemand or
> userspace) and decoding video with s5p-mfc driver.
Good catch.
Acked-by: Tomasz Figa <tomasz.figa@xxxxxxxxx>
Best regards,
Tomasz
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/