From: Jes Sorensen <jes@sgi.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: Mark Maule <maule@sgi.com>,
akpm@osdl.org, linux-ia64@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] altix: export sn_pcidev_info_get
Date: 21 Feb 2006 06:23:12 -0500 [thread overview]
Message-ID: <yq0r75x6jmn.fsf@jaguar.mkp.net> (raw)
In-Reply-To: <20060221103633.GA19349@infradead.org>
>>>>> "Christoph" == Christoph Hellwig <hch@infradead.org> writes:
Christoph> On Mon, Feb 20, 2006 at 08:47:10PM -0600, Mark Maule wrote:
>> All I'm doing by exporting sn_pcidev_info_get is allowing a module
>> to use the SGI SN_PCIDEV_BUSSOFT() macro which will tell a driver
>> which piece of altix PCI hw its device is sitting behind
>> (e.g. PCIIO_ASIC_TYPE_TIOCP et. al).
Christoph> And that's absolutely not something a driver should care
Christoph> about. If you illegal binary driver uses it it's totally
Christoph> broken (but then we knew that before anyway ;-))
Christoph,
Leaving the issues around the specific client aside here.
Any chance you could explain why some drivers in drivers/net use the
arch defines to set things like optimial burst sizes then? Drivers
such as acenic.c, fealnx.c and starfire.c do this based on the arch
even though it really is a property of the combination of the PCI bus,
CPU and memory busses in the specific systems.
Were you planning on posting a patch to remove all of those instances
while you were at it?
Point is that there are cases where tuning requires you to know what
PCI bridge is below you in order to get the best performance out of a
card. One can keep a PCI ID blacklist to handle tuning of the PCI
bridge itself, but it can't handle things that needs to be tuned
by setting the PCI device's own registers.
Having a generic API to export this information would be a good thing
IMHO.
Cheers,
Jes
next prev parent reply other threads:[~2006-02-21 11:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060214162337.GA16954@sgi.com>
2006-02-20 20:17 ` [PATCH] altix: export sn_pcidev_info_get Christoph Hellwig
2006-02-20 21:39 ` Andrew Morton
2006-02-21 10:48 ` Christoph Hellwig
2006-02-25 11:55 ` Christoph Hellwig
2006-02-21 2:47 ` Mark Maule
2006-02-21 8:03 ` Arjan van de Ven
2006-02-21 8:20 ` Christian Hildner
2006-02-21 10:36 ` Christoph Hellwig
2006-02-21 11:23 ` Jes Sorensen [this message]
2006-02-25 11:55 ` Christoph Hellwig
2006-03-01 13:34 ` Jes Sorensen
2006-03-01 14:41 Luck, Tony
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=yq0r75x6jmn.fsf@jaguar.mkp.net \
--to=jes@sgi.com \
--cc=akpm@osdl.org \
--cc=hch@infradead.org \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maule@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