<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/Intel-BMC/linux.git/drivers/net/ethernet, branch dev-4.6</title>
<subtitle>Intel OpenBMC Linux kernel source tree (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev-4.6</id>
<link rel='self' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev-4.6'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/'/>
<updated>2016-07-12T10:03:22+00:00</updated>
<entry>
<title>Merge tag 'v4.6.4' into dev-4.6</title>
<updated>2016-07-12T10:03:22+00:00</updated>
<author>
<name>Joel Stanley</name>
<email>joel@jms.id.au</email>
</author>
<published>2016-07-12T10:03:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=a9bd31fd2347046978c802397ed03e62496fd3d8'/>
<id>urn:sha1:a9bd31fd2347046978c802397ed03e62496fd3d8</id>
<content type='text'>
This is the 4.6.4 stable release
</content>
</entry>
<entry>
<title>drivers/net/ftgmac100: Adapt for Aspeed SoCs</title>
<updated>2016-07-12T09:58:20+00:00</updated>
<author>
<name>Joel Stanley</name>
<email>joel@jms.id.au</email>
</author>
<published>2016-06-24T07:08:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=ab753f2f6623f12ae459e6f693db8997db45f985'/>
<id>urn:sha1:ab753f2f6623f12ae459e6f693db8997db45f985</id>
<content type='text'>
The RXDES and TXDES registers bits in the ftgmac100 indicates EDO{R,T}R
at bit position 15 for the Faraday Tech IP. However, the version of this
IP present in the Aspeed SoCs has these bits at position 30 in the
registers.

It appers that ast2400 SoCs support both positions, with the 15th bit
marked as reserved but still functional. In the ast2500 this bit is
reused for another function, so we need a work around.

This was confirmed with engineers from Aspeed that using bit 30 is
correct for both the ast2400 and ast2500 SoCs.

Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>drivers/net/ftgmac100: Make EDO{R,T}R bits configurable</title>
<updated>2016-07-12T09:58:07+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2016-06-03T06:31:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=83bef141ee84036914ad29be97d7eb981538d0e8'/>
<id>urn:sha1:83bef141ee84036914ad29be97d7eb981538d0e8</id>
<content type='text'>
These bits are #defined at a fixed location. In order to support future
hardware that has chosen to move these bits around move the bits into a
member of the struct ftgmac100.

Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>drievrs/net/ftgmac100: Separate rx page storage from rxdesc</title>
<updated>2016-07-12T09:58:01+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2016-06-03T01:41:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=c0cbc1776dd474717aa2ff786a01a6c1b9631bb3'/>
<id>urn:sha1:c0cbc1776dd474717aa2ff786a01a6c1b9631bb3</id>
<content type='text'>
The ftgmac100 hardware revision in e.g. the Aspeed AST2500 no longer
reserves all bits in RXDES#2 but instead uses the bottom 16 bits to
store MAC frame metadata. Avoid corruption by shifting struct page
pointers out to their own member in struct ftgmac100.

Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>net/ethernet/ftgmac100: Warn when nc-si enabled</title>
<updated>2016-07-12T09:57:50+00:00</updated>
<author>
<name>Joel Stanley</name>
<email>joel@jms.id.au</email>
</author>
<published>2016-06-15T01:13:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=cdff4c2e2dfbda7b425c9ad148e0824824ae71b1'/>
<id>urn:sha1:cdff4c2e2dfbda7b425c9ad148e0824824ae71b1</id>
<content type='text'>
When a driver indicates it wants to use nc-si in the device tree but the
kerenl does not have it enabled the driver currently silently fails.

Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>net: nps_enet: Disable interrupts before napi reschedule</title>
<updated>2016-06-24T17:22:01+00:00</updated>
<author>
<name>Elad Kanfi</name>
<email>eladkan@mellanox.com</email>
</author>
<published>2016-05-26T12:00:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=2d83aedee4aac5452f598e13df8982b929ba27bd'/>
<id>urn:sha1:2d83aedee4aac5452f598e13df8982b929ba27bd</id>
<content type='text'>
[ Upstream commit 86651650d16a359e4142c6a8b0467c87e48c4c94 ]

Since NAPI works by shutting down event interrupts when theres
work and turning them on when theres none, the net driver must
make sure that interrupts are disabled when it reschedules polling.
By calling napi_reschedule, the driver switches to polling mode,
therefor there should be no interrupt interference.
Any received packets will be handled in nps_enet_poll by polling the HW
indication of received packet until all packets are handled.

Signed-off-by: Elad Kanfi &lt;eladkan@mellanox.com&gt;
Acked-by: Noam Camus &lt;noamca@mellanox.com&gt;
Tested-by: Alexey Brodkin &lt;abrodkin@synopsys.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>net: stmmac: Fix incorrect memcpy source memory</title>
<updated>2016-06-24T17:22:00+00:00</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2016-05-25T22:40:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=0a626fb88972dfe5ebbf80412faae8fe723fb6c4'/>
<id>urn:sha1:0a626fb88972dfe5ebbf80412faae8fe723fb6c4</id>
<content type='text'>
[ Upstream commit 643d60bf575daaba93c1ac0d0e1c4b1d4ded1f75 ]

The memcpy() currently copies mdio_bus_data into new_bus-&gt;irq, which
makes no sense, since the mdio_bus_data structure contains more than
just irqs. The code was likely supposed to copy mdio_bus_data-&gt;irqs
into the new_bus-&gt;irq instead, so fix this.

Fixes: e7f4dc3536a4 ("mdio: Move allocation of interrupts into core")
Signed-off-by: Marek Vasut &lt;marex@denx.de&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;
Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&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>net: alx: use custom skb allocator</title>
<updated>2016-06-24T17:22:00+00:00</updated>
<author>
<name>Feng Tang</name>
<email>feng.tang@intel.com</email>
</author>
<published>2016-05-25T06:49:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=5f47c0caf670843d8edefd17c4381c439a5ff890'/>
<id>urn:sha1:5f47c0caf670843d8edefd17c4381c439a5ff890</id>
<content type='text'>
[ Upstream commit 26c5f03b2ae8018418ceb25b2e6a48560e8c2f5b ]

This patch follows Eric Dumazet's commit 7b70176421 for Atheros
atl1c driver to fix one exactly same bug in alx driver, that the
network link will be lost in 1-5 minutes after the device is up.

My laptop Lenovo Y580 with Atheros AR8161 ethernet device hit the
same problem with kernel 4.4, and it will be cured by Jarod Wilson's
commit c406700c for alx driver which get merged in 4.5. But there
are still some alx devices can't function well even with Jarod's
patch, while this patch could make them work fine. More details on
	https://bugzilla.kernel.org/show_bug.cgi?id=70761

The debug shows the issue is very likely to be related with the RX
DMA address, specifically 0x...f80, if RX buffer get 0x...f80 several
times, their will be RX overflow error and device will stop working.

For kernel 4.5.0 with Jarod's patch which works fine with my
AR8161/Lennov Y580, if I made some change to the
	__netdev_alloc_skb
		--&gt; __alloc_page_frag()
to make the allocated buffer can get an address with 0x...f80,
then the same error happens. If I make it to 0x...f40 or 0x....fc0,
everything will be still fine. So I tend to believe that the
0x..f80 address cause the silicon to behave abnormally.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=70761
Cc: Eric Dumazet &lt;edumazet@google.com&gt;
Cc: Johannes Berg &lt;johannes@sipsolutions.net&gt;
Cc: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Feng Tang &lt;feng.tang@intel.com&gt;
Tested-by: Ole Lukoie &lt;olelukoie@mail.ru&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>sfc: on MC reset, clear PIO buffer linkage in TXQs</title>
<updated>2016-06-24T17:22:00+00:00</updated>
<author>
<name>Edward Cree</name>
<email>ecree@solarflare.com</email>
</author>
<published>2016-05-24T17:53:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=f9f1165bf449960fe20e0995423e769221e80673'/>
<id>urn:sha1:f9f1165bf449960fe20e0995423e769221e80673</id>
<content type='text'>
[ Upstream commit c0795bf64cba4d1b796fdc5b74b33772841ed1bb ]

Otherwise, if we fail to allocate new PIO buffers, our TXQs will try to
use the old ones, which aren't there any more.

Fixes: 183233bec810 "sfc: Allocate and link PIO buffers; map them with write-combining"
Signed-off-by: Edward Cree &lt;ecree@solarflare.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>net: mvneta: Fix lacking spinlock initialization</title>
<updated>2016-06-24T17:22:00+00:00</updated>
<author>
<name>Gregory CLEMENT</name>
<email>gregory.clement@free-electrons.com</email>
</author>
<published>2016-05-24T16:03:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=4360cde0fc41c5e2a5132e34b9c67c91b0b32348'/>
<id>urn:sha1:4360cde0fc41c5e2a5132e34b9c67c91b0b32348</id>
<content type='text'>
[ Upstream commit 91c45e38b9478ff507e05f10151d64cd0d1aad7b ]

The spinlock used by the hwbm functions must be initialized by the
network driver. This commit fixes this lack and the following erros when
lockdep is enabled:

INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
[&lt;c010ff80&gt;] (unwind_backtrace) from [&lt;c010bd08&gt;] (show_stack+0x10/0x14)
[&lt;c010bd08&gt;] (show_stack) from [&lt;c032913c&gt;] (dump_stack+0xb4/0xe0)
[&lt;c032913c&gt;] (dump_stack) from [&lt;c01670e4&gt;] (__lock_acquire+0x1f58/0x2060)
[&lt;c01670e4&gt;] (__lock_acquire) from [&lt;c0167dec&gt;] (lock_acquire+0xa4/0xd0)
[&lt;c0167dec&gt;] (lock_acquire) from [&lt;c06f6650&gt;] (_raw_spin_lock_irqsave+0x54/0x68)
[&lt;c06f6650&gt;] (_raw_spin_lock_irqsave) from [&lt;c058e830&gt;] (hwbm_pool_add+0x1c/0xdc)
[&lt;c058e830&gt;] (hwbm_pool_add) from [&lt;c043f4e8&gt;] (mvneta_bm_pool_use+0x338/0x490)
[&lt;c043f4e8&gt;] (mvneta_bm_pool_use) from [&lt;c0443198&gt;] (mvneta_probe+0x654/0x1284)
[&lt;c0443198&gt;] (mvneta_probe) from [&lt;c03b894c&gt;] (platform_drv_probe+0x4c/0xb0)
[&lt;c03b894c&gt;] (platform_drv_probe) from [&lt;c03b7158&gt;] (driver_probe_device+0x214/0x2c0)
[&lt;c03b7158&gt;] (driver_probe_device) from [&lt;c03b72c4&gt;] (__driver_attach+0xc0/0xc4)
[&lt;c03b72c4&gt;] (__driver_attach) from [&lt;c03b5440&gt;] (bus_for_each_dev+0x68/0x9c)
[&lt;c03b5440&gt;] (bus_for_each_dev) from [&lt;c03b65b8&gt;] (bus_add_driver+0x1a0/0x218)
[&lt;c03b65b8&gt;] (bus_add_driver) from [&lt;c03b79cc&gt;] (driver_register+0x78/0xf8)
[&lt;c03b79cc&gt;] (driver_register) from [&lt;c01018f4&gt;] (do_one_initcall+0x90/0x1dc)
[&lt;c01018f4&gt;] (do_one_initcall) from [&lt;c0900de4&gt;] (kernel_init_freeable+0x15c/0x1fc)
[&lt;c0900de4&gt;] (kernel_init_freeable) from [&lt;c06eed90&gt;] (kernel_init+0x8/0x114)
[&lt;c06eed90&gt;] (kernel_init) from [&lt;c0107910&gt;] (ret_from_fork+0x14/0x24)

Fixes: baa11ebc0c76 ("net: mvneta: Use the new hwbm framework")
Reported-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Gregory CLEMENT &lt;gregory.clement@free-electrons.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>
