diff options
Diffstat (limited to 'arch/alpha/kernel/pci_iommu.c')
-rw-r--r-- | arch/alpha/kernel/pci_iommu.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/arch/alpha/kernel/pci_iommu.c b/arch/alpha/kernel/pci_iommu.c index b9094da05d7a..bfb880af959d 100644 --- a/arch/alpha/kernel/pci_iommu.c +++ b/arch/alpha/kernel/pci_iommu.c | |||
@@ -247,7 +247,7 @@ pci_map_single_1(struct pci_dev *pdev, void *cpu_addr, size_t size, | |||
247 | && paddr + size <= __direct_map_size) { | 247 | && paddr + size <= __direct_map_size) { |
248 | ret = paddr + __direct_map_base; | 248 | ret = paddr + __direct_map_base; |
249 | 249 | ||
250 | DBGA2("pci_map_single: [%p,%lx] -> direct %lx from %p\n", | 250 | DBGA2("pci_map_single: [%p,%zx] -> direct %llx from %p\n", |
251 | cpu_addr, size, ret, __builtin_return_address(0)); | 251 | cpu_addr, size, ret, __builtin_return_address(0)); |
252 | 252 | ||
253 | return ret; | 253 | return ret; |
@@ -258,7 +258,7 @@ pci_map_single_1(struct pci_dev *pdev, void *cpu_addr, size_t size, | |||
258 | if (dac_allowed) { | 258 | if (dac_allowed) { |
259 | ret = paddr + alpha_mv.pci_dac_offset; | 259 | ret = paddr + alpha_mv.pci_dac_offset; |
260 | 260 | ||
261 | DBGA2("pci_map_single: [%p,%lx] -> DAC %lx from %p\n", | 261 | DBGA2("pci_map_single: [%p,%zx] -> DAC %llx from %p\n", |
262 | cpu_addr, size, ret, __builtin_return_address(0)); | 262 | cpu_addr, size, ret, __builtin_return_address(0)); |
263 | 263 | ||
264 | return ret; | 264 | return ret; |
@@ -299,7 +299,7 @@ pci_map_single_1(struct pci_dev *pdev, void *cpu_addr, size_t size, | |||
299 | ret = arena->dma_base + dma_ofs * PAGE_SIZE; | 299 | ret = arena->dma_base + dma_ofs * PAGE_SIZE; |
300 | ret += (unsigned long)cpu_addr & ~PAGE_MASK; | 300 | ret += (unsigned long)cpu_addr & ~PAGE_MASK; |
301 | 301 | ||
302 | DBGA2("pci_map_single: [%p,%lx] np %ld -> sg %lx from %p\n", | 302 | DBGA2("pci_map_single: [%p,%zx] np %ld -> sg %llx from %p\n", |
303 | cpu_addr, size, npages, ret, __builtin_return_address(0)); | 303 | cpu_addr, size, npages, ret, __builtin_return_address(0)); |
304 | 304 | ||
305 | return ret; | 305 | return ret; |
@@ -355,14 +355,14 @@ pci_unmap_single(struct pci_dev *pdev, dma_addr_t dma_addr, size_t size, | |||
355 | && dma_addr < __direct_map_base + __direct_map_size) { | 355 | && dma_addr < __direct_map_base + __direct_map_size) { |
356 | /* Nothing to do. */ | 356 | /* Nothing to do. */ |
357 | 357 | ||
358 | DBGA2("pci_unmap_single: direct [%lx,%lx] from %p\n", | 358 | DBGA2("pci_unmap_single: direct [%llx,%zx] from %p\n", |
359 | dma_addr, size, __builtin_return_address(0)); | 359 | dma_addr, size, __builtin_return_address(0)); |
360 | 360 | ||
361 | return; | 361 | return; |
362 | } | 362 | } |
363 | 363 | ||
364 | if (dma_addr > 0xffffffff) { | 364 | if (dma_addr > 0xffffffff) { |
365 | DBGA2("pci64_unmap_single: DAC [%lx,%lx] from %p\n", | 365 | DBGA2("pci64_unmap_single: DAC [%llx,%zx] from %p\n", |
366 | dma_addr, size, __builtin_return_address(0)); | 366 | dma_addr, size, __builtin_return_address(0)); |
367 | return; | 367 | return; |
368 | } | 368 | } |
@@ -373,9 +373,9 @@ pci_unmap_single(struct pci_dev *pdev, dma_addr_t dma_addr, size_t size, | |||
373 | 373 | ||
374 | dma_ofs = (dma_addr - arena->dma_base) >> PAGE_SHIFT; | 374 | dma_ofs = (dma_addr - arena->dma_base) >> PAGE_SHIFT; |
375 | if (dma_ofs * PAGE_SIZE >= arena->size) { | 375 | if (dma_ofs * PAGE_SIZE >= arena->size) { |
376 | printk(KERN_ERR "Bogus pci_unmap_single: dma_addr %lx " | 376 | printk(KERN_ERR "Bogus pci_unmap_single: dma_addr %llx " |
377 | " base %lx size %x\n", dma_addr, arena->dma_base, | 377 | " base %llx size %x\n", |
378 | arena->size); | 378 | dma_addr, arena->dma_base, arena->size); |
379 | return; | 379 | return; |
380 | BUG(); | 380 | BUG(); |
381 | } | 381 | } |
@@ -394,7 +394,7 @@ pci_unmap_single(struct pci_dev *pdev, dma_addr_t dma_addr, size_t size, | |||
394 | 394 | ||
395 | spin_unlock_irqrestore(&arena->lock, flags); | 395 | spin_unlock_irqrestore(&arena->lock, flags); |
396 | 396 | ||
397 | DBGA2("pci_unmap_single: sg [%lx,%lx] np %ld from %p\n", | 397 | DBGA2("pci_unmap_single: sg [%llx,%zx] np %ld from %p\n", |
398 | dma_addr, size, npages, __builtin_return_address(0)); | 398 | dma_addr, size, npages, __builtin_return_address(0)); |
399 | } | 399 | } |
400 | EXPORT_SYMBOL(pci_unmap_single); | 400 | EXPORT_SYMBOL(pci_unmap_single); |
@@ -444,7 +444,7 @@ try_again: | |||
444 | goto try_again; | 444 | goto try_again; |
445 | } | 445 | } |
446 | 446 | ||
447 | DBGA2("pci_alloc_consistent: %lx -> [%p,%x] from %p\n", | 447 | DBGA2("pci_alloc_consistent: %zx -> [%p,%llx] from %p\n", |
448 | size, cpu_addr, *dma_addrp, __builtin_return_address(0)); | 448 | size, cpu_addr, *dma_addrp, __builtin_return_address(0)); |
449 | 449 | ||
450 | return cpu_addr; | 450 | return cpu_addr; |
@@ -464,7 +464,7 @@ pci_free_consistent(struct pci_dev *pdev, size_t size, void *cpu_addr, | |||
464 | pci_unmap_single(pdev, dma_addr, size, PCI_DMA_BIDIRECTIONAL); | 464 | pci_unmap_single(pdev, dma_addr, size, PCI_DMA_BIDIRECTIONAL); |
465 | free_pages((unsigned long)cpu_addr, get_order(size)); | 465 | free_pages((unsigned long)cpu_addr, get_order(size)); |
466 | 466 | ||
467 | DBGA2("pci_free_consistent: [%x,%lx] from %p\n", | 467 | DBGA2("pci_free_consistent: [%llx,%zx] from %p\n", |
468 | dma_addr, size, __builtin_return_address(0)); | 468 | dma_addr, size, __builtin_return_address(0)); |
469 | } | 469 | } |
470 | EXPORT_SYMBOL(pci_free_consistent); | 470 | EXPORT_SYMBOL(pci_free_consistent); |
@@ -551,7 +551,7 @@ sg_fill(struct device *dev, struct scatterlist *leader, struct scatterlist *end, | |||
551 | out->dma_address = paddr + __direct_map_base; | 551 | out->dma_address = paddr + __direct_map_base; |
552 | out->dma_length = size; | 552 | out->dma_length = size; |
553 | 553 | ||
554 | DBGA(" sg_fill: [%p,%lx] -> direct %lx\n", | 554 | DBGA(" sg_fill: [%p,%lx] -> direct %llx\n", |
555 | __va(paddr), size, out->dma_address); | 555 | __va(paddr), size, out->dma_address); |
556 | 556 | ||
557 | return 0; | 557 | return 0; |
@@ -563,7 +563,7 @@ sg_fill(struct device *dev, struct scatterlist *leader, struct scatterlist *end, | |||
563 | out->dma_address = paddr + alpha_mv.pci_dac_offset; | 563 | out->dma_address = paddr + alpha_mv.pci_dac_offset; |
564 | out->dma_length = size; | 564 | out->dma_length = size; |
565 | 565 | ||
566 | DBGA(" sg_fill: [%p,%lx] -> DAC %lx\n", | 566 | DBGA(" sg_fill: [%p,%lx] -> DAC %llx\n", |
567 | __va(paddr), size, out->dma_address); | 567 | __va(paddr), size, out->dma_address); |
568 | 568 | ||
569 | return 0; | 569 | return 0; |
@@ -589,7 +589,7 @@ sg_fill(struct device *dev, struct scatterlist *leader, struct scatterlist *end, | |||
589 | out->dma_address = arena->dma_base + dma_ofs*PAGE_SIZE + paddr; | 589 | out->dma_address = arena->dma_base + dma_ofs*PAGE_SIZE + paddr; |
590 | out->dma_length = size; | 590 | out->dma_length = size; |
591 | 591 | ||
592 | DBGA(" sg_fill: [%p,%lx] -> sg %lx np %ld\n", | 592 | DBGA(" sg_fill: [%p,%lx] -> sg %llx np %ld\n", |
593 | __va(paddr), size, out->dma_address, npages); | 593 | __va(paddr), size, out->dma_address, npages); |
594 | 594 | ||
595 | /* All virtually contiguous. We need to find the length of each | 595 | /* All virtually contiguous. We need to find the length of each |
@@ -752,7 +752,7 @@ pci_unmap_sg(struct pci_dev *pdev, struct scatterlist *sg, int nents, | |||
752 | 752 | ||
753 | if (addr > 0xffffffff) { | 753 | if (addr > 0xffffffff) { |
754 | /* It's a DAC address -- nothing to do. */ | 754 | /* It's a DAC address -- nothing to do. */ |
755 | DBGA(" (%ld) DAC [%lx,%lx]\n", | 755 | DBGA(" (%ld) DAC [%llx,%zx]\n", |
756 | sg - end + nents, addr, size); | 756 | sg - end + nents, addr, size); |
757 | continue; | 757 | continue; |
758 | } | 758 | } |
@@ -760,12 +760,12 @@ pci_unmap_sg(struct pci_dev *pdev, struct scatterlist *sg, int nents, | |||
760 | if (addr >= __direct_map_base | 760 | if (addr >= __direct_map_base |
761 | && addr < __direct_map_base + __direct_map_size) { | 761 | && addr < __direct_map_base + __direct_map_size) { |
762 | /* Nothing to do. */ | 762 | /* Nothing to do. */ |
763 | DBGA(" (%ld) direct [%lx,%lx]\n", | 763 | DBGA(" (%ld) direct [%llx,%zx]\n", |
764 | sg - end + nents, addr, size); | 764 | sg - end + nents, addr, size); |
765 | continue; | 765 | continue; |
766 | } | 766 | } |
767 | 767 | ||
768 | DBGA(" (%ld) sg [%lx,%lx]\n", | 768 | DBGA(" (%ld) sg [%llx,%zx]\n", |
769 | sg - end + nents, addr, size); | 769 | sg - end + nents, addr, size); |
770 | 770 | ||
771 | npages = iommu_num_pages(addr, size, PAGE_SIZE); | 771 | npages = iommu_num_pages(addr, size, PAGE_SIZE); |