]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: bypass iommu to use 64bit address space
authorTushar Dave <tushar.n.dave@oracle.com>
Thu, 7 Jan 2016 23:24:26 +0000 (15:24 -0800)
committerAllen Pais <allen.pais@oracle.com>
Tue, 19 Apr 2016 12:21:01 +0000 (17:51 +0530)
commit34edb40e5e13cba76ad13646d3a1823d877851c6
treef894df7bd112a1702eff999013d4f7ee35ff98b0
parent165050c19535518a2f70856da2fc405b8a73ce7d
sparc64: bypass iommu to use 64bit address space

This patch is internal only not for UPSTREAM. This is a temporary
workaround based on UEK2 commit c1a12ed1d125
("sparc64: enable iommu bypass workaround for IB. This is temporary.")

Current design of sparc iommu is based on iommu V1 APIs which at max
can have 2G/8K DMA addresses. Due to this, kernel entity (e.g. i40e,
PSIF) requesting more than 2G/8K DMA addresses does not work at all.
This patch adds temporary workaround to remedy this issue by bypassing
iommu.

When 64bit iommu implementation is complete, this workaround will be
reverted.

Orabug: 21149316
Signed-off-by: Tushar Dave <tushar.n.dave@oracle.com>
(cherry picked from commit d751c5e1e6575b1dc119383045ba488e0d30de4d)
(cherry picked from commit 2ecc8426003036609fc447c3cf2dcf54139770cf)
arch/sparc/Kconfig
arch/sparc/kernel/iommu.c
arch/sparc/kernel/pci_sun4v.c
arch/sparc/kernel/pci_sun4v.h
arch/sparc/kernel/pci_sun4v_asm.S