Stefan Assmann
cbfe360a15
igb: assume MSI-X interrupts during initialization
...
In igb_sw_init() the sequence of calls was changed from
igb_init_queue_configuration()
igb_init_interrupt_scheme()
igb_probe_vfs()
to
igb_probe_vfs()
igb_init_queue_configuration()
igb_init_interrupt_scheme()
This results in adapter->flags not having the IGB_FLAG_HAS_MSIX bit set
during igb_probe_vfs()->igb_enable_sriov(). Therefore SR-IOV does not
get enabled properly and we run into a NULL pointer if the max_vfs
module parameter is specified (adapter->vf_data does not get allocated,
crash on accessing the structure).
[ 7.419348] BUG: unable to handle kernel NULL pointer dereference at 0000000000000048
[ 7.419367] IP: [<ffffffffa02161c6>] igb_reset+0xe6/0x5d0 [igb]
[ 7.419370] PGD 0
[ 7.419373] Oops: 0002 [#1 ] SMP
[ 7.419381] Modules linked in: ahci(+) libahci igb(+) i40e(+) vxlan ip6_udp_tunnel udp_tunnel megaraid_sas(+) ixgbe(+) mdio
[ 7.419385] CPU: 0 PID: 4 Comm: kworker/0:0 Not tainted 4.2.0+ #153
[ 7.419387] Hardware name: Dell Inc. PowerEdge R720/0C4Y3R, BIOS 1.6.0 03/07/2013
[...]
[ 7.419431] Call Trace:
[ 7.419442] [<ffffffffa0217236>] igb_probe+0x8b6/0x1340 [igb]
[ 7.419447] [<ffffffff814c7f15>] local_pci_probe+0x45/0xa0
Prevent this by setting the IGB_FLAG_HAS_MSIX bit before calling
igb_probe_vfs(). The real interrupt capabilities will be checked during
igb_init_interrupt_scheme() so this is safe to do.
Signed-off-by: Stefan Assmann <[email protected] >
Signed-off-by: Jeff Kirsher <[email protected] >
2015-09-28 17:48:34 -07:00
..
accessibility
acpi
ACPI: Eliminate CONFIG_.*{, _MODULE} #ifdef in favor of IS_ENABLED()
2015-09-15 03:05:45 +02:00
amba
android
mm: mark most vm_operations_struct const
2015-09-10 13:29:01 -07:00
ata
atm
solos-pci: Increase headroom on received packets
2015-09-17 21:29:07 -07:00
auxdisplay
base
platform-msi: Do not cache msi_desc in handler_data
2015-09-15 17:06:29 +02:00
bcma
block
Merge branch 'for-linus' of git://git.kernel.dk/linux-block
2015-09-19 18:57:09 -07:00
bluetooth
Bluetooth: hci_qca: Coding style clean up
2015-09-17 13:20:07 +02:00
bus
cdrom
char
clk
A few driver fixes for tegra, rockchip, and st SoCs and a two-liner
2015-09-19 20:17:40 -07:00
clocksource
connector
cpufreq
cpufreq: acpi-cpufreq: Use cpufreq_cpu_get_raw() in ->get()
2015-09-16 02:17:49 +02:00
cpuidle
Additional power management and ACPI material for v4.3-rc1
2015-09-11 19:11:06 -07:00
crypto
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
2015-09-16 07:53:33 -07:00
dca
devfreq
PM / devfreq: Fix incorrect type issue.
2015-09-11 14:23:30 +09:00
dio
dma
genirq: Remove irq argument from irq flow handlers
2015-09-16 15:47:51 +02:00
dma-buf
edac
edac updates for v4.3-rc1
2015-09-11 16:21:12 -07:00
eisa
extcon
firewire
firmware
x86, efi, kasan: #undef memset/memcpy/memmove per arch
2015-09-22 15:09:53 -07:00
fmc
gpio
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2015-09-18 08:11:42 -07:00
gpu
Merge tag 'drm-intel-fixes-2015-09-24' of git://anongit.freedesktop.org/drm-intel into drm-fixes
2015-09-25 06:52:37 +10:00
hid
hsi
mm: mark most vm_operations_struct const
2015-09-10 13:29:01 -07:00
hv
hwmon
hwmon: (nct6775) Add support for NCT6793D
2015-09-12 19:43:02 -07:00
hwspinlock
hwtracing /coresight
i2c
ide
idle
iio
infiniband
Changes for 4.3-rc1
2015-09-16 09:16:20 -07:00
input
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
2015-09-11 19:17:28 -07:00
iommu
fs/seq_file: convert int seq_vprint/seq_printf/etc... returns to void
2015-09-11 15:21:34 -07:00
ipack
irqchip
irqchip: Kill off set_irq_flags usage
2015-09-16 16:53:38 +02:00
isdn
isdn: hisax: fix frame calculation
2015-09-22 16:14:31 -07:00
leds
leds:lp55xx: Correct Kconfig dependency for f/w user helper
2015-09-17 10:02:20 +02:00
lguest
macintosh
mailbox
mcb
md
dm crypt: constrain crypt device's max_segment_size to PAGE_SIZE
2015-09-14 12:04:24 -04:00
media
media updates for v4.3-rc1
2015-09-11 16:42:39 -07:00
memory
memstick
message
mfd
genirq: Remove irq argument from irq flow handlers
2015-09-16 15:47:51 +02:00
misc
cxl: Fix lockdep warning while creating afu_err_buff attribute
2015-09-23 20:57:13 +10:00
mmc
mtd
net
igb: assume MSI-X interrupts during initialization
2015-09-28 17:48:34 -07:00
nfc
ntb
nubus
nvdimm
pmem: add proper fencing to pmem_rw_page()
2015-09-17 11:49:28 -04:00
nvmem
of
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2015-09-26 06:01:33 -04:00
oprofile
parisc
PCI: Revert "PCI: Call pci_read_bridge_bases() from core instead of arch code"
2015-09-15 13:18:04 -05:00
parport
pci
PCI updates for v4.3:
2015-09-25 11:16:53 -07:00
pcmcia
perf
phy
pinctrl
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2015-09-18 08:11:42 -07:00
platform
platform-drivers-x86 for 4.3-2
2015-09-17 21:41:02 -07:00
pnp
power
power supply and reset fixes for the v4.3 series
2015-09-17 12:25:42 -07:00
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
Merge remote-tracking branches 'regulator/fix/anatop', 'regulator/fix/gpio', 'regulator/fix/pbias', 'regulator/fix/tpx65218' and 'regulator/fix/vexpress' into regulator-linus
2015-09-21 14:16:09 -07:00
remoteproc
reset
rpmsg
rtc
s390
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2015-09-26 16:08:27 -07:00
sbus
scsi
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending
2015-09-11 19:00:42 -07:00
sfi
sh
SH Drivers Updates for v4.3
2015-09-21 12:02:27 -07:00
sn
soc
genirq: Remove irq argument from irq flow handlers
2015-09-16 15:47:51 +02:00
spi
Merge remote-tracking branches 'spi/fix/spidev' and 'spi/fix/xtfpga' into spi-linus
2015-09-22 09:48:41 -07:00
spmi
genirq: Remove irq argument from irq flow handlers
2015-09-16 15:47:51 +02:00
ssb
staging
Changes for 4.3-rc1
2015-09-19 20:04:11 -07:00
target
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending
2015-09-11 19:00:42 -07:00
tc
thermal
thermal: power_allocator: exit early if there are no cooling devices
2015-09-20 15:37:16 +08:00
thunderbolt
tty
s390/iucv: do not use arrays as argument
2015-09-21 16:03:04 -07:00
uio
usb
uwb
vfio
vhost
virtio: fixes on top of 4.3-rc1
2015-09-18 09:28:20 -07:00
video
Merge branch 'akpm' (patches from Andrew)
2015-09-10 18:19:42 -07:00
virt
virtio
vlynq
vme
w1
watchdog
Merge git://www.linux-watchdog.org/linux-watchdog
2015-09-11 15:12:59 -07:00
xen
Merge branch 'akpm' (patches from Andrew)
2015-09-10 18:19:42 -07:00
zorro
Kconfig
Makefile