]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Allow default value of npools used for iommu to be configured from cmdline
authorAllen Pais <allen.pais@oracle.com>
Fri, 2 Dec 2016 08:01:47 +0000 (13:31 +0530)
committerShannon Nelson <shannon.nelson@oracle.com>
Wed, 31 May 2017 23:43:49 +0000 (16:43 -0700)
commitf55a3ae7724f3e40edeba837e877b9ba6bca888e
tree4c24775eeb006d6f59c27457c054183735a53a3f
parented062e6e6f750eaed546e6e54965b0b4fec24d7b
Allow default value of npools used for iommu to be configured from cmdline

    The default value of the number of pools used by the pooled IOMMU
    allocator  in lib/iommu-common.c is a constant today (set at 16).
    It is possible that, for some platforms and some devices, the combination
    of latency and frequency of  iommu alloc/free  requests may be such
    as to trigger fragmentation within a pool, leading to iommu alloc failure.

    Reducing the number of pools (and thus increasing the pool size) can
    minimize the risk of those failures.

    This patch provides a command line hook to set the default number of
    pools at boot time.

 Ported to UEK4

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/kernel/setup_64.c
include/linux/iommu-common.h
lib/iommu-common.c