public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Configuring DMA threshold value for DW-MMC controllers
@ 2026-04-11 19:43 Kaustabh Chakraborty
  2026-04-11 19:43 ` [PATCH 1/2] dt-bindings: mmc: dw-mshc-common: add option for configuring DMA threshold Kaustabh Chakraborty
  2026-04-11 19:43 ` [PATCH 2/2] mmc: dw_mmc: implement " Kaustabh Chakraborty
  0 siblings, 2 replies; 4+ messages in thread
From: Kaustabh Chakraborty @ 2026-04-11 19:43 UTC (permalink / raw)
  To: Ulf Hansson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Jaehoon Chung, Shawn Lin
  Cc: linux-mmc, devicetree, linux-kernel, Kaustabh Chakraborty

In Samsung Exynos 7870 devices with Broadcom Wi-Fi, it has been observed
that small sized DMA transfers are unreliable and are not written
properly, which renders the cache incoherent.

Experimental observations say that DMA transfer sizes of somewhere
around 64 to 512 are intolerable. We must thus implement a mechanism to
fall back to PIO transfer in this case. One such approach, which this
series implements is allowing the DMA transfer threshold, which is
already defined in the driver, to be configurable.

Note that this patch is likely to be labelled as a workaround. These
smaller transfers seem to be successful from downstream kernels,
however efforts to figure out how so went in vain. It is also very
possible that the downstream Broadcom Wi-Fi SDIO driver uses PIO
transfers as well.

Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
---
Kaustabh Chakraborty (2):
      dt-bindings: mmc: dw-mshc-common: add option for configuring DMA threshold
      mmc: dw_mmc: implement option for configuring DMA threshold

 .../devicetree/bindings/mmc/synopsys-dw-mshc-common.yaml          | 8 ++++++++
 drivers/mmc/host/dw_mmc.c                                         | 6 ++++--
 drivers/mmc/host/dw_mmc.h                                         | 1 +
 3 files changed, 13 insertions(+), 2 deletions(-)
---
base-commit: 66672af7a095d89f082c5327f3b15bc2f93d558e
change-id: 20260412-dwmmc-dma-thr-1090d8285ea7

Best regards,
-- 
Kaustabh Chakraborty <kauschluss@disroot.org>


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

end of thread, other threads:[~2026-04-11 20:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-11 19:43 [PATCH 0/2] Configuring DMA threshold value for DW-MMC controllers Kaustabh Chakraborty
2026-04-11 19:43 ` [PATCH 1/2] dt-bindings: mmc: dw-mshc-common: add option for configuring DMA threshold Kaustabh Chakraborty
2026-04-11 20:27   ` Krzysztof Kozlowski
2026-04-11 19:43 ` [PATCH 2/2] mmc: dw_mmc: implement " Kaustabh Chakraborty

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