Commit 1d51572e authored by Zhang Zekun's avatar Zhang Zekun
Browse files

Revert "iommu/iova: increase the iova_rcache depot max size to 128"

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8KS9A


CVE: NA

---------------------------------------

This reverts commit 0227a749.

Signed-off-by: default avatarZhang Zekun <zhangzekun11@huawei.com>
parent 6ca1b859
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -437,15 +437,5 @@ config SMMU_BYPASS_DEV

	  This feature will be replaced by ACPI IORT RMR node, which will be
	  upstreamed in mainline.
config IOVA_MAX_GLOBAL_MAGS
	int "Set the max iova global magzines in iova rcache"
	range 16 2048
	default "32"
	help
	  Iova rcache global magizine is shared among every cpu. The size of
	  it can be a bottle neck when lots of cpus are contending to use it.
	  If you are suffering from the speed of allocing iova with more than
	  128 cpus, try to tune this config larger.


endif # IOMMU_SUPPORT
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ struct iova_magazine;
struct iova_cpu_rcache;

#define IOVA_RANGE_CACHE_MAX_SIZE 6	/* log of max cached IOVA range size (in pages) */
#define MAX_GLOBAL_MAGS CONFIG_IOVA_MAX_GLOBAL_MAGS	/* magazines per bin */
#define MAX_GLOBAL_MAGS 32	/* magazines per bin */

struct iova_rcache {
	spinlock_t lock;