Parse /soc/dma-ranges to populate the openbsd,dma-constraint property.
authorpatrick <patrick@openbsd.org>
Fri, 9 Jul 2021 20:19:46 +0000 (20:19 +0000)
committerpatrick <patrick@openbsd.org>
Fri, 9 Jul 2021 20:19:46 +0000 (20:19 +0000)
commitcfb73cfe3bddb79e672c758a1708b6b606caef95
treec6b397a5e286859a6d0f9ed80065c12a2e3b3583
parenta986bd3b88c678c8f70a69c57528cec429f57892
Parse /soc/dma-ranges to populate the openbsd,dma-constraint property.
On the MNT Reform, which uses a i.MX8MQ with 4 GB of memory, this makes
sure that we don't allocate DMA buffers above the 32-bit boundary.  As
it turns out the i.MX8MQ's I/O devices are limited to 32-bit addresses.
The i.MX8MP seems to be better in that regard, though at least the USB
controller is still limited.  That's a bit harder to fix in a dynamic
fashion, but we'll take care of that as soon as someone shows up with
an i.MX8MP with that much memory.

ok kettenis@
sys/arch/arm64/stand/efiboot/conf.c
sys/arch/arm64/stand/efiboot/efiboot.c