Skip to content
Commit 65549eba authored by Peter Swain's avatar Peter Swain Committed by Ruiqiang Hao
Browse files

mmc: octeontx2: fix swiotlb buffer is full



commit 1d1147d65f3198d01c3c4c6e213d0c4dae7aa082 from
git@git.assembla.com:cavium/WindRiver.linux.git

When using iommu.passthrough=1, the maximum dma size is
limited by swiotlb size.  OcteonTX platforms do not need
swiotlb, but iommu-passthru (a useful development option)
forces it.  So adapt the size cap from Yoshihiro Shimoda's
commit e90e8da7 ("mmc: tmio: fix swiotlb buffer is full").

Passthru reduces peak i/o rate on large requests, but could
improve random filesystem performance slightly on some loads
(hdparm -t down ~5%, mke2fs up ~15%)

To get back some of that performance loss, the irqs are
specified as non-threaded, as the persistent state is all
contained in host->current_req, so no thread context needed.

Signed-off-by: default avatarPeter Swain <pswain@marvell.com>

Change-Id: I256729f8ff0ef194e6c57dda000c7341cac446f4
Reviewed-on: https://sj1git1.cavium.com/3944


Reviewed-by: default avatarChandrakala Chavva <Chandrakala.Chavva@cavium.com>
Reviewed-by: default avatarSunil Kovvuri Goutham <Sunil.Goutham@cavium.com>
Signed-off-by: default avatarSujeet Baranwal <sbaranwal@marvell.com>
Reviewed-on: https://sj1git1.cavium.com/8550


Tested-by: default avatarSunil Kovvuri Goutham <Sunil.Goutham@cavium.com>
Reviewed-by: default avatarChandrakala Chavva <cchavva@marvell.com>
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/26912


Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent 43205f61
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment