From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Don Brace To: Keith Busch , Linux NVMe , Linux Block CC: Christoph Hellwig , Sagi Grimberg , Jianchao Wang , Ming Lei , Jens Axboe , "qla2xxx-upstream@qlogic.com" , "linux-scsi@vger.kernel.org" Subject: RE: [PATCH 1/3] blk-mq: Allow PCI vector offset for mapping queues Date: Wed, 28 Mar 2018 14:48:46 +0000 Message-ID: References: <20180327153908.3732-1-keith.busch@intel.com> In-Reply-To: <20180327153908.3732-1-keith.busch@intel.com> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Return-Path: don.brace@microsemi.com List-ID: > -----Original Message----- > From: linux-scsi-owner@vger.kernel.org [mailto:linux-scsi- > owner@vger.kernel.org] On Behalf Of Keith Busch > Sent: Tuesday, March 27, 2018 10:39 AM > To: Linux NVMe ; Linux Block block@vger.kernel.org> > Cc: Christoph Hellwig ; Sagi Grimberg ; > Jianchao Wang ; Ming Lei > ; Jens Axboe ; Keith Busch > ; Don Brace ; qla2xxx- > upstream@qlogic.com; linux-scsi@vger.kernel.org > Subject: [PATCH 1/3] blk-mq: Allow PCI vector offset for mapping queues >=20 > EXTERNAL EMAIL >=20 >=20 > The PCI interrupt vectors intended to be associated with a queue may > not start at 0; a driver may allocate pre_vectors for special use. This > patch adds an offset parameter so blk-mq may find the intended affinity > mask and updates all drivers using this API accordingly. >=20 > Cc: Don Brace > Cc: > Cc: > Signed-off-by: Keith Busch > --- > v1 -> v2: >=20 > Update blk-mq API directly instead of chaining a default parameter to > a new API, and update all drivers accordingly. >=20 > block/blk-mq-pci.c | 6 ++++-- > drivers/nvme/host/pci.c | 2 +- > drivers/scsi/qla2xxx/qla_os.c | 2 +- > drivers/scsi/smartpqi/smartpqi_init.c | 2 +- > include/linux/blk-mq-pci.h | 3 ++- > 5 files changed, 9 insertions(+), 6 deletions(-) >=20 > diff --git a/drivers/scsi/smartpqi/smartpqi_init.c > b/drivers/scsi/smartpqi/smartpqi_init.c > index b2880c7709e6..10c94011c8a8 100644 > --- a/drivers/scsi/smartpqi/smartpqi_init.c > +++ b/drivers/scsi/smartpqi/smartpqi_init.c > @@ -5348,7 +5348,7 @@ static int pqi_map_queues(struct Scsi_Host *shost) > { > struct pqi_ctrl_info *ctrl_info =3D shost_to_hba(shost); >=20 > - return blk_mq_pci_map_queues(&shost->tag_set, ctrl_info->pci_dev)= ; > + return blk_mq_pci_map_queues(&shost->tag_set, ctrl_info->pci_dev,= 0); > } >=20 Acked-by: Don Brace From mboxrd@z Thu Jan 1 00:00:00 1970 From: don.brace@microsemi.com (Don Brace) Date: Wed, 28 Mar 2018 14:48:46 +0000 Subject: [PATCH 1/3] blk-mq: Allow PCI vector offset for mapping queues In-Reply-To: <20180327153908.3732-1-keith.busch@intel.com> References: <20180327153908.3732-1-keith.busch@intel.com> Message-ID: > -----Original Message----- > From: linux-scsi-owner at vger.kernel.org [mailto:linux-scsi- > owner at vger.kernel.org] On Behalf Of Keith Busch > Sent: Tuesday, March 27, 2018 10:39 AM > To: Linux NVMe ; Linux Block block at vger.kernel.org> > Cc: Christoph Hellwig ; Sagi Grimberg ; > Jianchao Wang ; Ming Lei > ; Jens Axboe ; Keith Busch > ; Don Brace ; qla2xxx- > upstream at qlogic.com; linux-scsi at vger.kernel.org > Subject: [PATCH 1/3] blk-mq: Allow PCI vector offset for mapping queues > > EXTERNAL EMAIL > > > The PCI interrupt vectors intended to be associated with a queue may > not start at 0; a driver may allocate pre_vectors for special use. This > patch adds an offset parameter so blk-mq may find the intended affinity > mask and updates all drivers using this API accordingly. > > Cc: Don Brace > Cc: > Cc: > Signed-off-by: Keith Busch > --- > v1 -> v2: > > Update blk-mq API directly instead of chaining a default parameter to > a new API, and update all drivers accordingly. > > block/blk-mq-pci.c | 6 ++++-- > drivers/nvme/host/pci.c | 2 +- > drivers/scsi/qla2xxx/qla_os.c | 2 +- > drivers/scsi/smartpqi/smartpqi_init.c | 2 +- > include/linux/blk-mq-pci.h | 3 ++- > 5 files changed, 9 insertions(+), 6 deletions(-) > > diff --git a/drivers/scsi/smartpqi/smartpqi_init.c > b/drivers/scsi/smartpqi/smartpqi_init.c > index b2880c7709e6..10c94011c8a8 100644 > --- a/drivers/scsi/smartpqi/smartpqi_init.c > +++ b/drivers/scsi/smartpqi/smartpqi_init.c > @@ -5348,7 +5348,7 @@ static int pqi_map_queues(struct Scsi_Host *shost) > { > struct pqi_ctrl_info *ctrl_info = shost_to_hba(shost); > > - return blk_mq_pci_map_queues(&shost->tag_set, ctrl_info->pci_dev); > + return blk_mq_pci_map_queues(&shost->tag_set, ctrl_info->pci_dev, 0); > } > Acked-by: Don Brace