Giridhar Malavali
f3e0269517
scsi: qla2xxx: Avoid PCI IRQ affinity mapping when multiqueue is not supported
...
This patch fixes warning seen when BLK-MQ is enabled and hardware does not
support MQ. This will result into driver requesting MSIx vectors which are
equal or less than pre_desc via PCI IRQ Affinity infrastructure.
[ 19.746300] qla2xxx [0000:00:00.0]-0005: : QLogic Fibre Channel HBA Driver: 10.00.00.12-k.
[ 19.746599] qla2xxx [0000:02:00.0]-001d: : Found an ISP2432 irq 18 iobase 0x(____ptrval____).
[ 20.203186] ------------[ cut here ]------------
[ 20.203306] WARNING: CPU: 8 PID: 268 at drivers/pci/msi.c:1273 pci_irq_get_affinity+0xf4/0x120
[ 20.203481] Modules linked in: tg3 ptp qla2xxx(+) pps_core sg libphy scsi_transport_fc flash loop autofs4
[ 20.203700] CPU: 8 PID: 268 Comm: systemd-udevd Not tainted 5.0.0-rc5-00358-gdf3865f #113
[ 20.203830] Call Trace:
[ 20.203933] [0000000000461bb0] __warn+0xb0/0xe0
[ 20.204090] [00000000006c8f34] pci_irq_get_affinity+0xf4/0x120
[ 20.204219] [000000000068c764] blk_mq_pci_map_queues+0x24/0x120
[ 20.204396] [00000000007162f4] scsi_map_queues+0x14/0x40
[ 20.204626] [0000000000673654] blk_mq_update_queue_map+0x94/0xe0
[ 20.204698] [0000000000676ce0] blk_mq_alloc_tag_set+0x120/0x300
[ 20.204869] [000000000071077c] scsi_add_host_with_dma+0x7c/0x300
[ 20.205419] [00000000100ead54] qla2x00_probe_one+0x19d4/0x2640 [qla2xxx]
[ 20.205621] [00000000006b3c88] pci_device_probe+0xc8/0x160
[ 20.205697] [0000000000701c0c] really_probe+0x1ac/0x2e0
[ 20.205770] [0000000000701f90] driver_probe_device+0x50/0x100
[ 20.205843] [0000000000702134] __driver_attach+0xf4/0x120
[ 20.205913] [0000000000700644] bus_for_each_dev+0x44/0x80
[ 20.206081] [0000000000700c98] bus_add_driver+0x198/0x220
[ 20.206300] [0000000000702950] driver_register+0x70/0x120
[ 20.206582] [0000000010248224] qla2x00_module_init+0x224/0x284 [qla2xxx]
[ 20.206857] ---[ end trace b1de7a3f79fab2c2 ]---
The fix is to check if the hardware does not have Multi Queue capabiltiy,
use pci_alloc_irq_vectors() call instead of pci_alloc_irq_affinity().
Fixes: f664a3cc17b7d ("scsi: kill off the legacy IO path")
Cc: stable@vger.kernel.org #4.19
Signed-off-by: Giridhar Malavali <gmalavali@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2019-02-19 18:58:38 -05:00
..
2019-02-08 17:33:00 -05:00
2019-01-29 01:22:21 -05:00
2018-12-18 23:13:12 -05:00
2019-01-22 21:38:21 -05:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:13:12 -05:00
2019-01-29 00:40:40 -05:00
2018-12-28 14:48:06 -08:00
2019-01-08 22:31:36 -05:00
2019-02-01 18:19:56 -05:00
2019-02-05 21:29:21 -05:00
2019-02-08 17:33:00 -05:00
2018-11-09 19:17:14 -07:00
2019-02-08 17:33:00 -05:00
2019-01-29 00:30:50 -05:00
2019-01-29 01:16:09 -05:00
2019-02-08 18:08:22 -05:00
2018-12-18 23:13:12 -05:00
2019-02-04 21:23:59 -05:00
2018-12-20 20:03:56 -05:00
2018-11-28 21:47:30 -05:00
2019-02-08 17:33:00 -05:00
2019-02-19 18:58:34 -05:00
2019-02-12 22:20:41 -05:00
2019-02-04 22:52:21 -05:00
2018-12-18 23:13:12 -05:00
2019-01-29 01:28:49 -05:00
2018-12-18 23:13:12 -05:00
2019-02-05 21:29:49 -05:00
2019-02-05 21:29:49 -05:00
2019-02-19 18:58:38 -05:00
2019-01-11 21:05:03 -05:00
2019-02-08 17:33:00 -05:00
2019-01-29 00:40:54 -05:00
2018-12-18 23:13:12 -05:00
2019-02-19 18:58:34 -05:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:13:12 -05:00
2018-12-19 21:54:07 -05:00
2018-10-17 21:58:51 -04:00
2018-12-18 23:13:12 -05:00
2018-08-30 07:27:22 -04:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:13:12 -05:00
2018-06-19 22:02:25 -04:00
2018-10-15 23:00:38 -04:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:13:12 -05:00
2018-06-26 12:27:06 -04:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:13:12 -05:00
2018-03-15 00:25:37 -04:00
2018-12-18 23:13:12 -05:00
2018-10-17 21:38:20 -04:00
2018-09-25 20:45:53 -04:00
2018-12-18 23:19:21 -05:00
2019-01-08 21:58:35 -05:00
2019-01-08 21:58:35 -05:00
2019-01-08 21:57:42 -05:00
2019-01-08 21:58:35 -05:00
2019-01-08 21:58:35 -05:00
2018-12-18 23:19:21 -05:00
2018-12-28 14:48:06 -08:00
2019-02-08 17:33:00 -05:00
2018-07-10 22:25:03 -04:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:13:12 -05:00
2019-02-08 17:33:00 -05:00
2018-09-21 12:35:39 -04:00
2018-12-18 23:19:21 -05:00
2018-11-06 21:31:28 -05:00
2019-02-05 21:29:21 -05:00
2018-10-15 23:00:38 -04:00
2019-02-05 21:28:52 -05:00
2019-02-05 21:29:21 -05:00
2019-02-12 11:13:41 -05:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:19:21 -05:00
2019-02-05 21:28:52 -05:00
2018-12-18 23:13:12 -05:00
2018-06-19 22:02:25 -04:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:19:21 -05:00
2018-12-28 14:48:06 -08:00
2018-10-17 21:06:49 -04:00
2018-12-19 21:43:30 -05:00
2018-10-17 21:07:54 -04:00
2018-12-18 23:13:12 -05:00
2018-11-05 22:47:38 -05:00
2018-09-28 02:17:51 -04:00
2018-06-19 22:02:25 -04:00
2019-01-29 01:26:57 -05:00
2018-11-07 13:42:32 -07:00
2019-01-03 18:57:57 -08:00
2018-02-13 21:49:15 -05:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:19:21 -05:00
2019-02-13 22:07:03 -05:00
2019-02-13 22:07:03 -05:00
2018-08-30 07:21:04 -04:00
2017-12-11 21:39:39 -05:00
2019-02-12 11:15:44 -05:00
2018-04-20 19:14:28 -04:00
2018-04-20 19:14:36 -04:00
2018-04-18 19:34:08 -04:00
2019-02-05 21:29:21 -05:00
2019-01-03 18:57:57 -08:00
2019-02-12 11:13:41 -05:00
2018-09-26 15:11:28 -06:00
2018-11-07 13:42:32 -07:00
2018-11-07 13:42:32 -07:00
2018-11-07 13:42:32 -07:00
2018-11-07 13:42:32 -07:00
2018-12-28 14:48:06 -08:00
2019-02-05 21:27:40 -05:00
2018-06-26 12:27:06 -04:00
2018-06-04 07:58:06 -07:00
2018-11-07 13:42:32 -07:00
2018-06-19 22:02:25 -04:00
2018-07-30 08:27:02 -06:00
2018-11-09 19:17:14 -07:00
2019-02-12 11:13:41 -05:00
2019-02-12 22:33:00 -05:00
2018-06-12 16:19:22 -07:00
2019-01-03 18:57:57 -08:00
2018-12-18 23:19:21 -05:00
2018-08-02 15:22:13 -06:00
2019-02-05 21:29:49 -05:00
2019-01-11 21:41:24 -05:00
2018-12-18 23:19:21 -05:00
2018-12-28 14:48:06 -08:00
2018-12-18 23:19:21 -05:00
2018-10-15 23:00:38 -04:00
2018-12-07 21:56:06 -05:00
2019-02-05 21:29:21 -05:00
2018-12-28 14:48:06 -08:00
2018-12-18 23:13:12 -05:00
2018-11-15 14:27:08 -05:00
2018-12-18 23:13:12 -05:00
2018-10-17 21:38:20 -04:00