]> git.baikalelectronics.ru Git - kernel.git/commit
s390: add pci_iomap_range
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 29 May 2013 02:22:21 +0000 (11:52 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Jan 2015 05:58:49 +0000 (16:28 +1030)
commitc0442c6b671250eea17a75853998e9d1d0eac0d4
tree8e9941de0e82da7d4f49856c6134d50173a05bab
parentbcf66b6cbe7ab6318be7affe716b2b257bc21df6
s390: add pci_iomap_range

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 number reaches 0.

Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org
Tested-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
arch/s390/include/asm/pci_io.h
arch/s390/pci/pci.c