Pass more reasonable WAIT flags to bus_dma(9) calls.

MFC after:	2 weeks
This commit is contained in:
Alexander Motin 2019-11-14 04:39:48 +00:00
parent 7f215e071e
commit 3eb70a09f4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354703

View File

@ -555,13 +555,14 @@ ioat3_attach(device_t device)
&ioat->comp_update_tag);
error = bus_dmamem_alloc(ioat->comp_update_tag,
(void **)&ioat->comp_update, BUS_DMA_ZERO, &ioat->comp_update_map);
(void **)&ioat->comp_update, BUS_DMA_ZERO | BUS_DMA_WAITOK,
&ioat->comp_update_map);
if (ioat->comp_update == NULL)
return (ENOMEM);
error = bus_dmamap_load(ioat->comp_update_tag, ioat->comp_update_map,
ioat->comp_update, sizeof(uint64_t), ioat_comp_update_map, ioat,
0);
BUS_DMA_NOWAIT);
if (error != 0)
return (error);
@ -582,7 +583,7 @@ ioat3_attach(device_t device)
return (error);
error = bus_dmamap_load(ioat->hw_desc_tag, ioat->hw_desc_map, hw_desc,
ringsz, ioat_dmamap_cb, &ioat->hw_desc_bus_addr, BUS_DMA_WAITOK);
ringsz, ioat_dmamap_cb, &ioat->hw_desc_bus_addr, BUS_DMA_NOWAIT);
if (error)
return (error);