<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/ethernet/stmicro, branch linux-3.16.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.16.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.16.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-04-28T18:03:17Z</updated>
<entry>
<title>net: stmmac: dwmac-sunxi: Allow all RGMII modes</title>
<updated>2020-04-28T18:03:17Z</updated>
<author>
<name>Chen-Yu Tsai</name>
</author>
<published>2020-01-06T03:09:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=43261ab1e5b88426774b0b35557088e231ce4e4b'/>
<id>urn:sha1:43261ab1e5b88426774b0b35557088e231ce4e4b</id>
<content type='text'>
commit 52cc73e5404c7ba0cbfc50cb4c265108c84b3d5a upstream.

Allow all the RGMII modes to be used. This would allow us to represent
the hardware better in the device tree with RGMII_ID where in most
cases the PHY's internal delay for both RX and TX are used.

Fixes: af0bd4e9ba80 ("net: stmmac: sunxi platform extensions for GMAC in Allwinner A20 SoC's")
Signed-off-by: Chen-Yu Tsai &lt;wens@csie.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>net: stmmac: Enable 16KB buffer size</title>
<updated>2020-04-28T18:03:07Z</updated>
<author>
<name>Jose Abreu</name>
</author>
<published>2019-12-18T10:17:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a8e72340fb0df2d61b867776e816438f85b6afce'/>
<id>urn:sha1:a8e72340fb0df2d61b867776e816438f85b6afce</id>
<content type='text'>
commit b2f3a481c4cd62f78391b836b64c0a6e72b503d2 upstream.

XGMAC supports maximum MTU that can go to 16KB. Lets add this check in
the calculation of RX buffer size.

Fixes: 7ac6653a085b ("stmmac: Move the STMicroelectronics driver")
Signed-off-by: Jose Abreu &lt;Jose.Abreu@synopsys.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>net: stmmac: 16KB buffer must be 16 byte aligned</title>
<updated>2020-04-28T18:03:06Z</updated>
<author>
<name>Jose Abreu</name>
</author>
<published>2019-12-18T10:17:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7f9ba6bb9e65a84e5086a7f2885239f5852dff4f'/>
<id>urn:sha1:7f9ba6bb9e65a84e5086a7f2885239f5852dff4f</id>
<content type='text'>
commit 8605131747e7e1fd8f6c9f97a00287aae2b2c640 upstream.

The 16KB RX Buffer must also be 16 byte aligned. Fix it.

Fixes: 7ac6653a085b ("stmmac: Move the STMicroelectronics driver")
Signed-off-by: Jose Abreu &lt;Jose.Abreu@synopsys.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>net: stmmac: don't stop NAPI processing when dropping a packet</title>
<updated>2020-02-11T20:03:11Z</updated>
<author>
<name>Aaro Koskinen</name>
</author>
<published>2019-03-27T20:35:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9194baeddf432765d85f158bf3760763b7d2c683'/>
<id>urn:sha1:9194baeddf432765d85f158bf3760763b7d2c683</id>
<content type='text'>
commit 07b3975352374c3f5ebb4a42ef0b253fe370542d upstream.

Currently, if we drop a packet, we exit from NAPI loop before the budget
is consumed. In some situations this will make the RX processing stall
e.g. when flood pinging the system with oversized packets, as the
errorneous packets are not dropped efficiently.

If we drop a packet, we should just continue to the next one as long as
the budget allows.

Signed-off-by: Aaro Koskinen &lt;aaro.koskinen@nokia.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
[acj: backport v4.4 -stable
-adjust context]
Signed-off-by: Aviraj CJ &lt;acj@cisco.com&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>net: stmmac: use correct DMA buffer size in the RX descriptor</title>
<updated>2020-02-11T20:03:10Z</updated>
<author>
<name>Aaro Koskinen</name>
</author>
<published>2019-03-27T20:35:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c56d49a783f49b0b63b569590f92a858fc2f0ce'/>
<id>urn:sha1:5c56d49a783f49b0b63b569590f92a858fc2f0ce</id>
<content type='text'>
commit 583e6361414903c5206258a30e5bd88cb03c0254 upstream.

We always program the maximum DMA buffer size into the receive descriptor,
although the allocated size may be less. E.g. with the default MTU size
we allocate only 1536 bytes. If somebody sends us a bigger frame, then
memory may get corrupted.

Fix by using exact buffer sizes.

Signed-off-by: Aaro Koskinen &lt;aaro.koskinen@nokia.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
[acj: backport to v4.4 -stable :
- Modified patch since v4.4 driver has no support for Big endian
- Skipped the section modifying non-existent functions in dwmac4_descs.c and
dwxgmac2_descs.c ]
Signed-off-by: Aviraj CJ &lt;acj@cisco.com&gt;
[bwh: For 3.16, don't subtract 1 from BUF_SIZE_8KiB because I already
 backported commit 8137b6ef0ce4 "net: stmmac: Fix RX packet size &gt; 8191".
 Also fold in commit f87db4dbd52f "net: stmmac: Use bfsize1 in
 ndesc_init_rx_desc".]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>stmmac: fix oversized frame reception</title>
<updated>2020-02-11T20:03:10Z</updated>
<author>
<name>Giuseppe CAVALLARO</name>
</author>
<published>2015-11-26T07:35:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a2e9db568e9ae4695ae92cb983afbf344ed86ca9'/>
<id>urn:sha1:a2e9db568e9ae4695ae92cb983afbf344ed86ca9</id>
<content type='text'>
commit e527c4a769d375ac0472450c52bde29087f49cd9 upstream.

The receive skb buffers can be preallocated when the link is opened
according to mtu size.
While testing on a network environment with not standard MTU (e.g. 3000),
a panic occurred if an incoming packet had a length greater than rx skb
buffer size. This is because the HW is programmed to copy, from the DMA,
an Jumbo frame and the Sw must check if the allocated buffer is enough to
store the frame.

Signed-off-by: Alexandre TORGUE &lt;alexandre.torgue@st.com&gt;
Signed-off-by: Giuseppe Cavallaro &lt;peppe.cavallaro@st.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>stmmac: copy unicast mac address to MAC registers</title>
<updated>2020-01-11T02:04:58Z</updated>
<author>
<name>Bhadram Varka</name>
</author>
<published>2017-10-27T02:52:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9a557b0d39037abc88bf643cfe5a46eb0870cb8a'/>
<id>urn:sha1:9a557b0d39037abc88bf643cfe5a46eb0870cb8a</id>
<content type='text'>
commit a830405ee452ddc4101c3c9334e6fedd42c6b357 upstream.

Currently stmmac driver not copying the valid ethernet
MAC address to MAC registers. This patch takes care
of updating the MAC register with MAC address.

Signed-off-by: Bhadram Varka &lt;vbhadram@nvidia.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
[bwh: Backported to 3.16:
 - Pass priv-&gt;ioaddr as first argument to set_umac_addr operation
 - Adjust context]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>net: stmmac: Correctly take timestamp for PTPv2</title>
<updated>2019-12-19T15:57:54Z</updated>
<author>
<name>Jose Abreu</name>
</author>
<published>2019-09-30T08:19:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ba93d2ce27b0f5245ac8e278e46bfd0a0fefb293'/>
<id>urn:sha1:ba93d2ce27b0f5245ac8e278e46bfd0a0fefb293</id>
<content type='text'>
commit 14f347334bf232074616e29e29103dd0c7c54dec upstream.

The case for PTPV2_EVENT requires event packets to be captured so add
this setting to the list of enabled captures.

Fixes: 891434b18ec0 ("stmmac: add IEEE PTPv1 and PTPv2 support.")
Signed-off-by: Jose Abreu &lt;Jose.Abreu@synopsys.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>net: stmmac: fix reset gpio free missing</title>
<updated>2019-10-05T15:19:42Z</updated>
<author>
<name>Jisheng Zhang</name>
</author>
<published>2019-05-22T10:05:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4104948f4e3b754fc8f6586516dc2d51028fe6eb'/>
<id>urn:sha1:4104948f4e3b754fc8f6586516dc2d51028fe6eb</id>
<content type='text'>
commit 49ce881c0d4c4a7a35358d9dccd5f26d0e56fc61 upstream.

Commit 984203ceff27 ("net: stmmac: mdio: remove reset gpio free")
removed the reset gpio free, when the driver is unbinded or rmmod,
we miss the gpio free.

This patch uses managed API to request the reset gpio, so that the
gpio could be freed properly.

Fixes: 984203ceff27 ("net: stmmac: mdio: remove reset gpio free")
Signed-off-by: Jisheng Zhang &lt;Jisheng.Zhang@synaptics.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>net: stmmac: Fix a race in EEE enable callback</title>
<updated>2019-05-02T20:41:57Z</updated>
<author>
<name>Jose Abreu</name>
</author>
<published>2019-02-18T13:35:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7ad2ef373b164f143477c20de594ecdacc291e4d'/>
<id>urn:sha1:7ad2ef373b164f143477c20de594ecdacc291e4d</id>
<content type='text'>
commit 8a7493e58ad688eb23b81e45461c5d314f4402f1 upstream.

We are saving the status of EEE even before we try to enable it. This
leads to a race with XMIT function that tries to arm EEE timer before we
set it up.

Fix this by only saving the EEE parameters after all operations are
performed with success.

Signed-off-by: Jose Abreu &lt;joabreu@synopsys.com&gt;
Fixes: d765955d2ae0 ("stmmac: add the Energy Efficient Ethernet support")
Cc: Joao Pinto &lt;jpinto@synopsys.com&gt;
Cc: David S. Miller &lt;davem@davemloft.net&gt;
Cc: Giuseppe Cavallaro &lt;peppe.cavallaro@st.com&gt;
Cc: Alexandre Torgue &lt;alexandre.torgue@st.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
</feed>
