mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Allocate the DMA memory shared between the host and the controller as
coherent. MFC after: 2 weeks
This commit is contained in:
parent
a1dd7a55b0
commit
006aaeeadf
1 changed files with 4 additions and 4 deletions
|
|
@ -1317,8 +1317,8 @@ xl_attach(device_t dev)
|
|||
}
|
||||
|
||||
error = bus_dmamem_alloc(sc->xl_ldata.xl_rx_tag,
|
||||
(void **)&sc->xl_ldata.xl_rx_list, BUS_DMA_NOWAIT | BUS_DMA_ZERO,
|
||||
&sc->xl_ldata.xl_rx_dmamap);
|
||||
(void **)&sc->xl_ldata.xl_rx_list, BUS_DMA_NOWAIT |
|
||||
BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc->xl_ldata.xl_rx_dmamap);
|
||||
if (error) {
|
||||
device_printf(dev, "no memory for rx list buffers!\n");
|
||||
bus_dma_tag_destroy(sc->xl_ldata.xl_rx_tag);
|
||||
|
|
@ -1349,8 +1349,8 @@ xl_attach(device_t dev)
|
|||
}
|
||||
|
||||
error = bus_dmamem_alloc(sc->xl_ldata.xl_tx_tag,
|
||||
(void **)&sc->xl_ldata.xl_tx_list, BUS_DMA_NOWAIT | BUS_DMA_ZERO,
|
||||
&sc->xl_ldata.xl_tx_dmamap);
|
||||
(void **)&sc->xl_ldata.xl_tx_list, BUS_DMA_NOWAIT |
|
||||
BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc->xl_ldata.xl_tx_dmamap);
|
||||
if (error) {
|
||||
device_printf(dev, "no memory for list buffers!\n");
|
||||
bus_dma_tag_destroy(sc->xl_ldata.xl_tx_tag);
|
||||
|
|
|
|||
Loading…
Reference in a new issue