summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/tests
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2017-05-27 07:47:52 +0000
committerhselasky <hselasky@FreeBSD.org>2017-05-27 07:47:52 +0000
commit6181e9a69342927c6b1d10bc6a0aff8386ac9e38 (patch)
tree06f328920b5cbeb584715c3f8a41eaf7aedc42b2 /lib/libkvm/tests
parentb9167d33a12b8a6c279be9cd1005874728e808c9 (diff)
downloadFreeBSD-src-6181e9a69342927c6b1d10bc6a0aff8386ac9e38.zip
FreeBSD-src-6181e9a69342927c6b1d10bc6a0aff8386ac9e38.tar.gz
MFC r318353:
Avoid use of contiguous memory allocations in busdma when possible. This patch improves the boundary checks in busdma to allow more cases using the regular page based kernel memory allocator. Especially in the case of having a non-zero boundary in the parent DMA tag. For example AMD64 based platforms set the PCI DMA tag boundary to PCI_DMA_BOUNDARY, 4GB, which before this patch caused contiguous memory allocations to be preferred when allocating more than PAGE_SIZE bytes. Even if the required alignment was less than PAGE_SIZE bytes. This patch also fixes the nsegments check for using kmem_alloc_attr() when the maximum segment size is less than PAGE_SIZE bytes. Updated some comments describing the code in question. Differential Revision: https://reviews.freebsd.org/D10645 Reviewed by: kib, jhb, gallatin, scottl Sponsored by: Mellanox Technologies
Diffstat (limited to 'lib/libkvm/tests')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud