dwmshc on rockchips don't support dma crossy 128M boundaries.
authordlg <dlg@openbsd.org>
Wed, 19 Apr 2023 02:01:02 +0000 (02:01 +0000)
committerdlg <dlg@openbsd.org>
Wed, 19 Apr 2023 02:01:02 +0000 (02:01 +0000)
commit834ff46cdc127050471ec5871d62421e559b5881
tree9ee5af8b1d3ef41aa2f68ef6c0c1dae7c84c1958
parent10d2c6b32ad1ecf5e27987d46d46acbd2994a396
dwmshc on rockchips don't support dma crossy 128M boundaries.

let controllers pass the dma boundaries to sdmmc as part of the
attach args so it can be used for the bus_dmamap_create. add the
boundary to sdhci so dwmshc can set it to be bassed to sdmmc.

tested on a radxa e25 booting and rooting off the onboard emmc.
before this diff some programs would fault with weird instructions.
sys/dev/fdt/dwmshc.c
sys/dev/sdmmc/sdhc.c
sys/dev/sdmmc/sdhcvar.h
sys/dev/sdmmc/sdmmc.c
sys/dev/sdmmc/sdmmcchip.h