Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
* [PATCH 00/10] m68k: mcf54415: fix ColdFire edma-related issues
@ 2026-12-01 22:40 Angelo Dureghello
  2026-12-01 22:40 ` [PATCH 01/10] m68k: add DMA global pool config Angelo Dureghello
                   ` (10 more replies)
  0 siblings, 11 replies; 18+ messages in thread
From: Angelo Dureghello @ 2026-12-01 22:40 UTC (permalink / raw)
  To: Geert Uytterhoeven, Greg Ungerer, Vinod Koul, Frank Li,
	Angelo Dureghello, Frank Li
  Cc: linux-m68k, linux-kernel, dmaengine, imx, Angelo Dureghello,
	Sashiko AI Review

Fix a group of Freescale ColdFire edma-related issues.

This patchset has been driven from the following error:

[ 5.520000] fsl-dspi fsl-dspi.0: DMA tx timeout
[ 5.520000] fsl-dspi fsl-dspi.0: DMA transfer failed

A sequence of issues was causing it:
- ColdFire mcf54415 dma support has been disabled since couldn't work
  properly, due to the default ACR registers setup to have a fully
  cacheable (non-coherent) DDR memory,
- as a consequence, fsl-dspi and other drivers using mcf-edma driver are
  not working anymore (error above, and other similar),
- additionally, some other issues preventing edma driver to work has
  been fixed (some reported by Sashiko, except for the last patch of the
  serie).
 
Together, some minor adjustments in the architecture (m68k) area has been
done for the proper "edma fix" purpose. 

Important note:
this patchset has been developed over (and depends from) the patch:
Greg Ungerer <gerg@linux-m68k.org>
m68k: coldfire: fix non-standard readX()/writeX() functions

Link: https://lore.kernel.org/all/20260907134037.1855408-4-gerg@linux-m68k.org/
Signed-off-by: Angelo Dureghello <angelo@kernel-space.org>
---
Angelo Dureghello (10):
      m68k: add DMA global pool config
      m68k: add DMA global pool setup
      m68k: mcf54415: add defines for DMA global pool
      m68k: mcf54415: add DMA global pool initialization
      m68K: mcf54415: rename mcf edma clock name
      m68k: mcf54415: align device name with clock name
      dmaengine: mcf-edma: enable edma clock
      dmaengine: mcf-edma: fix wrong BIT() usage on u64
      dmaengine: mcf-edma: fix wrong error handling
      dmaengine: fsl-edma: fix missing big-endian swap

 arch/m68k/Kconfig.cpu            | 14 +++++++++++++
 arch/m68k/coldfire/Makefile      |  2 ++
 arch/m68k/coldfire/device.c      |  2 +-
 arch/m68k/coldfire/dma.c         | 30 ++++++++++++++++++++++++++++
 arch/m68k/coldfire/head.S        |  5 +++++
 arch/m68k/coldfire/m5441x.c      | 11 ++++++++--
 arch/m68k/include/asm/m54xxacr.h | 21 ++++++++++++++++----
 arch/m68k/mm/kmap.c              |  5 +++++
 drivers/dma/fsl-edma-common.h    |  6 +++---
 drivers/dma/mcf-edma-main.c      | 43 +++++++++++++++++++++++-----------------
 10 files changed, 111 insertions(+), 28 deletions(-)
---
base-commit: 4977160ce4ad297800e5243d1fb4b1d96d66d8fc
change-id: 20261201-wip-ks-stmark2-dma-fix-24a5931bf6d2

Best regards,
--  
Angelo Dureghello <angelo@kernel-space.org>


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2026-12-02 17:05 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 22:40 [PATCH 00/10] m68k: mcf54415: fix ColdFire edma-related issues Angelo Dureghello
2026-12-01 22:40 ` [PATCH 01/10] m68k: add DMA global pool config Angelo Dureghello
2026-12-01 22:40 ` [PATCH 02/10] m68k: add DMA global pool setup Angelo Dureghello
2026-12-01 22:40 ` [PATCH 03/10] m68k: mcf54415: add defines for DMA global pool Angelo Dureghello
2026-12-01 22:40 ` [PATCH 04/10] m68k: mcf54415: add DMA global pool initialization Angelo Dureghello
2026-12-01 22:40 ` [PATCH 05/10] m68K: mcf54415: rename mcf edma clock name Angelo Dureghello
2026-12-01 22:40 ` [PATCH 06/10] m68k: mcf54415: align device name with " Angelo Dureghello
2026-12-01 22:40 ` [PATCH 07/10] dmaengine: mcf-edma: enable edma clock Angelo Dureghello
2026-12-02 16:54   ` Frank Li
2026-12-01 22:40 ` [PATCH 08/10] dmaengine: mcf-edma: fix wrong BIT() usage on u64 Angelo Dureghello
2026-12-02 16:46   ` Frank Li
2026-12-01 22:40 ` [PATCH 09/10] dmaengine: mcf-edma: fix wrong error handling Angelo Dureghello
2026-12-02 16:51   ` Frank Li
2026-12-01 22:40 ` [PATCH 10/10] dmaengine: fsl-edma: fix missing big-endian swap Angelo Dureghello
2026-12-02 17:05   ` Frank Li
2026-12-02  9:26 ` [PATCH 00/10] m68k: mcf54415: fix ColdFire edma-related issues Jean-Michel Hautbois
2026-12-02 12:12   ` Angelo Dureghello
2026-12-02 12:53     ` Jean-Michel Hautbois

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox