From: Jon Mason <mason@myri.com>
To: Joe Perches <joe@perches.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
Andrew Gallatin <gallatin@myri.com>
Subject: Re: [PATCH 3/9 v2] myri10ge: rework parity error check and cleanup
Date: Mon, 27 Jun 2011 22:31:23 -0500 [thread overview]
Message-ID: <BANLkTinaH0yCg+uFOZL5MiHhFqXNxd4sAw@mail.gmail.com> (raw)
In-Reply-To: <1309227435.3344.20.camel@Joe-Laptop>
On Mon, Jun 27, 2011 at 9:17 PM, Joe Perches <joe@perches.com> wrote:
> On Mon, 2011-06-27 at 15:54 -0500, Jon Mason wrote:
>> Clean up watchdog reset code:
>> - move code that checks for stuck slice to a common routine
>> - unless there is a confirmed h/w fault, verify that a stuck
>> slice is still stuck in the watchdog worker; if the slice is no
>> longer stuck, abort the reset.
>> - this removes an egregious 2000ms pause in the watchdog worker that
>> was a diagnostic aid (to look for spurious resets) the snuck into
>> production code.
>> v2 includes corrections from Ben Hutchings and Joe Perches
>
> Here's some more trivia:
>
>> diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c
> []
>> @@ -3442,6 +3443,42 @@ static u32 myri10ge_read_reboot(struct myri10ge_priv *mgp)
>> return reboot;
>> }
>>
>> +static void
>> +myri10ge_check_slice(struct myri10ge_slice_state *ss, int *reset_needed,
>> + int *busy_slice_cnt, u32 rx_pause_cnt)
>> +{
> []
>> + /* nic seems like it might be stuck.. */
>> + if (rx_pause_cnt != mgp->watchdog_pause) {
>> + if (net_ratelimit())
>> + netdev_warn(mgp->dev, "slice %d: TX paused, "
>> + "check link partner\n", slice);
>
> I think this would be better if the format weren't split.
>
> netdev_warn(mgp->dev, "slice %d: TX paused, check link partner\n",
> slice);
> or
> netdev_warn(mgp->dev,
> "slice %d: TX paused, check link partner\n",
> slice);
> or if you really must split it because exceeding 80 columns
> makes you itchy:
> netdev_warn(mgp->dev, "slice %d: "
> "TX paused, check link partner\n",
> slice);
Naa, I prefer it this way.
>> @@ -3465,8 +3504,7 @@ static void myri10ge_watchdog(struct work_struct *work)
>> * For now, just report it */
>> reboot = myri10ge_read_reboot(mgp);
>> netdev_err(mgp->dev, "NIC rebooted (0x%x),%s resetting\n",
>> - reboot,
>> - myri10ge_reset_recover ? "" : " not");
>> + reboot, myri10ge_reset_recover ? " " : " not");
>
> I think this was correct before you changed it.
>
> Maybe:
> reboot, myri10ge_reset_recover ? "" : " not");
Yes, I believe this was the intent.
>
>
>
next prev parent reply other threads:[~2011-06-28 3:31 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-27 15:05 [PATCH 1/9] myri10ge: ensure tx queues remain stopped Jon Mason
2011-06-27 15:05 ` [PATCH 2/9] myri10ge: Mask PCI Surprise Link Down Events Jon Mason
2011-06-29 13:02 ` David Miller
2011-06-27 15:05 ` [PATCH 3/9] myri10ge: rework parity error check and cleanup Jon Mason
2011-06-27 15:27 ` Ben Hutchings
2011-06-27 20:26 ` Jon Mason
2011-06-27 16:01 ` Joe Perches
2011-06-27 20:54 ` [PATCH 3/9 v2] " Jon Mason
2011-06-28 2:17 ` Joe Perches
2011-06-28 3:31 ` Jon Mason [this message]
2011-06-28 3:57 ` [PATCH 3/9 v3] " Jon Mason
2011-06-29 13:02 ` David Miller
2011-06-27 15:05 ` [PATCH 4/9] myri10ge: allow small_bytes = 0 Jon Mason
2011-06-29 13:03 ` David Miller
2011-06-27 15:05 ` [PATCH 5/9] myri10ge: add support for set_phys_id Jon Mason
2011-06-29 13:03 ` David Miller
2011-06-27 15:05 ` [PATCH 6/9] myri10ge: remove unnecessary read of PCI_CAP_ID_EXP Jon Mason
2011-06-29 13:03 ` David Miller
2011-06-27 15:05 ` [PATCH 7/9] myri10ge: misc style cleanups Jon Mason
2011-06-27 16:05 ` Joe Perches
2011-06-27 20:56 ` [PATCH 7/9 v2] " Jon Mason
2011-06-29 13:03 ` David Miller
2011-06-27 15:05 ` [PATCH 8/9] myri10ge: update version Jon Mason
2011-06-29 13:04 ` David Miller
2011-06-27 15:05 ` [PATCH 9/9] myri10ge: Update MAINTAINERS Jon Mason
2011-06-29 13:04 ` David Miller
2011-06-29 13:02 ` [PATCH 1/9] myri10ge: ensure tx queues remain stopped David Miller
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=BANLkTinaH0yCg+uFOZL5MiHhFqXNxd4sAw@mail.gmail.com \
--to=mason@myri.com \
--cc=davem@davemloft.net \
--cc=gallatin@myri.com \
--cc=joe@perches.com \
--cc=netdev@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).