Thread (24 messages) 24 messages, 5 authors, 2025-09-09

Re: [PATCH v3 5/8] mmc: sdhci: add Black Sesame Technologies BST C1200 controller driver

From: "Arnd Bergmann" <arnd@arndb.de>
Date: 2025-08-18 12:08:43
Also in: linux-devicetree, linux-mmc, lkml

On Mon, Aug 18, 2025, at 12:48, Ulf Hansson wrote:
On Tue, 12 Aug 2025 at 14:31, Albert Yang [off-list ref] wrote:
quoted
+       /*
+        * Silicon constraints for BST C1200:
+        * - System RAM base is 0x800000000 (above 32-bit addressable range)
+        * - The eMMC controller DMA engine is limited to 32-bit addressing
+        * - SMMU cannot be used on this path due to hardware design flaws
+        * - These are fixed in silicon and cannot be changed in software
+        *
+        * Bus/controller mapping:
+        * - No registers are available to reprogram the address mapping
+        * - The 32-bit DMA limit is a hard constraint of the controller IP
+        *
+        * Given these constraints, an SRAM-based bounce buffer in the 32-bit
+        * address space is required to enable eMMC DMA on this platform.
+        */
+       err = bst_sdhci_reallocate_bounce_buffer(host);
+       if (err) {
+               dev_err(&pdev->dev, "Failed to allocate bounce buffer: %d\n", err);
+               goto err_remove_host;
+       }
FYI, I will be awaiting a confirmation from Arnd to be with the above
hack, before I queue this up.
The explanations here are clear enough to me,

Acked-by: Arnd Bergmann <arnd@arndb.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help