Commit 1bf20f0d authored by David Woodhouse's avatar David Woodhouse

intel-iommu: dump mappings but don't die on pte already set

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 9051aa02
...@@ -1673,7 +1673,16 @@ static int __domain_mapping(struct dmar_domain *domain, unsigned long iov_pfn, ...@@ -1673,7 +1673,16 @@ static int __domain_mapping(struct dmar_domain *domain, unsigned long iov_pfn,
/* We don't need lock here, nobody else /* We don't need lock here, nobody else
* touches the iova range * touches the iova range
*/ */
BUG_ON(dma_pte_addr(pte)); if (unlikely(dma_pte_addr(pte))) {
static int dumps = 5;
printk(KERN_CRIT "ERROR: DMA PTE for vPFN 0x%lx already set (to %llx)\n",
iov_pfn, pte->val);
if (dumps) {
dumps--;
debug_dma_dump_mappings(NULL);
}
WARN_ON(1);
}
pte->val = pteval; pte->val = pteval;
pte++; pte++;
if (!nr_pages || if (!nr_pages ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment