From c4eb6273a63be35f1138434c92dd98260616aa88 Mon Sep 17 00:00:00 2001 From: kettenis Date: Mon, 6 Jun 2022 10:50:56 +0000 Subject: [PATCH] The StarFive JH7100 SoC has peripherals that only support 32-bit DMA (in particular the dwmmc(4) and dwge(4) devices; there may be more). ok jsg@ --- sys/arch/riscv64/stand/efiboot/efiboot.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/riscv64/stand/efiboot/efiboot.c b/sys/arch/riscv64/stand/efiboot/efiboot.c index 561bf6952ca..fc94f6fd19f 100644 --- a/sys/arch/riscv64/stand/efiboot/efiboot.c +++ b/sys/arch/riscv64/stand/efiboot/efiboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: efiboot.c,v 1.4 2022/03/22 10:33:50 kettenis Exp $ */ +/* $OpenBSD: efiboot.c,v 1.5 2022/06/06 10:50:56 kettenis Exp $ */ /* * Copyright (c) 2015 YASUOKA Masahiko @@ -466,10 +466,10 @@ efi_dma_constraint(void) { void *node; - /* Raspberry Pi 4 is "special". */ + /* StarFive JH7100 has peripherals that only support 32-bit DMA. */ node = fdt_find_node("/"); - if (fdt_node_is_compatible(node, "brcm,bcm2711")) - dma_constraint[1] = htobe64(0x3bffffff); + if (fdt_node_is_compatible(node, "starfive,jh7100")) + dma_constraint[1] = htobe64(0xffffffff); /* Pass DMA constraint. */ node = fdt_find_node("/chosen"); -- 2.20.1