Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1291114
| From | Tomasz Figa <tomasz.figa@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] clk: exynos: use irqsave version of spin_lock to avoid deadlock with irqs |
| Date | 2015-12-14 12:10 +0100 |
| Message-ID | <qFzaW-5m6-13@gated-at.bofh.it> (permalink) |
| References | <qExbc-5Nm-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Marek, 2015-12-11 23:38 GMT+09:00 Marek Szyprowski <m.szyprowski@samsung.com>: > 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@gmail.com> Best regards, Tomasz -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH] clk: exynos: use irqsave version of spin_lock to avoid deadlock with irqs Tomasz Figa <tomasz.figa@gmail.com> - 2015-12-14 12:10 +0100
csiph-web