<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-obmc-linux/drivers/net, branch dev-4.10</title>
<subtitle>Talos™ II Linux sources for OpenBMC</subtitle>
<id>https://git.raptorcs.com/git/talos-obmc-linux/atom?h=dev-4.10</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-obmc-linux/atom?h=dev-4.10'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/'/>
<updated>2017-08-23T06:56:31+00:00</updated>
<entry>
<title>net: ftgmac100: Fix oops in probe on failure to find associated PHY</title>
<updated>2017-08-23T06:56:31+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2017-08-22T06:36:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=6246810861383c08c928c1df651826d931284f50'/>
<id>urn:sha1:6246810861383c08c928c1df651826d931284f50</id>
<content type='text'>
netif_napi_del() should be paired with netif_napi_add(), however no
such call takes place in ftgmac100_probe(). This triggers a NULL
pointer dereference if e.g. no PHY is found by the MDIO probe:

	 [ 2.770000] libphy: Fixed MDIO Bus: probed
	 [ 2.770000] ftgmac100 1e660000.ethernet: Generated random MAC address 66:58:c0:5a:50:b8
	 [ 2.790000] libphy: ftgmac100_mdio: probed
	 [ 2.790000] ftgmac100 1e660000.ethernet (unnamed net_device) (uninitialized): eth%d: no PHY found
	 [ 2.790000] ftgmac100 1e660000.ethernet: MII Probe failed!
	 [ 2.810000] Unable to handle kernel NULL pointer dereference at virtual address 00000004
	 [ 2.810000] pgd = 80004000
	 [ 2.810000] [00000004] *pgd=00000000
	 [ 2.810000] Internal error: Oops: 805 [#1] ARM
	 [ 2.810000] CPU: 0 PID: 1 Comm: swapper Not tainted 4.10.17-1a4df30c39cf5ee0e3d2528c409787ccbb4a672a #1
	 [ 2.810000] Hardware name: ASpeed SoC
	 [ 2.810000] task: 9e421b60 task.stack: 9e4a0000
	 [ 2.810000] PC is at netif_napi_del+0x74/0xa4
	 [ 2.810000] LR is at ftgmac100_probe+0x290/0x674
	 [ 2.810000] pc : [&lt;80331004&gt;] lr : [&lt;80292b30&gt;] psr: 60000013
	 [ 2.810000] sp : 9e4a1d70 ip : 9e4a1d88 fp : 9e4a1d84
	 [ 2.810000] r10: 9e565000 r9 : ffffffed r8 : 00000007
	 [ 2.810000] r7 : 9e565480 r6 : 9ec072c0 r5 : 00000000 r4 : 9e5654d8
	 [ 2.810000] r3 : 9e565530 r2 : 00000000 r1 : 00000000 r0 : 9e5654d8
	 [ 2.810000] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
	 [ 2.810000] Control: 00c5387d Table: 80004008 DAC: 00000055
	 [ 2.810000] Process swapper (pid: 1, stack limit = 0x9e4a0188)
	 [ 2.810000] Stack: (0x9e4a1d70 to 0x9e4a2000)
	 [ 2.810000] 1d60: 9e565000 9e549e10 9e4a1dcc 9e4a1d88
	 [ 2.810000] 1d80: 80292b30 80330f9c ffffffff 9e4a1d98 80146058 9ec072c0 00009e10 00000000
	 [ 2.810000] 1da0: 9e549e18 9e549e10 ffffffed 805f81f4 fffffdfb 00000000 00000000 00000000
	 [ 2.810000] 1dc0: 9e4a1dec 9e4a1dd0 80243df8 802928ac 9e549e10 8062cbd8 8062cbe0 805f81f4
	 [ 2.810000] 1de0: 9e4a1e24 9e4a1df0 80242178 80243da4 803001d0 802ffa60 9e4a1e24 9e549e10
	 [ 2.810000] 1e00: 9e549e44 805f81f4 00000000 00000000 805b8840 8058a6b0 9e4a1e44 9e4a1e28
	 [ 2.810000] 1e20: 80242434 80241f04 00000000 805f81f4 80242344 00000000 9e4a1e6c 9e4a1e48
	 [ 2.810000] 1e40: 80240148 80242350 9e425bac 9e4fdc90 9e790e94 805f81f4 9e790e60 805f5640
	 [ 2.810000] 1e60: 9e4a1e7c 9e4a1e70 802425dc 802400d8 9e4a1ea4 9e4a1e80 80240ba8 802425c0
	 [ 2.810000] 1e80: 8050b6ac 9e4a1e90 805f81f4 ffffe000 805b8838 80616720 9e4a1ebc 9e4a1ea8
	 [ 2.810000] 1ea0: 80243068 80240a68 805ab24c ffffe000 9e4a1ecc 9e4a1ec0 80244a38 80242fec
	 [ 2.810000] 1ec0: 9e4a1edc 9e4a1ed0 805ab264 80244a04 9e4a1f4c 9e4a1ee0 8058ae70 805ab258
	 [ 2.810000] 1ee0: 80032c68 801e3fd8 8052f800 8041af2c 9e4a1f4c 9e4a1f00 80032f90 8058a6bc
	 [ 2.810000] 1f00: 9e4a1f2c 9e4a1f10 00000006 00000006 00000000 8052f220 805112f0 00000000
	 [ 2.810000] 1f20: 9e4a1f4c 00000006 80616720 805cf400 80616720 805b8838 80616720 00000057
	 [ 2.810000] 1f40: 9e4a1f94 9e4a1f50 8058b040 8058add0 00000006 00000006 00000000 8058a6b0
	 [ 2.810000] 1f60: 3940bf3d 00000007 f115c2e8 00000000 803fd158 00000000 00000000 00000000
	 [ 2.810000] 1f80: 00000000 00000000 9e4a1fac 9e4a1f98 803fd170 8058af38 00000000 803fd158
	 [ 2.810000] 1fa0: 00000000 9e4a1fb0 8000a5e8 803fd164 00000000 00000000 00000000 00000000
	 [ 2.810000] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
	 [ 2.810000] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 d11dcae8 af8ddec5
	 [ 2.810000] [&lt;80331004&gt;] (netif_napi_del) from [&lt;80292b30&gt;] (ftgmac100_probe+0x290/0x674)
	 [ 2.810000] [&lt;80292b30&gt;] (ftgmac100_probe) from [&lt;80243df8&gt;] (platform_drv_probe+0x60/0xc0)
	 [ 2.810000] [&lt;80243df8&gt;] (platform_drv_probe) from [&lt;80242178&gt;] (driver_probe_device+0x280/0x44c)
	 [ 2.810000] [&lt;80242178&gt;] (driver_probe_device) from [&lt;80242434&gt;] (__driver_attach+0xf0/0x104)
	 [ 2.810000] [&lt;80242434&gt;] (__driver_attach) from [&lt;80240148&gt;] (bus_for_each_dev+0x7c/0xb0)
	 [ 2.810000] [&lt;80240148&gt;] (bus_for_each_dev) from [&lt;802425dc&gt;] (driver_attach+0x28/0x30)
	 [ 2.810000] [&lt;802425dc&gt;] (driver_attach) from [&lt;80240ba8&gt;] (bus_add_driver+0x14c/0x268)
	 [ 2.810000] [&lt;80240ba8&gt;] (bus_add_driver) from [&lt;80243068&gt;] (driver_register+0x88/0x104)
	 [ 2.810000] [&lt;80243068&gt;] (driver_register) from [&lt;80244a38&gt;] (__platform_driver_register+0x40/0x54)
	 [ 2.810000] [&lt;80244a38&gt;] (__platform_driver_register) from [&lt;805ab264&gt;] (ftgmac100_driver_init+0x18/0x20)
	 [ 2.810000] [&lt;805ab264&gt;] (ftgmac100_driver_init) from [&lt;8058ae70&gt;] (do_one_initcall+0xac/0x168)
	 [ 2.810000] [&lt;8058ae70&gt;] (do_one_initcall) from [&lt;8058b040&gt;] (kernel_init_freeable+0x114/0x1cc)
	 [ 2.810000] [&lt;8058b040&gt;] (kernel_init_freeable) from [&lt;803fd170&gt;] (kernel_init+0x18/0x104)
	 [ 2.810000] [&lt;803fd170&gt;] (kernel_init) from [&lt;8000a5e8&gt;] (ret_from_fork+0x14/0x2c)
	 [ 2.810000] Code: e594205c e5941058 e2843058 e3a05000 (e5812004)
	 [ 3.210000] ---[ end trace f32811052fd3860c ]---

Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Acked-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
(cherry picked from commit 5160a153a00ef24dc3a47c215e21fbc197f60887)
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>net/ncsi: Configure VLAN tag filter</title>
<updated>2017-08-11T07:19:22+00:00</updated>
<author>
<name>Sam Mendoza-Jonas</name>
<email>sam@mendozajonas.com</email>
</author>
<published>2017-08-11T06:16:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=b8cd93f62581143a80ba5c0c61629031ce4a5240'/>
<id>urn:sha1:b8cd93f62581143a80ba5c0c61629031ce4a5240</id>
<content type='text'>
Make use of the ndo_vlan_rx_{add,kill}_vid callbacks to have the NCSI
stack process new VLAN tags and configure the channel VLAN filter
appropriately.
Several VLAN tags can be set and a "Set VLAN Filter" packet must be sent
for each one, meaning the ncsi_dev_state_config_svf state must be
repeated. An internal list of VLAN tags is maintained, and compared
against the current channel's ncsi_channel_filter in order to keep track
within the state. VLAN filters are removed in a similar manner, with the
introduction of the ncsi_dev_state_config_clear_vids state. The maximum
number of VLAN tag filters is determined by the "Get Capabilities"
response from the channel.

OpenBMC-Staging-Count: 1
Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>ftgmac: Include NETIF_F_HW_VLAN_CTAG_FILTER in features</title>
<updated>2017-08-11T07:19:15+00:00</updated>
<author>
<name>Sam Mendoza-Jonas</name>
<email>sam@mendozajonas.com</email>
</author>
<published>2017-08-11T06:16:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=ecae8e8884e729b944e98fe22a6205e934d32e27'/>
<id>urn:sha1:ecae8e8884e729b944e98fe22a6205e934d32e27</id>
<content type='text'>
This is required for the VLAN core to call the add/kill callback for
VLAN IDs. 'ftgmac100' already supports VLAN tagging but this flag lets
the network stack know that we want to be notified of VLAN tags being
added or removed when we have NCSI support.

OpenBMC-Staging-Count: 1
Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>ftgmac100: Make the MDIO bus a child of the ethernet device</title>
<updated>2017-07-25T02:17:35+00:00</updated>
<author>
<name>Benjamin Herrenschmidt</name>
<email>benh@kernel.crashing.org</email>
</author>
<published>2017-07-24T06:59:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=bd1d1e81e194d143bf6a1681ab35d44f77a9db10'/>
<id>urn:sha1:bd1d1e81e194d143bf6a1681ab35d44f77a9db10</id>
<content type='text'>
Populate mii_bus-&gt;parent with our own platform device before
registering, which makes it easier to locate the MDIO bus
in sysfs when trying to diagnose problems.

Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Acked-by: Joel Stanley &lt;joel@jms.id.au&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
(cherry picked from commit d57b9db1ae0cde366c9cc6b038cb1e8ff05557a1)
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>ftgmac100: Increase reset timeout</title>
<updated>2017-07-25T02:17:35+00:00</updated>
<author>
<name>Benjamin Herrenschmidt</name>
<email>benh@kernel.crashing.org</email>
</author>
<published>2017-07-24T06:59:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=18a6bb37c68752d823ecc17a37a42d8d942d8c63'/>
<id>urn:sha1:18a6bb37c68752d823ecc17a37a42d8d942d8c63</id>
<content type='text'>
We had reports of 50us not being sufficient to reset the MAC,
thus hitting the "Hardware reset failed" error bringing the
interface up on some AST2400 based machines.

This bumps the timeout to 200us.

Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
(cherry picked from commit c7472ec4a00c298d2b55c0aa945b8a4c10f6f898)
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>ftgmac100: return error in ftgmac100_alloc_rx_buf</title>
<updated>2017-07-25T01:52:14+00:00</updated>
<author>
<name>Joel Stanley</name>
<email>joel@jms.id.au</email>
</author>
<published>2017-07-24T13:14:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=e8b5578e3935d65e43affca02f417cd0f775c0cf'/>
<id>urn:sha1:e8b5578e3935d65e43affca02f417cd0f775c0cf</id>
<content type='text'>
The error paths set err, but it's not returned.

I wondered if we should fix all of the callers to check the returned
value, but Ben explains why the code is this way:

&gt; Most call sites ignore it on purpose. There's nothing we can do if
&gt; we fail to get a buffer at interrupt time, so we point the buffer to
&gt; the scratch page so the HW doesn't DMA into lalaland and lose the
&gt; packet.
&gt;
&gt; The one call site that tests and can fail is the one used when brining
&gt; the interface up. If we fail to allocate at that point, we fail the
&gt; ifup. But as you noticed, I do have a bug not returning the error.

OpenBMC-Staging-Count: 1
Acked-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>net: phy: broadcom: add support for BCM54210E</title>
<updated>2017-07-24T06:53:39+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>rafal@milecki.pl</email>
</author>
<published>2017-01-27T13:07:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=0784cdbab2ec7faf8b4bb3c2f80821e85c9a2422'/>
<id>urn:sha1:0784cdbab2ec7faf8b4bb3c2f80821e85c9a2422</id>
<content type='text'>
It's Broadcom PHY simply described as single-port
RGMII 10/100/1000BASE-T PHY. It requires disabling delay skew and GTXCLK
bits.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
(cherry picked from commit 0fc9ae107669760c2a8658cb5b5876dbe525e08d)
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>Merge tag 'v4.10.17' into dev-4.10</title>
<updated>2017-06-05T02:24:15+00:00</updated>
<author>
<name>Joel Stanley</name>
<email>joel@jms.id.au</email>
</author>
<published>2017-06-05T02:24:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=309678aa4cae5fe45ddfa1cf312625499851b6e1'/>
<id>urn:sha1:309678aa4cae5fe45ddfa1cf312625499851b6e1</id>
<content type='text'>
This is the 4.10.17 stable release
</content>
</entry>
<entry>
<title>net: mdio-mux: bcm-iproc: call mdiobus_free() in error path</title>
<updated>2017-05-14T12:08:29+00:00</updated>
<author>
<name>Jon Mason</name>
<email>jon.mason@broadcom.com</email>
</author>
<published>2017-05-08T21:48:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=8656ebcc28bc2a2338c1dc9a7f5de10c80e3cc1e'/>
<id>urn:sha1:8656ebcc28bc2a2338c1dc9a7f5de10c80e3cc1e</id>
<content type='text'>
[ Upstream commit 922c60e89d52730050c6ccca218bff40cc8bcd8e ]

If an error is encountered in mdio_mux_init(), the error path will call
mdiobus_free().  Since mdiobus_register() has been called prior to
mdio_mux_init(), the bus-&gt;state will not be MDIOBUS_UNREGISTERED.  This
causes a BUG_ON() in mdiobus_free().  To correct this issue, add an
error path for mdio_mux_init() which calls mdiobus_unregister() prior to
mdiobus_free().

Signed-off-by: Jon Mason &lt;jon.mason@broadcom.com&gt;
Fixes: 98bc865a1ec8 ("net: mdio-mux: Add MDIO mux driver for iProc SoCs")
Acked-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bnxt_en: allocate enough space for -&gt;ntp_fltr_bmap</title>
<updated>2017-05-14T12:08:29+00:00</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2017-05-06T00:49:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=ddbb020a01ec436d5301fb430bbb20c883c5b9b6'/>
<id>urn:sha1:ddbb020a01ec436d5301fb430bbb20c883c5b9b6</id>
<content type='text'>
[ Upstream commit ac45bd93a5035c2f39c9862b8b6ed692db0fdc87 ]

We have the number of longs, but we need to calculate the number of
bytes required.

Fixes: c0c050c58d84 ("bnxt_en: New Broadcom ethernet driver.")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Acked-by: Michael Chan &lt;michael.chan@broadcom.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
