Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154787
b: refs/heads/master
c: 1bf20f0
h: refs/heads/master
i:
  154785: 5231563
  154783: 3e86c75
v: v3
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jun 30, 2009
1 parent 693f093 commit b1b2152
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9051aa0268dc1c3e42cd79a802b0af1f2bfcadae
refs/heads/master: 1bf20f0dc5629032ddd07617139d9fbca66c1642
11 changes: 10 additions & 1 deletion trunk/drivers/pci/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,16 @@ static int __domain_mapping(struct dmar_domain *domain, unsigned long iov_pfn,
/* We don't need lock here, nobody else
* 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++;
if (!nr_pages ||
Expand Down

0 comments on commit b1b2152

Please sign in to comment.