mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +00:00
i386/PAE busdma: allow more bounce pages.
If i386 has more than 4G of memory, allow the same number of busdma bounce pages as for amd64. In fact, in this case bouncing sometimes is much heavier than on amd64. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D18854
This commit is contained in:
parent
957b9bbf3c
commit
8f0916fc11
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343147
@ -57,7 +57,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <x86/include/busdma_impl.h>
|
||||
|
||||
#ifdef __i386__
|
||||
#define MAX_BPAGES 512
|
||||
#define MAX_BPAGES (Maxmem > atop(0x100000000ULL) ? 8192 : 512)
|
||||
#else
|
||||
#define MAX_BPAGES 8192
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user