projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
759ce23
)
iommu/amd: Warn only once on unexpected pte value
author
Joerg Roedel
<jroedel@suse.de>
Mon, 21 Dec 2015 11:50:54 +0000
(12:50 +0100)
committer
Joerg Roedel
<jroedel@suse.de>
Mon, 28 Dec 2015 16:18:50 +0000
(17:18 +0100)
This prevents possible flooding of the kernel log.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/amd_iommu.c
b/drivers/iommu/amd_iommu.c
index 8b2be1e7714f8bb7aa1d62193d3b3320fab64414..3cdfac6024a57470a17c7a3f30d019608e0f18df 100644
(file)
--- a/
drivers/iommu/amd_iommu.c
+++ b/
drivers/iommu/amd_iommu.c
@@
-2328,7
+2328,7
@@
static dma_addr_t dma_ops_domain_map(struct dma_ops_domain *dom,
else if (direction == DMA_BIDIRECTIONAL)
__pte |= IOMMU_PTE_IR | IOMMU_PTE_IW;
- WARN_ON(*pte);
+ WARN_ON
_ONCE
(*pte);
*pte = __pte;
@@
-2357,7
+2357,7
@@
static void dma_ops_domain_unmap(struct dma_ops_domain *dom,
pte += PM_LEVEL_INDEX(0, address);
- WARN_ON(!*pte);
+ WARN_ON
_ONCE
(!*pte);
*pte = 0ULL;
}