Re: [PATCH v3 10/16] s390: add pci_iomap_range

2015-01-20 Thread Rusty Russell
Sebastian Ott seb...@linux.vnet.ibm.com writes: On Wed, 14 Jan 2015, Michael S. Tsirkin wrote: } -EXPORT_SYMBOL_GPL(pci_iomap); +EXPORT_SYMBOL_GPL(pci_iomap_range); + +void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) +{ +return pci_iomap_range(dev, bar, 0,

Re: [PATCH v3 10/16] s390: add pci_iomap_range

2015-01-16 Thread Sebastian Ott
On Wed, 14 Jan 2015, Michael S. Tsirkin wrote: Virtio drivers should map the part of the range they need, not necessarily all of it. To this end, support mapping ranges within BAR on s390. Since multiple ranges can now be mapped within a BAR, we keep track of the number of mappings created,

[PATCH v3 10/16] s390: add pci_iomap_range

2015-01-14 Thread Michael S. Tsirkin
Virtio drivers should map the part of the range they need, not necessarily all of it. To this end, support mapping ranges within BAR on s390. Since multiple ranges can now be mapped within a BAR, we keep track of the number of mappings created, and only clear out the mapping for a BAR when this