On Mon, Aug 05, 2024 at 05:33:09PM +0200, Sebastian Andrzej Siewior wrote: > I'm not sure if making the lock a raw_spinlock_t solves all the > problems. The regmap is regmap_mmio so direct memory-access and looks > simple enough to do so. In regmap_mmio_write() I see clk_enable() and > and this uses a spinlock_t so we should be back at the same problem. The clk_enable() is optional, users simply shouldn't use the internal clock management with devices that it'll cause problems for. > There might be an additional problem if reg-caching is enabled. The flat cache is there mostly for the benefit of things accessed from interrupt context, it guarantees to never do any allocations and doesn't lock. You can also use other caches if you ensure that any registers accessed in interrupt context are already cached so won't trigger any new allocations.
Attachment:
signature.asc
Description: PGP signature
- Follow-Ups:
- Re: [PATCH v1] ASoC: meson: axg-fifo: set option to use raw spinlock
- From: Sebastian Andrzej Siewior
- Re: [PATCH v1] ASoC: meson: axg-fifo: set option to use raw spinlock
- References:
- [PATCH v1] ASoC: meson: axg-fifo: set option to use raw spinlock
- From: Arseniy Krasnov
- Re: [PATCH v1] ASoC: meson: axg-fifo: set option to use raw spinlock
- From: Jerome Brunet
- Re: [PATCH v1] ASoC: meson: axg-fifo: set option to use raw spinlock
- From: Mark Brown
- Re: [PATCH v1] ASoC: meson: axg-fifo: set option to use raw spinlock
- From: Jerome Brunet
- Re: [PATCH v1] ASoC: meson: axg-fifo: set option to use raw spinlock
- From: Mark Brown
- Re: [PATCH v1] ASoC: meson: axg-fifo: set option to use raw spinlock
- From: Jerome Brunet
- Re: [PATCH v1] ASoC: meson: axg-fifo: set option to use raw spinlock
- From: Sebastian Andrzej Siewior
- [PATCH v1] ASoC: meson: axg-fifo: set option to use raw spinlock
- Prev by Date: Re: [PATCH AUTOSEL 6.9 17/40] ASoC: topology: Fix route memory corruption
- Next by Date: Re: [PATCH AUTOSEL 6.9 17/40] ASoC: topology: Fix route memory corruption
- Previous by thread: Re: [PATCH v1] ASoC: meson: axg-fifo: set option to use raw spinlock
- Next by thread: Re: [PATCH v1] ASoC: meson: axg-fifo: set option to use raw spinlock
- Index(es):