Erm... Report the buffer as being bounced even when it's the entire buffer,
or we would end up invalidating the cache line for what we just copied... Reported by: thompsa Pointy at to: cognet MFC after: 3 days
This commit is contained in:
parent
174c989fd9
commit
b979733e86
@ -1168,7 +1168,7 @@ _bus_dma_buf_is_in_bp(bus_dmamap_t map, void *buf, int len)
|
||||
|
||||
STAILQ_FOREACH(bpage, &map->bpages, links) {
|
||||
if ((vm_offset_t)buf >= bpage->datavaddr &&
|
||||
(vm_offset_t)buf + len < bpage->datavaddr +
|
||||
(vm_offset_t)buf + len <= bpage->datavaddr +
|
||||
bpage->datacount)
|
||||
return (1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user