[PATCH] remove tce_cache_blast_stress()
tce_cache_blast_stress was useful during bringup to stress the IOMMU's cache flushing. Now that we quiesce DMAs on every cache flush, using _stress() brings the machine down to its knees once you put it under load. Remove this debug / bringup code that isn't useful anymore completely. Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com> Signed-off-by: Jon Mason <jdmason@us.ibm.com> Signed-off-by: Andi Kleen <ak@suse.de>
This commit is contained in:
parent
796e4390e0
commit
4ccf4ae314
|
@ -129,11 +129,6 @@ static void tce_cache_blast(struct iommu_table *tbl);
|
||||||
#ifdef CONFIG_IOMMU_DEBUG
|
#ifdef CONFIG_IOMMU_DEBUG
|
||||||
int debugging __read_mostly = 1;
|
int debugging __read_mostly = 1;
|
||||||
|
|
||||||
static inline void tce_cache_blast_stress(struct iommu_table *tbl)
|
|
||||||
{
|
|
||||||
tce_cache_blast(tbl);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline unsigned long verify_bit_range(unsigned long* bitmap,
|
static inline unsigned long verify_bit_range(unsigned long* bitmap,
|
||||||
int expected, unsigned long start, unsigned long end)
|
int expected, unsigned long start, unsigned long end)
|
||||||
{
|
{
|
||||||
|
@ -153,10 +148,6 @@ static inline unsigned long verify_bit_range(unsigned long* bitmap,
|
||||||
#else /* debugging is disabled */
|
#else /* debugging is disabled */
|
||||||
int debugging __read_mostly = 0;
|
int debugging __read_mostly = 0;
|
||||||
|
|
||||||
static inline void tce_cache_blast_stress(struct iommu_table *tbl)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline unsigned long verify_bit_range(unsigned long* bitmap,
|
static inline unsigned long verify_bit_range(unsigned long* bitmap,
|
||||||
int expected, unsigned long start, unsigned long end)
|
int expected, unsigned long start, unsigned long end)
|
||||||
{
|
{
|
||||||
|
@ -289,8 +280,6 @@ static void __iommu_free(struct iommu_table *tbl, dma_addr_t dma_addr,
|
||||||
}
|
}
|
||||||
|
|
||||||
__clear_bit_string(tbl->it_map, entry, npages);
|
__clear_bit_string(tbl->it_map, entry, npages);
|
||||||
|
|
||||||
tce_cache_blast_stress(tbl);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void iommu_free(struct iommu_table *tbl, dma_addr_t dma_addr,
|
static void iommu_free(struct iommu_table *tbl, dma_addr_t dma_addr,
|
||||||
|
|
Loading…
Reference in New Issue