Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/broadcom The DMA range doesn't cover all of mem...



details:   https://anonhg.NetBSD.org/src/rev/6e969c1d0c2f
branches:  trunk
changeset: 1006068:6e969c1d0c2f
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Jan 01 09:35:50 2020 +0000

description:
The DMA range doesn't cover all of memory on the bcm2711 (rpi4) - it
covers (most of) the first 1GB.

diffstat:

 sys/arch/arm/broadcom/bcm283x_platform.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r a7f9f9ffc702 -r 6e969c1d0c2f sys/arch/arm/broadcom/bcm283x_platform.c
--- a/sys/arch/arm/broadcom/bcm283x_platform.c  Wed Jan 01 09:33:19 2020 +0000
+++ b/sys/arch/arm/broadcom/bcm283x_platform.c  Wed Jan 01 09:35:50 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcm283x_platform.c,v 1.32 2019/12/31 08:01:19 skrll Exp $      */
+/*     $NetBSD: bcm283x_platform.c,v 1.33 2020/01/01 09:35:50 skrll Exp $      */
 
 /*-
  * Copyright (c) 2017 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm283x_platform.c,v 1.32 2019/12/31 08:01:19 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm283x_platform.c,v 1.33 2020/01/01 09:35:50 skrll Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_bcm283x.h"
@@ -109,6 +109,7 @@
 #endif
 
 #define RPI_CPU_MAX    4
+#define BCM2711_DMA_SIZE       0x3c000000
 
 void bcm2835_platform_early_putchar(char c);
 void bcm2836_platform_early_putchar(char c);
@@ -1352,7 +1353,7 @@
 
        bcm2835_bus_dma_tag._ranges = bcm2711_dma_ranges;
        bcm2835_bus_dma_tag._nranges = __arraycount(bcm2711_dma_ranges);
-       bcm2711_dma_ranges[0].dr_len = bcm283x_memorysize;
+       bcm2711_dma_ranges[0].dr_len = BCM2711_DMA_SIZE;
 }
 #endif
 



Home | Main Index | Thread Index | Old Index