projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c48db4
)
iommu/vt-d: Remove unnecessary WARN_ON()
author
Lu Baolu
<baolu.lu@linux.intel.com>
Tue, 19 Jun 2018 02:49:19 +0000
(10:49 +0800)
committer
Joerg Roedel
<jroedel@suse.de>
Fri, 6 Jul 2018 12:18:20 +0000
(14:18 +0200)
When drivers call intel_svm_available() to check whether the
Shared Virtual Memory(SVM) is supported by the IOMMU driver,
they will get a warning in the kernel message if the SVM is
not supported by the hardware.
[ 3.790876] WARNING: CPU: 0 PID: 267 at drivers/iommu/intel-svm.c:334 intel_svm_bind_mm+0x292/0x570
[ 3.790877] Modules linked in: dsa(+) vfio_mdev mdev vfio_iommu_type1 soundcore vfio serio_raw parport_pc ppdev lp parport autofs4 psmouse virtio_net pata_acpi
[ 3.790884] CPU: 0 PID: 267 Comm: systemd-udevd Not tainted 4.15.0+ #358
[ 3.790885] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
rel-1.11.0-0-g63451fca13
-prebuilt.qemu-project.org 04/01/2014
[ 3.790887] RIP: 0010:intel_svm_bind_mm+0x292/0x570
[ 3.790887] RSP: 0000:
ffffac72c08a3a70
EFLAGS:
00010246
[ 3.790889] RAX:
0000000000000000
RBX:
ffff90447a5160a0
RCX:
0000000000000000
[ 3.790889] RDX:
0000000000000000
RSI:
0000000000000082
RDI:
ffff90447fc16550
[ 3.790890] RBP:
ffff90447a516000
R08:
0000000000000000
R09:
0000000000000178
[ 3.790891] R10:
0000000000000220
R11:
0000000000aaaaaa
R12:
0000000000000000
[ 3.790891] R13:
0000000000000002
R14:
ffffac72c08a3b18
R15:
ffffac72c08a3eb8
[ 3.790893] FS:
00007fb21e85b8c0
(0000) GS:
ffff90447fc00000
(0000) knlGS:
0000000000000000
[ 3.790894] CS: 0010 DS: 0000 ES: 0000 CR0:
0000000080050033
[ 3.790894] CR2:
000055c08167d148
CR3:
000000013a6f4000
CR4:
00000000000006f0
[ 3.790903] DR0:
0000000000000000
DR1:
0000000000000000
DR2:
0000000000000000
[ 3.790904] DR3:
0000000000000000
DR6:
00000000fffe0ff0
DR7:
0000000000000400
This is caused by a unnecessary WARN_ON() in intel_svm_bind_mm().
Hence, remove it.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-svm.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/intel-svm.c
b/drivers/iommu/intel-svm.c
index 45f6e581cd56f63026f50ffed1c2e815f76deff8..2cc0aac932017dd86c783a0fe6a3189b00fb263c 100644
(file)
--- a/
drivers/iommu/intel-svm.c
+++ b/
drivers/iommu/intel-svm.c
@@
-309,7
+309,7
@@
int intel_svm_bind_mm(struct device *dev, int *pasid, int flags, struct svm_dev_
int pasid_max;
int ret;
- if (
WARN_ON(!iommu || !iommu->pasid_table)
)
+ if (
!iommu || !iommu->pasid_table
)
return -EINVAL;
if (dev_is_pci(dev)) {