Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32895
b: refs/heads/master
c: 65f87d8
h: refs/heads/master
i:
  32893: 74319f0
  32891: 6545c8c
  32887: 44a0640
  32879: c2812d0
  32863: 7444739
  32831: a910a93
  32767: 5ae4f03
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Jul 30, 2006
1 parent 34ef233 commit 5b717f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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: 355540f3338e1408dac98413f05d612a76d4f5e3
refs/heads/master: 65f87d8a8a6e1b560c61951d0a68ed80f7c8ff19
5 changes: 3 additions & 2 deletions trunk/arch/x86_64/kernel/pci-swiotlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ struct dma_mapping_ops swiotlb_dma_ops = {
void pci_swiotlb_init(void)
{
/* don't initialize swiotlb if iommu=off (no_iommu=1) */
if (!iommu_detected && !no_iommu &&
(end_pfn > MAX_DMA32_PFN || force_iommu))
if (!iommu_detected && !no_iommu && end_pfn > MAX_DMA32_PFN)
swiotlb = 1;
if (swiotlb_force)
swiotlb = 1;
if (swiotlb) {
printk(KERN_INFO "PCI-DMA: Using software bounce buffering for IO (SWIOTLB)\n");
swiotlb_init();
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-x86_64/swiotlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ extern void swiotlb_free_coherent (struct device *hwdev, size_t size,
extern int swiotlb_dma_supported(struct device *hwdev, u64 mask);
extern void swiotlb_init(void);

extern int swiotlb_force;

#ifdef CONFIG_SWIOTLB
extern int swiotlb;
#else
Expand Down

0 comments on commit 5b717f5

Please sign in to comment.