]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bcm2838_pci.c: Respect DMA limits of controller.
authorMike Karels <karels@FreeBSD.org>
Sat, 12 Sep 2020 23:49:43 +0000 (23:49 +0000)
committerMike Karels <karels@FreeBSD.org>
Sat, 12 Sep 2020 23:49:43 +0000 (23:49 +0000)
commitac89220b05f24948f485f84f67412d677cf1e182
treeebc78b5459d3bc32eaa03b336c54859eab74dae6
parent33fa4ac54f2d794122f8889cc0f10a58025aee6f
bcm2838_pci.c: Respect DMA limits of controller.

Fixes for Raspberry Pi 4B PCIe / USB:
- Pass through a DMA tag for the controller.
- In theory the controller can access the lower 3 GB, but testing found
  that unreliable. OpenBSD also restricts DMA to the lowest 960 MiB.
- Rename some constants to be a bit more meaningful.

Submitted by: Robert Crowston, crowston at protonmail.com
Reviewed by: mkarels, outside reviewers
Differential Revision: https://reviews.freebsd.org/D26344
sys/arm/broadcom/bcm2835/bcm2838_pci.c