mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Honor the boundary of the busdma tag when allocating bounce pages.
This was fixed in revision 1.5 of alpha/alpha/busdma_machdep.c and was never fixed in other busdma backends using bounce pages.
This commit is contained in:
parent
79501b66a7
commit
4813f72a9b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117129
@ -816,7 +816,7 @@ alloc_bounce_pages(bus_dma_tag_t dmat, u_int numpages)
|
||||
M_NOWAIT, 0ul,
|
||||
dmat->lowaddr,
|
||||
PAGE_SIZE,
|
||||
0);
|
||||
dmat->boundary);
|
||||
mtx_unlock(&Giant);
|
||||
if (bpage->vaddr == 0) {
|
||||
free(bpage, M_DEVBUF);
|
||||
|
@ -818,7 +818,7 @@ alloc_bounce_pages(bus_dma_tag_t dmat, u_int numpages)
|
||||
M_NOWAIT, 0ul,
|
||||
dmat->lowaddr,
|
||||
PAGE_SIZE,
|
||||
0);
|
||||
dmat->boundary);
|
||||
mtx_unlock(&Giant);
|
||||
if (bpage->vaddr == 0) {
|
||||
free(bpage, M_DEVBUF);
|
||||
|
@ -872,7 +872,7 @@ alloc_bounce_pages(bus_dma_tag_t dmat, u_int numpages)
|
||||
M_NOWAIT, 0ul,
|
||||
dmat->lowaddr,
|
||||
PAGE_SIZE,
|
||||
0);
|
||||
dmat->boundary);
|
||||
mtx_unlock(&Giant);
|
||||
if (bpage->vaddr == NULL) {
|
||||
free(bpage, M_DEVBUF);
|
||||
|
Loading…
Reference in New Issue
Block a user