netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/4] stmmac: pci: Fix crash on Intel Galileo Gen2
@ 2017-05-08 14:14 Andy Shevchenko
  2017-05-08 14:14 ` [PATCH v1 1/4] stmmac: pci: set default number of rx and tx queues Andy Shevchenko
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Andy Shevchenko @ 2017-05-08 14:14 UTC (permalink / raw)
  To: Joao Pinto, Jan Kiszka, netdev, Giuseppe CAVALLARO,
	David S. Miller
  Cc: Andy Shevchenko

Due to misconfiguration of PCI driver for Intel Quark the user will get
a kernel crash:

# udhcpc -i eth0
udhcpc: started, v1.26.2
stmmaceth 0000:00:14.6 eth0: device MAC address 98:4f:ee:05:ac:47
Generic PHY stmmac-a6:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=stmmac-a6:01, irq=-1)
stmmaceth 0000:00:14.6 eth0: IEEE 1588-2008 Advanced Timestamp supported
stmmaceth 0000:00:14.6 eth0: registered PTP clock
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

udhcpc: sending discover

stmmaceth 0000:00:14.6 eth0: Link is Up - 100Mbps/Full - flow control off
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
BUG: unable to handle kernel NULL pointer dereference at (null)
IP: stmmac_xmit+0xf1/0x1080

Fix this by adding necessary settings.

P.S. I split fix to three patches according to what each of them adds.

Andy Shevchenko (4):
  stmmac: pci: set default number of rx and tx queues
  stmmac: pci: TX and RX queue priority configuration
  stmmac: pci: RX queue routing configuration
  stmmac: pci: split out common_default_data() helper

 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 41 +++++++++++-------------
 1 file changed, 18 insertions(+), 23 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-05-08 19:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-08 14:14 [PATCH v1 0/4] stmmac: pci: Fix crash on Intel Galileo Gen2 Andy Shevchenko
2017-05-08 14:14 ` [PATCH v1 1/4] stmmac: pci: set default number of rx and tx queues Andy Shevchenko
2017-05-08 14:18   ` Joao Pinto
2017-05-08 14:22   ` Giuseppe CAVALLARO
2017-05-08 14:14 ` [PATCH v1 2/4] stmmac: pci: TX and RX queue priority configuration Andy Shevchenko
2017-05-08 14:18   ` Joao Pinto
2017-05-08 14:14 ` [PATCH v1 3/4] stmmac: pci: RX queue routing configuration Andy Shevchenko
2017-05-08 14:18   ` Joao Pinto
2017-05-08 14:14 ` [PATCH v1 4/4] stmmac: pci: split out common_default_data() helper Andy Shevchenko
2017-05-08 14:19   ` Joao Pinto
2017-05-08 17:34 ` [PATCH v1 0/4] stmmac: pci: Fix crash on Intel Galileo Gen2 Jan Kiszka
2017-05-08 19:15 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).