Skip to content
Commit 238e623e authored by Peter Swain's avatar Peter Swain Committed by Kevin Hao
Browse files

mmc: cavium: fix swiotlb buffer is full



commit 43cd07f68ff2ed82ccb6328262c4c44bf5adbbd5 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>
Signed-off-by: default avatarKevin Hao <kexin.hao@windriver.com>
parent 38723005
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