All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: Roland Dreier <rdreier@cisco.com>
Cc: CaT <cat@zip.com.au>, Michael Chan <mchan@broadcom.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: intermittant petabyte usage reported with broadcom nic
Date: 13 Apr 2007 03:15:59 +0200	[thread overview]
Message-ID: <p73hcrl6pm8.fsf@bingen.suse.de> (raw)
In-Reply-To: <adak5whdvfe.fsf@cisco.com>

Roland Dreier <rdreier@cisco.com> writes:

> [Adding Michael Chan, who seems to look after bnx2, to the cc list]
> 
>  > To clarify it's an Intel Dual Core Xeon (I just wound up as thinking of
>  > them all as amd64s). Network card driver in use is the one defined by
>  > CONFIG_BNX2. Kernel's monolithic.
> 
> From a quick look at bnx2.c, it seems that the driver gives the NIC
> (firmware?) a block of memory to DMA stats into, and just reads from
> that memory in its get_stats method.  So if you're seeing wonky stats
> from the NIC intermittently, my best guess would be that firmware is
> occasionally writing junk into the stats block.

When only the firmware is writing to that area it could be put
into an own page and then write protected with change_page_attr()
That would catch any corruption coming from the rest of the kernel.

-Andi

      reply	other threads:[~2007-04-13  0:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-02  1:43 intermittant petabyte usage reported with broadcom nic CaT
2007-04-02  7:13 ` Andrew Morton
2007-04-02  7:41   ` CaT
2007-04-02 10:31     ` Jean-Daniel Pauget
2007-04-15  0:20     ` Michael Chan
2007-04-16 19:10       ` Michael Chan
2007-04-16 23:43         ` CaT
2007-04-17 12:01           ` Jean-Daniel Pauget
2007-04-17 15:58           ` Roland Dreier
2007-05-22  1:15       ` Michael Chan
2007-04-12 22:52   ` CaT
2007-04-12 23:13     ` Andrew Morton
2007-04-12 23:18       ` Roland Dreier
2007-04-12 23:25         ` CaT
2007-04-12 23:15     ` Roland Dreier
2007-04-12 23:28     ` Roland Dreier
2007-04-13  1:15       ` Andi Kleen [this message]

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=p73hcrl6pm8.fsf@bingen.suse.de \
    --to=andi@firstfloor.org \
    --cc=akpm@linux-foundation.org \
    --cc=cat@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mchan@broadcom.com \
    --cc=netdev@vger.kernel.org \
    --cc=rdreier@cisco.com \
    /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.