All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thu Nguyen <thu@amperemail.onmicrosoft.com>
To: Milton Miller II <miltonm@us.ibm.com>,
	openbmc <openbmc@lists.ozlabs.org>
Subject: Re: NC-SI driver: Detect OCP module power down!
Date: Tue, 5 Jan 2021 22:38:13 +0700	[thread overview]
Message-ID: <24584f99-bbc8-8cb7-39e6-c49f5e35defb@amperemail.onmicrosoft.com> (raw)
In-Reply-To: <OF1171F140.21EF2A71-ON00258652.005BFA8E-1609692280165@notes.na.collabserv.com>

[-- Attachment #1: Type: text/plain, Size: 1673 bytes --]

On 1/3/21 23:44, Milton Miller II wrote:
> January 03, 2021 8:45 AM Thu Nguyen wrote and miltonm@us.ibm.com 
> <mailto:miltonm@us.ibm.com> responded:
>
> In our test platform, BMC boot up with NC-SI module is plugged and
> powered. NC-SI interface (eth0) is up and worked well.
>
> Then the power of NC-SI module is power off. NC-SI driver can't detect
> this state.
>
> BMC console keeps print:
>
> [ 1780.411126] ftgmac100 1e660000.ethernet eth0: NCSI Channel 0 timed out!
>
> [ 1785.579455] ftgmac100 1e660000.ethernet eth0: NCSI: No channel with
> link found, configuring channel 0
>
> [ 1802.253375] ftgmac100 1e660000.ethernet eth0: NCSI Channel 0 timed out!
>
> [ 1807.501456] ftgmac100 1e660000.ethernet eth0: NCSI: No channel with
> link found, configuring channel 0
>
> Look at the ncs-manager.c code, it seems if a channel of NC-SI module is
> time out its' monitor_state will be disabled, the link will be down then
> the driver will go to next channel.
>
> But if all of channels of NC-SI module are down. The driver will reset
> the monitor_state of all channels and check their states again.
>
> Milton> The NCSI specification explicitly says that power to the nics 
> and the controller must be synchronized.
>
>
> Do we have any mechanism to detect power off state of NC-SI module?
>
> Milton> No, but the state machines will reset if you ifconfig down the 
> interface.

[Thu] Thank for this info. It seem there are no ways to detect Power off 
state of NC-SI module.

This case is similar with the case OCP is failure or Unplugged when hot 
plug.

>
> How about hot plug NC-SI module?
>
>
> Regards.
>
> Thu Nguyen.
>
Regards.

Thu Nguyen.

>
>
>
>
>
>


[-- Attachment #2: Type: text/html, Size: 2863 bytes --]

  reply	other threads:[~2021-01-05 15:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-03 16:44 NC-SI driver: Detect OCP module power down! Milton Miller II
2021-01-05 15:38 ` Thu Nguyen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-01-03 14:43 Thu Nguyen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=24584f99-bbc8-8cb7-39e6-c49f5e35defb@amperemail.onmicrosoft.com \
    --to=thu@amperemail.onmicrosoft.com \
    --cc=miltonm@us.ibm.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.