Doron Tsur
0b6e26ce89
net/mlx5_core: Fix trimming down IRQ number
...
With several ConnectX-4 cards installed on a server, one may receive
irqn > 255 from the kernel API, which we mistakenly trim to 8bit.
This causes EQ creation failure with the following stack trace:
[<ffffffff812a11f4>] dump_stack+0x48/0x64
[<ffffffff810ace21>] __setup_irq+0x3a1/0x4f0
[<ffffffff810ad7e0>] request_threaded_irq+0x120/0x180
[<ffffffffa0923660>] ? mlx5_eq_int+0x450/0x450 [mlx5_core]
[<ffffffffa0922f64>] mlx5_create_map_eq+0x1e4/0x2b0 [mlx5_core]
[<ffffffffa091de01>] alloc_comp_eqs+0xb1/0x180 [mlx5_core]
[<ffffffffa091ea99>] mlx5_dev_init+0x5e9/0x6e0 [mlx5_core]
[<ffffffffa091ec29>] init_one+0x99/0x1c0 [mlx5_core]
[<ffffffff812e2afc>] local_pci_probe+0x4c/0xa0
Fixing it by changing of the irqn type from u8 to unsigned int to
support values > 255
Fixes: 61d0e73e0a ('net/mlx5_core: Use the the real irqn in eq->irqn')
Reported-by: Jiri Pirko <jiri@mellanox.com >
Signed-off-by: Doron Tsur <doront@mellanox.com >
Signed-off-by: Matan Barak <matanb@mellanox.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-01-17 12:08:04 -05:00
..
2015-12-13 19:59:48 -08:00
2015-12-14 10:11:09 -08:00
2015-12-11 16:56:16 +01:00
2015-12-22 17:04:56 +00:00
2015-12-29 10:08:45 +01:00
2016-01-07 10:10:50 -05:00
2016-01-15 12:14:47 -08:00
2015-12-17 22:08:28 -05:00
2016-01-17 12:08:04 -05:00
2016-01-05 18:04:58 +01:00
2016-01-07 09:55:39 -08:00
2015-12-28 18:43:15 +01:00
2015-12-21 14:26:28 +05:30
2016-01-13 11:38:27 -08:00
2015-12-17 22:08:28 -05:00
2016-01-12 18:26:10 +00:00
2015-12-11 19:34:39 -05:00
2016-01-11 16:48:35 +00:00
2015-12-16 16:36:25 +02:00
2015-12-23 10:08:15 -05:00
2016-01-13 09:26:40 -08:00
2016-01-12 01:10:19 +01:00
2016-01-04 16:19:57 +00:00
2016-01-09 08:39:04 -08:00
2015-12-09 10:35:16 -08:00
2015-12-28 13:07:07 -07:00
2016-01-12 19:20:32 -08:00
2016-01-12 19:20:32 -08:00
2016-01-04 12:31:46 +01:00
2016-01-01 03:49:51 +01:00
2016-01-14 16:00:49 -08:00
2015-12-30 13:01:03 -05:00
2015-12-09 01:25:01 +01:00
2016-01-06 15:17:47 +05:30
2016-01-04 10:58:35 +01:00
2015-12-11 16:56:40 +01:00
2015-12-11 11:05:57 -08:00
2016-01-06 16:31:56 -05:00
2015-12-14 18:58:42 -08:00
2016-01-08 21:40:34 -05:00
2016-01-13 19:15:14 -08:00
2016-01-14 16:00:49 -08:00
2016-01-12 20:04:15 -08:00
2015-12-22 17:10:17 -06:00
2016-01-09 22:42:31 -08:00
2016-01-14 16:00:49 -08:00
2015-12-28 13:41:50 +01:00
2016-01-14 16:00:49 -08:00
2015-12-21 13:07:56 -08:00
2016-01-13 11:06:03 +01:00
2015-12-15 16:50:20 -05:00
2015-12-15 23:26:51 -05:00
2015-12-14 10:03:46 +01:00
2015-12-29 10:08:45 +01:00
2015-12-19 11:07:01 +01:00
2015-12-19 11:07:01 +01:00
2015-12-12 10:15:34 -08:00
2016-01-08 19:04:36 +01:00
2016-01-04 09:57:40 +01:00
2016-01-11 19:33:59 -08:00
2016-01-09 08:39:03 -08:00
2016-01-07 14:31:27 -05:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2015-12-18 14:25:40 -08:00
2016-01-14 16:00:49 -08:00
2015-12-14 19:15:05 -08:00
2015-12-16 15:29:44 +00:00
2016-01-09 03:07:52 -05:00
2015-12-15 16:50:20 -05:00
2016-01-11 23:28:44 -05:00
2015-12-15 23:25:20 -05:00
2016-01-14 16:08:23 -08:00
2015-12-28 09:57:15 -05:00
2016-01-14 16:08:23 -08:00
2016-01-04 13:19:55 -05:00
2015-12-17 10:43:06 -06:00
2015-12-09 09:23:28 -06:00
2015-12-18 11:17:26 +05:30
2015-12-21 13:49:32 +00:00
2016-01-14 16:00:49 -08:00
2016-01-07 14:31:27 -05:00
2016-01-12 20:25:09 -08:00
2015-12-10 23:08:51 +01:00
2015-12-21 03:11:12 +01:00
2016-01-02 00:29:35 +01:00
2016-01-01 02:09:51 +01:00
2016-01-05 19:07:17 +00:00
2015-12-17 22:08:28 -05:00
2016-01-10 22:13:15 -05:00
2015-12-15 09:41:09 +01:00
2016-01-12 18:57:02 -08:00
2015-12-13 19:59:48 -08:00
2015-12-17 11:18:44 +01:00
2016-01-04 16:11:11 -05:00
2016-01-14 16:00:49 -08:00
2016-01-15 14:35:24 -05:00
2016-01-14 16:00:49 -08:00
2015-12-15 23:26:51 -05:00
2016-01-06 11:02:29 +01:00
2016-01-04 10:20:19 -05:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2015-12-10 22:41:06 -08:00
2016-01-12 20:04:15 -08:00
2015-12-13 19:59:48 -08:00
2015-12-18 17:48:50 -08:00
2015-12-21 15:28:11 -07:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-01-12 18:57:02 -08:00
2015-12-13 19:46:12 -05:00