From 9ecd7fdebee03b0d967750443dad9ab34bdee400 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 17 Jul 2018 21:07:53 +0000 Subject: [PATCH] Remove VM_FREELIST_ISADMA. It's not needed on these architectures. Differential Review: https://reviews.freebsd.org/D16290 --- sys/arm64/include/vmparam.h | 14 ++++---------- sys/riscv/include/vmparam.h | 14 ++++---------- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/sys/arm64/include/vmparam.h b/sys/arm64/include/vmparam.h index 7f0e531e25a6..23298839d3d3 100644 --- a/sys/arm64/include/vmparam.h +++ b/sys/arm64/include/vmparam.h @@ -67,10 +67,7 @@ #define VM_PHYSSEG_SPARSE /* - * The number of PHYSSEG entries must be one greater than the number - * of phys_avail entries because the phys_avail entry that spans the - * largest physical address that is accessible by ISA DMA is split - * into two PHYSSEG entries. + * The number of PHYSSEG entries. */ #define VM_PHYSSEG_MAX 64 @@ -85,14 +82,11 @@ #define VM_FREEPOOL_DIRECT 1 /* - * Create two free page lists: VM_FREELIST_DEFAULT is for physical - * pages that are above the largest physical address that is - * accessible by ISA DMA and VM_FREELIST_ISADMA is for physical pages - * that are below that address. + * Create one free page lists: VM_FREELIST_DEFAULT is for all physical + * pages. */ -#define VM_NFREELIST 2 +#define VM_NFREELIST 1 #define VM_FREELIST_DEFAULT 0 -#define VM_FREELIST_ISADMA 1 /* * An allocation size of 16MB is supported in order to optimize the diff --git a/sys/riscv/include/vmparam.h b/sys/riscv/include/vmparam.h index bf0da4daa411..9c9e884cf680 100644 --- a/sys/riscv/include/vmparam.h +++ b/sys/riscv/include/vmparam.h @@ -67,10 +67,7 @@ #define VM_PHYSSEG_SPARSE /* - * The number of PHYSSEG entries must be one greater than the number - * of phys_avail entries because the phys_avail entry that spans the - * largest physical address that is accessible by ISA DMA is split - * into two PHYSSEG entries. + * The number of PHYSSEG entries. */ #define VM_PHYSSEG_MAX 64 @@ -85,14 +82,11 @@ #define VM_FREEPOOL_DIRECT 1 /* - * Create two free page lists: VM_FREELIST_DEFAULT is for physical - * pages that are above the largest physical address that is - * accessible by ISA DMA and VM_FREELIST_ISADMA is for physical pages - * that are below that address. + * Create one free page list: VM_FREELIST_DEFAULT is for all physical + * pages. */ -#define VM_NFREELIST 2 +#define VM_NFREELIST 1 #define VM_FREELIST_DEFAULT 0 -#define VM_FREELIST_ISADMA 1 /* * An allocation size of 16MB is supported in order to optimize the