projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dfc0c7
)
iommu/vt-d: Use WARN_ON_ONCE instead of BUG_ON in qi_flush_dev_iotlb()
author
Joerg Roedel
<jroedel@suse.de>
Thu, 3 May 2018 13:25:17 +0000
(15:25 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Thu, 3 May 2018 14:32:11 +0000
(16:32 +0200)
A misaligned address is only worth a warning, and not
stopping the while execution path with a BUG_ON().
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dmar.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/dmar.c
b/drivers/iommu/dmar.c
index e4ae6003f4702cee0aaec3d22d0bc239a92a7bdc..460bed4fc5b159ecd12d99a8ea770b0d90369b8a 100644
(file)
--- a/
drivers/iommu/dmar.c
+++ b/
drivers/iommu/dmar.c
@@
-1345,7
+1345,7
@@
void qi_flush_dev_iotlb(struct intel_iommu *iommu, u16 sid, u16 qdep,
struct qi_desc desc;
if (mask) {
-
BUG_ON
(addr & ((1ULL << (VTD_PAGE_SHIFT + mask)) - 1));
+
WARN_ON_ONCE
(addr & ((1ULL << (VTD_PAGE_SHIFT + mask)) - 1));
addr |= (1ULL << (VTD_PAGE_SHIFT + mask - 1)) - 1;
desc.high = QI_DEV_IOTLB_ADDR(addr) | QI_DEV_IOTLB_SIZE;
} else