devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] mmc: xenon: Fix 2G DMA limitation on AC5 SoC
@ 2022-11-30 13:37 Vadym Kochan
  2022-11-30 13:37 ` [PATCH v2 1/3] dt-bindings: mmc: xenon: Add compatible string for " Vadym Kochan
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Vadym Kochan @ 2022-11-30 13:37 UTC (permalink / raw)
  To: Hu Ziji, Ulf Hansson, Rob Herring, Krzysztof Kozlowski,
	Adrian Hunter, linux-mmc, devicetree, linux-kernel
  Cc: Elad Nachman, Chris Packham, Vadym Kochan

There is a limitation on AC5 SoC that mmc controller
can't have DMA access over 2G memory, so use SDMA with
a bounce buffer. Swiotlb can't help because on arm64 arch
it reserves memblock's at the end of the memory.

Additionally set mask to 34 bit since on AC5 SoC RAM starts
at 0x2_00000000.

Also add compatible string for AC5 SoC.

v2:
   #1 Add compatible string for dt-bindings

   #2 Use SDMA with a bounce buffer instead of PIO.

Vadym Kochan (3):
  dt-bindings: mmc: xenon: Add compatible string for AC5 SoC
  mmc: sdhci: Export sdhci_set_dma_mask to be used by the drivers
  mmc: xenon: Fix 2G limitation on AC5 SoC

 .../bindings/mmc/marvell,xenon-sdhci.yaml     |  1 +
 drivers/mmc/host/sdhci-xenon.c                | 38 +++++++++++++++++++
 drivers/mmc/host/sdhci-xenon.h                |  3 +-
 drivers/mmc/host/sdhci.c                      |  2 +-
 drivers/mmc/host/sdhci.h                      |  2 +
 5 files changed, 44 insertions(+), 2 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2022-12-01  6:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-30 13:37 [PATCH v2 0/3] mmc: xenon: Fix 2G DMA limitation on AC5 SoC Vadym Kochan
2022-11-30 13:37 ` [PATCH v2 1/3] dt-bindings: mmc: xenon: Add compatible string for " Vadym Kochan
2022-11-30 15:06   ` Krzysztof Kozlowski
2022-11-30 13:37 ` [PATCH v2 2/3] mmc: sdhci: Export sdhci_set_dma_mask to be used by the drivers Vadym Kochan
2022-11-30 13:37 ` [PATCH v2 3/3] mmc: xenon: Fix 2G limitation on AC5 SoC Vadym Kochan
2022-11-30 22:09   ` kernel test robot
2022-12-01  6:24   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).