Commit 14c74d92 authored by Guo Mengqi's avatar Guo Mengqi Committed by openeuler-sync-bot
Browse files

driver: char: delete svm.c

hulk inclusion
category: other
bugzilla: https://gitee.com/openeuler/kernel/issues/I69JDF


CVE: NA

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

Delete svm driver, as it is specially designed for Hisilicon platform.

Signed-off-by: default avatarGuo Mengqi <guomengqi3@huawei.com>
Reviewed-by: default avatarchenweilong <chenweilong@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
(cherry picked from commit 056e261b)
parent f8f98863
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -3405,7 +3405,6 @@ CONFIG_TCG_TIS_ST33ZP24_I2C=m
CONFIG_TCG_TIS_ST33ZP24_SPI=m
# CONFIG_XILLYBUS is not set
CONFIG_PIN_MEMORY_DEV=m
CONFIG_HISI_SVM=m
# CONFIG_RANDOM_TRUST_CPU is not set
# CONFIG_RANDOM_TRUST_BOOTLOADER is not set
# end of Character devices
+0 −10
Original line number Diff line number Diff line
@@ -478,16 +478,6 @@ config PIN_MEMORY_DEV
	help
	  pin memory driver

config HISI_SVM
	tristate "Hisilicon svm driver"
	depends on ARM64 && ARM_SMMU_V3 && MMU_NOTIFIER
	default m
	help
	  This driver provides character-level access to Hisilicon
	  SVM chipset. Typically, you can bind a task to the
	  svm and share the virtual memory with hisilicon svm device.
	  When in doubt, say "N".

config RANDOM_TRUST_CPU
	bool "Initialize RNG using CPU RNG instructions"
	default y
+0 −1
Original line number Diff line number Diff line
@@ -48,4 +48,3 @@ obj-$(CONFIG_XILLYBUS) += xillybus/
obj-$(CONFIG_POWERNV_OP_PANEL)	+= powernv-op-panel.o
obj-$(CONFIG_ADI)		+= adi.o
obj-$(CONFIG_PIN_MEMORY_DEV)	+= pin_memory.o
obj-$(CONFIG_HISI_SVM)		+= svm.o

drivers/char/svm.c

deleted100644 → 0
+0 −1772

File deleted.

Preview size limit exceeded, changes collapsed.

+2 −0
Original line number Diff line number Diff line
@@ -1479,9 +1479,11 @@ unsigned long __do_mmap_mm(struct mm_struct *mm, struct file *file,
			pkey = 0;
	}

#ifdef CONFIG_ASCEND_FEATURES
	/* Physical address is within 4G */
	if (flags & MAP_PA32BIT)
		vm_flags |= VM_PA32BIT;
#endif

	/* Do simple checking here so the lower-level routines won't have
	 * to. we assume access permissions have been handled by the open