Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1239207

[PATCH v3 0/3] uio: add MSI/MSI-X support to uio_pci_generic driver

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Vlad Zolotarov <vladz@cloudius-systems.com>
Newsgroups linux.kernel
Subject [PATCH v3 0/3] uio: add MSI/MSI-X support to uio_pci_generic driver
Date Sun, 04 Oct 2015 22:40:01 +0200
Message-ID <qfYeB-2GC-1@gated-at.bofh.it> (permalink)
X-Original-To linux-kernel@vger.kernel.org, mst@redhat.com, hjk@hansjkoch.de, regkh@linuxfoundation.org, corbet@lwn.net
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=G8tXZXLCQD3geiEtu5R2cxx3bE9h3pDK/pPb2cOYoL0=; b=E7ToTn0E5aP3CWR0++R+dYHFtB4mujgvYYt5mq6h/DQXqmu9AZWDhSjIdvcihQm0Rk 8LJ8TbHIeEf+n1WU2T122zFXgv9tCxYkIMFNdbnKI/+BjeEKZzAmwraZpNEC00pG/SdU NCZvKfDVQTEnlNRlSH+MoB0M8RQKsNEbCb8H185JLzqmhtqlkMZMyiq+/0GgwGJSUIk3 Zahc2UjrIPA7raN5aGsPrgb2PtsOzEce9bPdhPKjtuKF6Jm/ak/2WeEZ1lrsXwoEq4Bo G0vGnBsUdOVob06a4e8xcB2FB0S7alomDiYIRfmq2P/dfM6z68uCbu8BL9MHkxDfF7vx zfaw==
X-Gm-Message-State ALoCoQk1mUwnJIzNBuXvfdY2upcfjiHT/XUm/DxwzmgtpTV4NYxDtPTR3rPW+JZH8vlYZP5Ad/Eo
X-Received by 10.180.105.135 with SMTP id gm7mr7423247wib.18.1443991156346; Sun, 04 Oct 2015 13:39:16 -0700 (PDT)
X-Mailer git-send-email 2.1.0
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 42
Organization linux.* mail to news gateway
X-Original-Cc bruce.richardson@intel.com, avi@cloudius-systems.com, gleb@cloudius-systems.com, stephen@networkplumber.org, alexander.duyck@gmail.com, Vlad Zolotarov <vladz@cloudius-systems.com>
X-Original-Date Sun, 4 Oct 2015 23:39:08 +0300
X-Original-Message-ID <1443991151-21575-1-git-send-email-vladz@cloudius-systems.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1239207

Show key headers only | View raw


This series add support for MSI and MSI-X interrupts to uio_pci_generic driver.
 
Currently uio_pci_generic supports only legacy INT#x interrupts source. However
there are situations when this is not enough, for instance SR-IOV VF devices that
simply don't have INT#x capability. For such devices uio_pci_generic will simply
fail (more specifically probe() will fail).
 
When IOMMU is either not available (e.g. Amazon EC2) or not acceptable due to performance
overhead and thus VFIO is not an option users that develop user-space drivers are left
without any option but to develop some proprietary UIO drivers (e.g. igb_uio driver in Intel's
DPDK) just to be able to use UIO infrastructure.
 
This series provides a generic solution for this problem while preserving the original behaviour
for devices for which the original uio_pci_generic had worked before (i.e. INT#x will be used by default).

New in v3:
   - Add __iomem qualifier to temp buffer receiving ioremap value.  

New in v2:
   - Added #include <linux/uaccess.h> to uio_pci_generic.c

Vlad Zolotarov (3):
  uio: add ioctl support
  uio_pci_generic: add MSI/MSI-X support
  Documentation: update uio-howto

 Documentation/DocBook/uio-howto.tmpl |  29 ++-
 drivers/uio/uio.c                    |  15 ++
 drivers/uio/uio_pci_generic.c        | 410 +++++++++++++++++++++++++++++++++--
 include/linux/uio_driver.h           |   3 +
 include/linux/uio_pci_generic.h      |  36 +++
 5 files changed, 467 insertions(+), 26 deletions(-)
 create mode 100644 include/linux/uio_pci_generic.h

-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 0/3] uio: add MSI/MSI-X support to uio_pci_generic driver Vlad Zolotarov <vladz@cloudius-systems.com> - 2015-10-04 22:40 +0200
  [PATCH v3 3/3] Documentation: update uio-howto Vlad Zolotarov <vladz@cloudius-systems.com> - 2015-10-04 22:40 +0200
  [PATCH v3 2/3] uio_pci_generic: add MSI/MSI-X support Vlad Zolotarov <vladz@cloudius-systems.com> - 2015-10-04 22:40 +0200

csiph-web