Skip to content

dmaengine: Use non-atomic bit ops where safe

Peng Fan (OSS) dmaengine imx linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20260903-dma-mask-ddf64d770f7d

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dmaengine: Use non-atomic bit ops for cap_mask manipulationinclude/linux/dmaengine.h+2 -20 replies
2/3dmaengine: imx-sdma: Use non-atomic __set_bit() for event_mask setupdrivers/dma/imx-sdma.c+2 -20 replies
3/3dmaengine: imx-sdma: Use __assign_bit() for ownership configurationdrivers/dma/imx-sdma.c+3 -142 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchFrank Li
1/3
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] dmaengine: Use non-atomic bit ops where safe

dma_cap_set()/dma_cap_clear() and imx-sdma event_mask setup use atomic set_bit()/clear_bit() in contexts where no concurrent access is possible:

- dma_cap_set()/dma_cap_clear() are called exclusively during driver probe, before dma_async_device_register() makes the device visible.
- imx-sdma event_mask[] is zeroed and configured during channel setup while the channel is disabled.

Switch both to non-atomic __set_bit()/__clear_bit() equivalents.

---
Peng Fan (3):
dmaengine: Use non-atomic bit ops for cap_mask manipulation
dmaengine: imx-sdma: Use non-atomic __set_bit() for event_mask setup
dmaengine: imx-sdma: Use __assign_bit() for ownership configuration

 drivers/dma/imx-sdma.c    | 21 +++++----------------
 include/linux/dmaengine.h |  4 ++--
 2 files changed, 7 insertions(+), 18 deletions(-)

---
base-commit: 89c07d98716a13454ec3fd9f97689e812cc71bd4
change-id: 20260903-dma-mask-ddf64d770f7d

Best regards,

Signature · 1 line
Peng Fan <[email protected]>