Make sparc64 use scalable lib/iommu-common.c functions
PATCH 2/2 Make sparc64 use scalable lib/iommu-common.c functions
In iperf experiments running linux as the Tx side (TCP client) with 10 threads results in a severe performance drop when TSO is disabled, indicating a weakness in the software that can be avoided by using the scalable IOMMU arena DMA allocation.
Baseline numbers before this patch:
with default settings (TSO enabled) : 9-9.5 Gbps
Disable TSO using ethtool- drops badly: 2-3 Gbps.
After this patch, iperf client with 10 threads, can give a throughput of at least 8.5 Gbps, even when TSO is disabled.
Signed-off-by Sowmini Varadhan <[email protected]>
--- arch/sparc/kernel/pci_impl.h | 7 ++- arch/sparc/kernel/pci_sun4v.c | 201 +++++++++++++++++++---------------------- 2 files changed, 99 insertions(+), 109 deletions(-)
arch/sparc/kernel/pci_impl.h +6 -1
@@ -142,7 +142,12 @@ struct pci_pbm_info {struct strbuf stc;/* IOMMU state, potentially shared by both PBM segments. */ -struct iommu *iommu; +#ifdef notyet +struct iommu_table *iommu; +#else +/* change only pci_sun4v and DMA to use new iommu_table for now */ +void *iommu; +#endif /* Now things for the actual PCI bus probes. */ unsigned int pci_first_busno;
arch/sparc/kernel/pci_sun4v.c +93 -108
408 lines not on this page · raw message
Signature · 1 line
1.7.1