public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@sgi.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: davem@redhat.com, ralf@uni-koblenz.de, linux-kernel@vger.kernel.org
Subject: Re: memory-mapped i/o barrier
Date: Thu, 10 Jan 2002 14:59:48 -0800	[thread overview]
Message-ID: <20020110145948.A776823@sgi.com> (raw)
In-Reply-To: <20020110134859.A729245@sgi.com> <E16OoFt-0005pt-00@the-village.bc.nu>
In-Reply-To: <E16OoFt-0005pt-00@the-village.bc.nu>

On Thu, Jan 10, 2002 at 11:05:04PM +0000, Alan Cox wrote:
> > ia64, and I'm wondering if you guys will accept something similar.  On
> > mips64, mmiob() could just be implemented as a 'sync', but I'm not
> > sure how to do it (or if it's even necessary) on other platforms.
> 
> Wouldn't it be wise to pass the device to this. Someone somewhere is going
> to have to read a bus dependant chipset register and need to know which
> pci_device * is involved ?

David and I went back and forth on that a little.  My hope is that
most platforms will have a reasonable way (i.e. no pci_device needed)
to ensure ordering.  I'm only aware of two platforms at the moment
that have i/o ordering issues: mips64 and ia64/sn.  On the former, a
simple 'sync' instruction is sufficient to barrier i/o, while on the
latter, a read from the local numa hub suffices.

If only a few platforms need info about which busses have outstanding
i/o, it should be possible to build a list of bridge chips or devices
and loop, reading from each (where presumably the read would act as
the barrier op).

If, OTOH, there are lots of platforms that need a pci_device so they
can read from a corresponding bridge to ensure ordering, it would be a
good idea to add an argument to the macro, as David initially
suggested.

Thoughts?

Jesse

  reply	other threads:[~2002-01-10 23:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-10 21:48 memory-mapped i/o barrier Jesse Barnes
2002-01-10 23:05 ` Alan Cox
2002-01-10 22:59   ` Jesse Barnes [this message]
2002-01-14  6:24 ` Anton Blanchard
2002-01-15  1:02   ` Jesse Barnes

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=20020110145948.A776823@sgi.com \
    --to=jbarnes@sgi.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ralf@uni-koblenz.de \
    /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