Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1517280
| From | Christoph Hellwig <hch@lst.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector() |
| Date | 2016-11-08 16:20 +0100 |
| Message-ID | <sBglP-2zG-9@gated-at.bofh.it> (permalink) |
| References | <sB9km-6qe-3@gated-at.bofh.it> <sBg2u-2e5-41@gated-at.bofh.it> <sBgc9-2wv-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Nov 08, 2016 at 04:08:51PM +0100, Hannes Reinecke wrote: > The use-case here is that one needs to feed the MSI-X index into the driver > command structure. While we can extract that number trivially with scsi-mq, > but for scsi-sq we don't have such means. > The main impetus of this RFC is to figure out if such a function would have > a chance of getting upstream, or if I have to continue use cpumaps in the > drivers. There should be no need for a cpumap, nor should there be any need for a lookup. Driver will need the vector index for some admin ops, but it can store it in it's driver-private queue structure (e.g. take a look at the cq_vector field in NVMe). Drivers really should not need this during I/O, but if for some weird reason they do that driver specific field is trivially reachable through the hw_ctx which gets passed to ->queue_rq.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH] pci: add pci_irq_get_affinity_vector() Hannes Reinecke <hare@suse.de> - 2016-11-08 08:50 +0100
Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector() Christoph Hellwig <hch@lst.de> - 2016-11-08 16:00 +0100
Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector() Hannes Reinecke <hare@suse.de> - 2016-11-08 16:10 +0100
Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector() Christoph Hellwig <hch@lst.de> - 2016-11-08 16:20 +0100
Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector() Christoph Hellwig <hch@lst.de> - 2016-11-08 16:30 +0100
Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector() Hannes Reinecke <hare@suse.de> - 2016-11-08 16:30 +0100
Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector() Thomas Gleixner <tglx@linutronix.de> - 2016-11-08 16:00 +0100
csiph-web