<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-obmc-linux/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-11-14T02:23:11+00:00</updated>
<entry>
<title>net/ncsi: Don't return error on normal response</title>
<updated>2017-11-14T02:23:11+00:00</updated>
<author>
<name>Samuel Mendoza-Jonas</name>
<email>sam@mendozajonas.com</email>
</author>
<published>2017-11-08T05:30:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=e7ae4c9b5df12838e66a25df93df02e47bdb7d11'/>
<id>urn:sha1:e7ae4c9b5df12838e66a25df93df02e47bdb7d11</id>
<content type='text'>
Several response handlers return EBUSY if the data corresponding to the
command/response pair is already set. There is no reason to return an
error here; the channel is advertising something as enabled because we
told it to enable it, and it's possible that the feature has been
enabled previously.

Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
(cherry picked from commit 04bad8bda9e25afe676a6f4452f3b304c1fdea16)
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>net/ncsi: Improve general state logging</title>
<updated>2017-11-14T02:23:11+00:00</updated>
<author>
<name>Samuel Mendoza-Jonas</name>
<email>sam@mendozajonas.com</email>
</author>
<published>2017-11-08T05:30:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=0f42940cca9fcea6d484480fb8ad791d2eea918d'/>
<id>urn:sha1:0f42940cca9fcea6d484480fb8ad791d2eea918d</id>
<content type='text'>
The NCSI driver is mostly silent which becomes a headache when trying to
determine what has occurred on the NCSI connection. This adds additional
logging in a few key areas such as state transitions and calling out
certain errors more visibly.

Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
(cherry picked from commit 9ef8690be13d8ae3130749fbcc0cc21e4e3f738c)
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>Revert "net/ncsi: General state debugging"</title>
<updated>2017-11-14T02:22:58+00:00</updated>
<author>
<name>Joel Stanley</name>
<email>joel@jms.id.au</email>
</author>
<published>2017-11-14T01:30:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=52b6b7101c82f596b8b993d5f3151570bce18793'/>
<id>urn:sha1:52b6b7101c82f596b8b993d5f3151570bce18793</id>
<content type='text'>
This reverts commit 61f3b32bd16707a18c2ff8ed23c8dafa7706fc6f.

We will take the upstream version of this patch.

OpenBMC-Staging-Count: 1
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>net/ncsi: General state debugging</title>
<updated>2017-11-08T04:43:06+00:00</updated>
<author>
<name>Samuel Mendoza-Jonas</name>
<email>sam@mendozajonas.com</email>
</author>
<published>2017-11-08T00:35:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=61f3b32bd16707a18c2ff8ed23c8dafa7706fc6f'/>
<id>urn:sha1:61f3b32bd16707a18c2ff8ed23c8dafa7706fc6f</id>
<content type='text'>
While relatively noisy this helps to debug NCSI state transitions and
the state of channels beyond the existing "down" or "up" messages that
the driver currently has.

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>net/ncsi: Fix length of GVI response packet</title>
<updated>2017-10-24T00:31:06+00:00</updated>
<author>
<name>Gavin Shan</name>
<email>gwshan@linux.vnet.ibm.com</email>
</author>
<published>2017-10-23T05:45:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=880fb6125c4ea0547b51011353a82d04ba8832c1'/>
<id>urn:sha1:880fb6125c4ea0547b51011353a82d04ba8832c1</id>
<content type='text'>
The length of GVI (GetVersionInfo) response packet should be 40 instead
of 36. This issue was found from /sys/kernel/debug/ncsi/eth0/stats.

 # ethtool --ncsi eth0 swstats
     :
 RESPONSE     OK       TIMEOUT  ERROR
 =======================================
 GVI          0        0        2

With this applied, no error reported on GVI response packets:

 # ethtool --ncsi eth0 swstats
     :
 RESPONSE     OK       TIMEOUT  ERROR
 =======================================
 GVI          2        0        0

Signed-off-by: Gavin Shan &lt;gwshan@linux.vnet.ibm.com&gt;
Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
(cherry picked from commit 0a90e251988ceedc528c8db98f25b051cf190f44)
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>net/ncsi: Enforce failover on link monitor timeout</title>
<updated>2017-10-24T00:31:05+00:00</updated>
<author>
<name>Gavin Shan</name>
<email>gwshan@linux.vnet.ibm.com</email>
</author>
<published>2017-10-23T05:45:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=2c01c0b3caeefe4e35f7a2b8a1f4dd64e8c37936'/>
<id>urn:sha1:2c01c0b3caeefe4e35f7a2b8a1f4dd64e8c37936</id>
<content type='text'>
The NCSI channel has been configured to provide service if its link
monitor timer is enabled, regardless of its state (inactive or active).
So the timeout event on the link monitor indicates the out-of-service
on that channel, for which a failover is needed.

This sets NCSI_DEV_RESHUFFLE flag to enforce failover on link monitor
timeout, regardless the channel's original state (inactive or active).
Also, the link is put into "down" state to give the failing channel
lowest priority when selecting for the active channel. The state of
failing channel should be set to active in order for deinitialization
and failover to be done.

Signed-off-by: Gavin Shan &lt;gwshan@linux.vnet.ibm.com&gt;
Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
(cherry picked from commit 52b4c8627f9f0d882e969967a207a27a80c9c753)
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>net/ncsi: Disable HWA mode when no channels are found</title>
<updated>2017-10-24T00:31:05+00:00</updated>
<author>
<name>Gavin Shan</name>
<email>gwshan@linux.vnet.ibm.com</email>
</author>
<published>2017-10-23T05:45:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=8dc30e7df01f8b5b9418a31cd4f8ec7f94cae10e'/>
<id>urn:sha1:8dc30e7df01f8b5b9418a31cd4f8ec7f94cae10e</id>
<content type='text'>
When there are no NCSI channels probed, HWA (Hardware Arbitration)
mode is enabled. It's not correct because HWA depends on the fact:
NCSI channels exist and all of them support HWA mode. This disables
HWA when no channels are probed.

Signed-off-by: Gavin Shan &lt;gwshan@linux.vnet.ibm.com&gt;
Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
(cherry picked from commit 100ef01f3ea4badbee6479290a41f74abd0e523f)
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>net/ncsi: Stop monitor if channel times out or is inactive</title>
<updated>2017-10-24T00:31:04+00:00</updated>
<author>
<name>Samuel Mendoza-Jonas</name>
<email>sam@mendozajonas.com</email>
</author>
<published>2017-10-23T05:45:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=5e6801259611d7aeecae4a2d239374d876dee645'/>
<id>urn:sha1:5e6801259611d7aeecae4a2d239374d876dee645</id>
<content type='text'>
ncsi_channel_monitor() misses stopping the channel monitor in several
places that it should, causing a WARN_ON_ONCE() to trigger when the
monitor is re-started later, eg:

[  459.040000] WARNING: CPU: 0 PID: 1093 at net/ncsi/ncsi-manage.c:269 ncsi_start_channel_monitor+0x7c/0x90
[  459.040000] CPU: 0 PID: 1093 Comm: kworker/0:3 Not tainted 4.10.17-gaca2fdd #140
[  459.040000] Hardware name: ASpeed SoC
[  459.040000] Workqueue: events ncsi_dev_work
[  459.040000] [&lt;80010094&gt;] (unwind_backtrace) from [&lt;8000d950&gt;] (show_stack+0x20/0x24)
[  459.040000] [&lt;8000d950&gt;] (show_stack) from [&lt;801dbf70&gt;] (dump_stack+0x20/0x28)
[  459.040000] [&lt;801dbf70&gt;] (dump_stack) from [&lt;80018d7c&gt;] (__warn+0xe0/0x108)
[  459.040000] [&lt;80018d7c&gt;] (__warn) from [&lt;80018e70&gt;] (warn_slowpath_null+0x30/0x38)
[  459.040000] [&lt;80018e70&gt;] (warn_slowpath_null) from [&lt;803f6a08&gt;] (ncsi_start_channel_monitor+0x7c/0x90)
[  459.040000] [&lt;803f6a08&gt;] (ncsi_start_channel_monitor) from [&lt;803f7664&gt;] (ncsi_configure_channel+0xdc/0x5fc)
[  459.040000] [&lt;803f7664&gt;] (ncsi_configure_channel) from [&lt;803f8160&gt;] (ncsi_dev_work+0xac/0x474)
[  459.040000] [&lt;803f8160&gt;] (ncsi_dev_work) from [&lt;8002d244&gt;] (process_one_work+0x1e0/0x450)
[  459.040000] [&lt;8002d244&gt;] (process_one_work) from [&lt;8002d510&gt;] (worker_thread+0x5c/0x570)
[  459.040000] [&lt;8002d510&gt;] (worker_thread) from [&lt;80033614&gt;] (kthread+0x124/0x164)
[  459.040000] [&lt;80033614&gt;] (kthread) from [&lt;8000a5e8&gt;] (ret_from_fork+0x14/0x2c)

This also updates the monitor instead of just returning if
ncsi_xmit_cmd() fails to send the get-link-status command so that the
monitor properly times out.

Fixes: e6f44ed6d04d3 "net/ncsi: Package and channel management"

Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
(cherry picked from commit 0795fb2021f07969949f523ea33c39785bfae9d6)
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>net/ncsi: Fix AEN HNCDSC packet length</title>
<updated>2017-10-24T00:31:04+00:00</updated>
<author>
<name>Samuel Mendoza-Jonas</name>
<email>sam@mendozajonas.com</email>
</author>
<published>2017-10-23T05:45:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=27c8926134c32f188775a052880b06845b46a98a'/>
<id>urn:sha1:27c8926134c32f188775a052880b06845b46a98a</id>
<content type='text'>
Correct the value of the HNCDSC AEN packet.
Fixes: 7a82ecf4cfb85 "net/ncsi: NCSI AEN packet handler"

Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
(cherry picked from commit 6850d0f8b2542112629061808ed950b35eb982e4)
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>net/ncsi: Don't limit vids based on hot_channel</title>
<updated>2017-10-24T00:31:03+00:00</updated>
<author>
<name>Samuel Mendoza-Jonas</name>
<email>sam@mendozajonas.com</email>
</author>
<published>2017-10-23T05:45:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=a229cb16a3277705db3d2b52e8d7b7406f5e68af'/>
<id>urn:sha1:a229cb16a3277705db3d2b52e8d7b7406f5e68af</id>
<content type='text'>
Currently we drop any new VLAN ids if there are more than the current
(or last used) channel can support. Most importantly this is a problem
if no channel has been selected yet, resulting in a segfault.

Secondly this does not necessarily reflect the capabilities of any other
channels. Instead only drop a new VLAN id if we are already tracking the
maximum allowed by the NCSI specification. Per-channel limits are
already handled by ncsi_add_filter(), but add a message to set_one_vid()
to make it obvious that the channel can not support any more VLAN ids.

Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
(cherry picked from commit 6e9c0075409d4ec1bc63558ee5a93916a6d7d16f)
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
</feed>
