From: "Theodore Y. Ts'o" <tytso@mit.edu>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
Jes Sorensen <Jes.Sorensen@cern.ch>,
wendling@ganymede.isdn.uiuc.edu, linux-kernel@vger.rutgers.edu
Subject: Re: [patch] read[bwl] and ioremap problem
Date: Tue, 21 Dec 1999 18:48:18 -0500 [thread overview]
Message-ID: <199912212348.SAA10433@tsx-prime.MIT.EDU> (raw)
In-Reply-To: Linus Torvalds's message of Sat, 18 Dec 1999 15:50:19 -0800 (PST), <Pine.LNX.4.10.9912181546480.1964-100000@penguin.transmeta.com>
Date: Sat, 18 Dec 1999 15:50:19 -0800 (PST)
From: Linus Torvalds <torvalds@transmeta.com>
THAT case is certainly a rather strong argument for using something
like "gsc_read[bwl]()" on HP-PA.
The other strong reason for doing gsc_read[bwl] on HP-PA is that some
PA-RISC boxes have both a GSC bus *and* a PCI bus, and you need to
access devices on both buses....
Something to consider is that for certain drivers, such as the serial
driver, I'm already having to do a serial_inp() which dispatches to the
proper {inb,readb,gsc_readb} already. Yes I take a overhead/performance
hit for doing this, but it's the only clean way to support both ISA and
PCI serial boards in a single i386 box, or to support multiple buses in
the HP-PA scenario.
We've historically said that this kind of thing is horrible for
performance reasons, and the SCO and NetBSD approaches of doing
parameterized I/O has been derided for that reason. However, it's
something that perhaps we should rethink; on modern CPU's, the extra
procedure activation/deactivation isn't *that* expensive, and it ends up
making the drivers much more portable and easier to support multiple
architectures. The alternative is that each driver author ends up
writing their own I/O dispatch routines, such as what's currently in the
serial driver. While this approach does have some advantages, in that
each driver author can decide whether or not he/she wishes to pay the
indirection overhead, it can mean code duplication and a delay before
certain devices get supported on non-mainline architectures.
Something to think about.
- Ted
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
next parent reply other threads:[~1999-12-21 23:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.10.9912181546480.1964-100000@penguin.transmeta.com>
1999-12-21 23:48 ` Theodore Y. Ts'o [this message]
1999-12-22 11:57 ` Jes Sorensen
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=199912212348.SAA10433@tsx-prime.MIT.EDU \
--to=tytso@mit.edu \
--cc=Jes.Sorensen@cern.ch \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.rutgers.edu \
--cc=torvalds@transmeta.com \
--cc=wendling@ganymede.isdn.uiuc.edu \
/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
all inboxes | Powered by JetHome®