Skip to contentSkip to conversation

lmb: Add StarFive JH-7110 SoC as requiring DMA below 4G

PATCH In review E Shattow 3 participants 5 messages Sep 29 – Sep 30 Library code

lore
Share & tools
lore

E Shattow

author
#0 lore raw

PATCH 1/1 lmb: Add StarFive JH-7110 SoC as requiring DMA below 4G

Platform drivers and hardware for StarFive JH-7110 SoC are not capable of DMA access above 4GB. This was previously a problem for MMC access then resolved by a workaround, since reverted in a3075db94d49 ("lmb: Reinstate access to memory above ram_top"). The symptom of this is EFI boot failure of GRUB from EFI System Partition on USB MSC with a starfive_visionfive2 board target that has the on-chip Cadence USB, tested with Pine64 Star64.

Restore the workaround with a dependency on LMB_LIMIT_DMA_BELOW_RAM_TOP.

---
 lib/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/Kconfig +1 -1
index 6b6b90bc915c..4bb120c97cbd 100644
@@ -1314,7 +1314,7 @@ config SPL_LMB_ARCH_MEM_MAP
 config LMB_LIMIT_DMA_BELOW_RAM_TOP
 	bool
 	depends on LMB
-	default y if ARCH_BCM283X || ARCH_ROCKCHIP
+	default y if ARCH_BCM283X || ARCH_ROCKCHIP || STARFIVE_JH7110
 	help
 	  Some architectures can not DMA above ram_top boundary,
 	  which is after 4 GiB or 32-bit boundary too. Limit the

base-commit: 369d71b895bc5ce94556d43f05ef9d20084af0d5

Signature · 1 line
2.53.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · E Shattow

Platform drivers and hardware for StarFive JH-7110 SoC are not capable of DMA access above 4GB

4 GiB

Quoted 9 lines

. This was previously a problem for MMC access then
resolved by a workaround, since reverted in a3075db94d49 ("lmb: Reinstate access to memory above ram_top"). The symptom of this is EFI boot failure of GRUB from EFI System Partition on USB MSC with a starfive_visionfive2 board target that has the on-chip Cadence USB, tested with Pine64 Star64.

Restore the workaround with a dependency on LMB_LIMIT_DMA_BELOW_RAM_TOP.

author
#2 lore raw

Hi,

Quoted 5 lines · Marek Vasut
Quoted 2 lines · E Shattow

Platform drivers and hardware for StarFive JH-7110 SoC are not capable of DMA access above 4GB

4 GiB

Yes, I agree.

Quoted 7 lines
Quoted 7 lines

. This was previously a problem for MMC access then
resolved by a workaround, since reverted in a3075db94d49 ("lmb: Reinstate access to memory above ram_top"). The symptom of this is EFI boot failure of GRUB from EFI System Partition on USB MSC with a starfive_visionfive2 board target that has the on-chip Cadence USB, tested with Pine64 Star64.

Quoted 5 lines
Quoted 3 lines

Restore the workaround with a dependency on LMB_LIMIT_DMA_BELOW_RAM_TOP.

Looks good to me as suggested.

Thanks, -E

#3 lore raw
Quoted 10 lines · E Shattow

Hi,

Quoted 5 lines · Marek Vasut
Quoted 2 lines · E Shattow

Platform drivers and hardware for StarFive JH-7110 SoC are not capable of DMA access above 4GB

4 GiB

Yes, I agree.

Fixing as I apply.

Quoted 19 lines
Quoted 8 lines
Quoted 8 lines

. This was previously a problem for MMC access then
resolved by a workaround, since reverted in a3075db94d49 ("lmb: Reinstate access to memory above ram_top"). The symptom of this is EFI boot failure of GRUB from EFI System Partition on USB MSC with a starfive_visionfive2 board target that has the on-chip Cadence USB, tested with Pine64 Star64.

Quoted 5 lines
Quoted 3 lines

Restore the workaround with a dependency on LMB_LIMIT_DMA_BELOW_RAM_TOP.

Looks good to me as suggested.

Thanks, -E

Signature · 1 line
Tom
#4 lore raw
In reply to E Shattow
Quoted 8 lines · E Shattow

Platform drivers and hardware for StarFive JH-7110 SoC are not capable of DMA access above 4GB. This was previously a problem for MMC access then resolved by a workaround, since reverted in a3075db94d49 ("lmb: Reinstate access to memory above ram_top"). The symptom of this is EFI boot failure of GRUB from EFI System Partition on USB MSC with a starfive_visionfive2 board target that has the on-chip Cadence USB, tested with Pine64 Star64.

[...]

Applied to u-boot/main, thanks!

[1/1] lmb: Add StarFive JH-7110 SoC as requiring DMA below 4G
(no commit info)

Signature · 1 line
Tom