<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/net/ethernet/altera, branch linux-4.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.1.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.1.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2015-10-03T11:49:14Z</updated>
<entry>
<title>net: eth: altera: fix napi poll_list corruption</title>
<updated>2015-10-03T11:49:14Z</updated>
<author>
<name>Atsushi Nemoto</name>
<email>nemoto@toshiba-tops.co.jp</email>
</author>
<published>2015-09-02T08:49:29Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8bb9225a7bd3a07aadd58b19a633f1f7a8884d01'/>
<id>urn:sha1:8bb9225a7bd3a07aadd58b19a633f1f7a8884d01</id>
<content type='text'>
[ Upstream commit 4548a697e4969d695047cebd6d9af5e2f6cc728e ]

tse_poll() calls __napi_complete() with irq enabled.  This leads napi
poll_list corruption and may stop all napi drivers working.
Use napi_complete() instead of __napi_complete().

Signed-off-by: Atsushi Nemoto &lt;nemoto@toshiba-tops.co.jp&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>altera_tse: Correct rx packet length</title>
<updated>2015-04-29T19:19:34Z</updated>
<author>
<name>Vlastimil Setka</name>
<email>setka@vsis.cz</email>
</author>
<published>2015-04-28T22:17:11Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=48734994ac268eb391a66dca4cde7d08a08aba08'/>
<id>urn:sha1:48734994ac268eb391a66dca4cde7d08a08aba08</id>
<content type='text'>
Altera TSE MAC rx DMA transfer starts with the 2 additional bytes for IP
payload alignment. This patch fixes tse_rx() function loop which reads DMA
rx status and extracts packet length from it. Status signalises a whole DMA
transfer length, which is 2 bytes longer than the packet itself.

Signed-off-by: Vlastimil Setka &lt;setka@vsis.cz&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>altera tse: add support for fixed-links.</title>
<updated>2015-04-26T20:07:14Z</updated>
<author>
<name>Andreas Oetken</name>
<email>ennoerlangen@gmail.com</email>
</author>
<published>2015-04-25T16:07:52Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=7cdbc6f74f8e6c06304b69b4e944fbd669581c7c'/>
<id>urn:sha1:7cdbc6f74f8e6c06304b69b4e944fbd669581c7c</id>
<content type='text'>
Add support for fixed-links in configurations without PHY.
(e.g. connection to a switch, SGMII point to point, SFPs)

Check: Documentation/devicetree/bindings/net/fixed-link.txt.
Signed-off-by: Andreas Oetken &lt;ennoerlangen@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: eth: altera: Resolve false errors from MSGDMA to TSE</title>
<updated>2015-04-25T18:41:52Z</updated>
<author>
<name>Chee Nouk Phoon</name>
<email>cnphoon@altera.com</email>
</author>
<published>2015-04-24T07:32:07Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=20d96964b51844d4f3bea0249f62db7073c13c30'/>
<id>urn:sha1:20d96964b51844d4f3bea0249f62db7073c13c30</id>
<content type='text'>
This patch resolves false errors from MSGDMA in TX mSGDMA MM to ST
mode, and is a continuation of the patch recently submitted by Andrea
Oetken. The MSGDMA had a logic bug that masked detection of this issue
prior to Quartus 14.1/Build 164. When the MSGDMA logic bug was addressed
in Quartus 14.1/Build 164, the driver problem was exposed.

The problem is corrected by making sure MSGDMA_DESC_CTL_TR_ERR_IRQ is not
set for any of the transmit DMA descriptors, and only used for receive
descriptors.

Fixes: 71cd26e altera tse: Error-Bit on tx-avalon-stream always set.

Signed-off-by: Chee Nouk Phoon &lt;cnphoon@altera.com&gt;
Signed-off-by: Vince Bridgers &lt;vbridger@opensource.altera.com&gt;a
Cc: Andreas Oetken &lt;ennoerlangen@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>altera tse: Error-Bit on tx-avalon-stream always set.</title>
<updated>2015-04-21T02:01:16Z</updated>
<author>
<name>Andreas Oetken</name>
<email>ennoerlangen@gmail.com</email>
</author>
<published>2015-04-20T22:16:38Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=71cd26e76a9514715df7880db0a8f7c37c17149a'/>
<id>urn:sha1:71cd26e76a9514715df7880db0a8f7c37c17149a</id>
<content type='text'>
The Error-Bit on the avalon streaming interface of the
tx-dma-channel was always set. In SGMII configurations
this leads to error-symbols on the PCS and packet-rejection
on the receiver side (e.g. SGMII/1000Base-X connected switch).

This only applies to the tse-configuration with MSGDMA.

This issue was detected and fixed on a custom board with
a direct connection to a Marvell switch in SGMII-PHY-Mode.
(incl. custom patches for SGMII-PCS).

According to the datasheet if ff_tx_err (avalon-streaming)
is set it is forwarded to gm_tx_err. As a result the PCS
is forwarding the error by sending a "/V/"-caracter.

Signed-off-by: Andreas Oetken &lt;ennoerlangen@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>altera tse: Fix network-delays and -retransmissions after high throughput.</title>
<updated>2015-04-17T19:13:31Z</updated>
<author>
<name>Andreas Oetken</name>
<email>andreas@oetken.name</email>
</author>
<published>2015-04-16T21:48:08Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=93ea337852d6c9f292e2ccfc394be0f2859b99ae'/>
<id>urn:sha1:93ea337852d6c9f292e2ccfc394be0f2859b99ae</id>
<content type='text'>
Fix bug which occurs when more than &lt;limit&gt; packets are available during
napi-poll, leading to "delays" and retransmissions on the network.

Check for (count &lt; limit) before checking the get_rx_status in tse_rx-function.
Function get_rx_status is reading from the response-fifo.
If there is currently a response in the fifo,
reading the last byte of the response pops the value from the fifo.
If the limit is checked as second condition
and the limit is reached the fifo is popped but the packet is not processed.

Signed-off-by: Andreas Oetken &lt;ennoerlangen@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Altera TSE: constify of_device_id array</title>
<updated>2015-03-17T19:00:21Z</updated>
<author>
<name>Fabian Frederick</name>
<email>fabf@skynet.be</email>
</author>
<published>2015-03-17T18:37:33Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=27260530db1d926905c2c4e904cb8468b4373c03'/>
<id>urn:sha1:27260530db1d926905c2c4e904cb8468b4373c03</id>
<content type='text'>
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net</title>
<updated>2015-03-04T02:16:48Z</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2015-03-04T02:16:48Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=71a83a6db6138b9d41d8a0b6b91cb59f6dc4742c'/>
<id>urn:sha1:71a83a6db6138b9d41d8a0b6b91cb59f6dc4742c</id>
<content type='text'>
Conflicts:
	drivers/net/ethernet/rocker/rocker.c

The rocker commit was two overlapping changes, one to rename
the -&gt;vport member to -&gt;pport, and another making the bitmask
expression use '1ULL' instead of plain '1'.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>altera_tse: Fixes in NAPI and interrupt handling paths</title>
<updated>2015-02-23T23:07:36Z</updated>
<author>
<name>Vlastimil Setka</name>
<email>setka@vsis.cz</email>
</author>
<published>2015-02-23T17:30:29Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8d4ac39df09c6f8078af60cd0ddd7b2435728e72'/>
<id>urn:sha1:8d4ac39df09c6f8078af60cd0ddd7b2435728e72</id>
<content type='text'>
Incorrect NAPI polling caused WARNING at net/core/dev.c net_rx_action.
Some stability issues were also seen at high throughput and system
load before this patch.

This patch contains several changes in altera_tse_main.c:

- tse_rx() is fixed to not process more than `limit` frames

- tse_poll() is refactored to match NAPI logic
  - only received frames are counted for return value
  - removed bogus condition `(rxcomplete &gt;= budget || txcomplete &gt; 0)`
  - replace by: if (rxcomplete &lt; budget) -&gt; call __napi_complete and enable irq

- altera_isr()
  - replace spin_lock_irqsave() by spin_lock() - we are in isr
  - use spinlocks just over irq manipulation, not over __napi_schedule
  - reset IRQ first, then disable and schedule napi

This is a cleaned up resubmission from Vlastimil's recent submission.

Signed-off-by: Vlastimil Setka &lt;setka@vsis.cz&gt;
Signed-off-by: Roman Pisl &lt;rpisl@kky.zcu.cz&gt;
Signed-off-by: Vince Bridgers &lt;vbridger@opensource.altera.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>altera_tse: Correct typo in obtaining tx_fifo_depth from devicetree</title>
<updated>2015-02-23T23:07:35Z</updated>
<author>
<name>Vlastimil Setka</name>
<email>setka@vsis.cz</email>
</author>
<published>2015-02-23T17:27:37Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=fe6e4081a626d2987b73c9b15ed520b4f22d585f'/>
<id>urn:sha1:fe6e4081a626d2987b73c9b15ed520b4f22d585f</id>
<content type='text'>
This patch corrects a typo in the way tx_fifo_depth is read from the
devicetree. This patch was submitted by Vlastimil about a week ago,
and is now cleaned up and resubmitted.

Signed-off-by: Vlastimil Setka &lt;setka@vsis.cz&gt;
Signed-off-by: Vince Bridgers &lt;vbridger@opensource.altera.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
