netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mitchell Blank Jr <mitch@sfgoth.com>
To: "Ihar 'Philips' Filipau" <ifilipau@giga-stream.de>
Cc: netdev@oss.sgi.com,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: e1000 question
Date: Wed, 2 Jun 2004 03:30:27 -0700	[thread overview]
Message-ID: <20040602103027.GA74881@gaz.sfgoth.com> (raw)
In-Reply-To: <40BD8E49.3070605@giga-stream.de>

Ihar 'Philips' Filipau wrote:
>    Functions e1000_clean_{t,r}x_irq are very similar: both of them are 
> checking descriptor flag updated by nic.
>    Host CPU, obviously, to perform this check, will cache descriptor.
>    If, say e1000_clean_rx_irq() will be called twice in short time 
> range, I expect that it can miss change of the flag, since old flag may 
> still sit in host CPU cache.

Please see Documentation/DMA-mapping.txt; especially the part starting
at "There are two types of DMA mappings..."  Ring buffers are allocated
as "consistent" DMA memory.

For most architectures this will mean that the cache hardware snoops the
PCI bus and automatically invalidates cache lines as they are written to.
For architectures that can't do that then Linux will mark those memory
regions uncacheable.

-Mitch

  reply	other threads:[~2004-06-02 10:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-02  8:22 e1000 question Ihar 'Philips' Filipau
2004-06-02 10:30 ` Mitchell Blank Jr [this message]
2004-06-02 10:34   ` Ihar 'Philips' Filipau
2004-06-06 22:19 ` Mitchell Blank Jr

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=20040602103027.GA74881@gaz.sfgoth.com \
    --to=mitch@sfgoth.com \
    --cc=ifilipau@giga-stream.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@oss.sgi.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 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).