PCI: remove PCI_DMA_BUS_IS_PHYS
This was used by the ide, scsi and networking code in the past to determine if they should bounce payloads. Now that the dma mapping always have to support dma to all physical memory (thanks to swiotlb for non-iommu systems) there is no need to this crude hack any more. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Palmer Dabbelt <palmer@sifive.com> (for riscv) Reviewed-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
@@ -14,12 +14,4 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
|
||||
}
|
||||
#endif /* HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ */
|
||||
|
||||
/*
|
||||
* By default, assume that no iommu is in use and that the PCI
|
||||
* space is mapped to address physical 0.
|
||||
*/
|
||||
#ifndef PCI_DMA_BUS_IS_PHYS
|
||||
#define PCI_DMA_BUS_IS_PHYS (1)
|
||||
#endif
|
||||
|
||||
#endif /* _ASM_GENERIC_PCI_H */
|
||||
|
Reference in New Issue
Block a user