Skip to content

stmmac: pci: Fix crash on Intel Galileo Gen2

Andy Shevchenko netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4stmmac: pci: set default number of rx and tx queuesdrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c+4 -02 replies
2/4stmmac: pci: TX and RX queue priority configurationdrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c+4 -01 reply
3/4stmmac: pci: RX queue routing configurationdrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c+3 -01 reply
4/4stmmac: pci: split out common_default_data() helperdrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c+18 -341 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchJoao PintoGiuseppe CavallaroJan Kiszka
SeriesT-b
1/4A-b A-b
2/4A-b
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH v1 0/4] stmmac: pci: Fix crash on Intel Galileo Gen2

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(-)
Signature · 1 line
2.11.0