All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thu Nguyen <thu@amperemail.onmicrosoft.com>
To: openbmc <openbmc@lists.ozlabs.org>
Subject: NC-SI driver: Detect OCP module power down!
Date: Sun, 3 Jan 2021 21:43:59 +0700	[thread overview]
Message-ID: <e26b2a0e-3251-bf00-5055-7a09f0f57d4c@amperemail.onmicrosoft.com> (raw)

Hi All,


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.

Do we have any mechanism to detect power off state of NC-SI module?


How about hot plug NC-SI module?


Regards.

Thu Nguyen.







             reply	other threads:[~2021-01-03 14:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-03 14:43 Thu Nguyen [this message]
2021-01-03 16:44 NC-SI driver: Detect OCP module power down! Milton Miller II
2021-01-05 15:38 ` 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=e26b2a0e-3251-bf00-5055-7a09f0f57d4c@amperemail.onmicrosoft.com \
    --to=thu@amperemail.onmicrosoft.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.