[PATCH master 0/2] mci: sdhci: fix memory corruption on DMA

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Sep 11 05:11:54 PDT 2023

Recent changes to teach SDHCI 64-bit support inadvertently changed
the address used for cache maintenance away from the DMA buffer address
with the result that unrelated cache lines were dropped and memory
corruption. This series fixes this. I must admit I don't understand
how the SDMA boundary mechanism works, so I did not change too much
about it.

Ahmad Fatoum (2):
  mci: sdhci: unmap the DMA buffers actually used
  mci: sdhci: hardcode SDMA boundary for DMA

 drivers/mci/sdhci.c | 9 ++-------
 drivers/mci/sdhci.h | 3 +++
 2 files changed, 5 insertions(+), 7 deletions(-)


More information about the barebox mailing list