Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35863
b: refs/heads/master
c: de68465
h: refs/heads/master
i:
  35861: 5fe339e
  35859: 59a093b
  35855: 78ff09c
v: v3
  • Loading branch information
Muli Ben-Yehuda authored and Andi Kleen committed Sep 26, 2006
1 parent d94c715 commit 99f5e3c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 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: 2ade2920dcefdf5595c6380ebed131c964190855
refs/heads/master: de684652f34f57cb60d4d78d09139a0e0c5e7b1b
14 changes: 10 additions & 4 deletions trunk/arch/x86_64/kernel/pci-calgary.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,19 @@ static void tce_cache_blast(struct iommu_table *tbl);

/* enable this to stress test the chip's TCE cache */
#ifdef CONFIG_IOMMU_DEBUG
int debugging __read_mostly = 1;

static inline void tce_cache_blast_stress(struct iommu_table *tbl)
{
tce_cache_blast(tbl);
}
#else
#else /* debugging is disabled */
int debugging __read_mostly = 0;

static inline void tce_cache_blast_stress(struct iommu_table *tbl)
{
}
#endif /* BLAST_TCE_CACHE_ON_UNMAP */
#endif /* CONFIG_IOMMU_DEBUG */

static inline unsigned int num_dma_pages(unsigned long dma, unsigned int dmalen)
{
Expand Down Expand Up @@ -944,8 +948,10 @@ void __init detect_calgary(void)
if (calgary_found) {
iommu_detected = 1;
calgary_detected = 1;
printk(KERN_INFO "PCI-DMA: Calgary IOMMU detected. "
"TCE table spec is %d.\n", specified_table_size);
printk(KERN_INFO "PCI-DMA: Calgary IOMMU detected.\n");
printk(KERN_INFO "PCI-DMA: Calgary TCE table spec is %d, "
"CONFIG_IOMMU_DEBUG is %s.\n", specified_table_size,
debugging ? "enabled" : "disabled");
}
return;

Expand Down

0 comments on commit 99f5e3c

Please sign in to comment.