• Alex Williamson's avatar
    [IA64, X86_64] fix swiotlb sizing · e8579e72
    Alex Williamson authored
       Fix swiotlb sizing to match what the comments and the kernel
    parameters documentation indicate.  Given a default 16k page size kernel
    (ia64) and a 2k swiotlb page size, we're off by a multiple of 8 trying
    to size the swiotlb.  When specified on the boot line, the swiotlb is
    made 8x bigger than requested.  When left to the default value, it's 8x
    smaller than the comments indicate.  For x86_64 the multiplier would be
    2x.  The patch below fixes this.  Now, what's a good default swiotlb
    size?  Apparently we don't really need 64MB.
    Signed-off-by: default avatarAlex Williamson <alex.williamson@hp.com>
    Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
    e8579e72
swiotlb.c 18.1 KB