LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Greg KH <gregkh@suse.de>
Cc: Daniel Yeisley <dan.yeisley@unisys.com>,
linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: [PATCH] I/O space boot parameter
Date: Tue, 20 Mar 2007 14:05:15 -0600 [thread overview]
Message-ID: <m1vegv1y10.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <20070320180020.GB21470@suse.de> (Greg KH's message of "Tue, 20 Mar 2007 11:00:20 -0700")
Greg KH <gregkh@suse.de> writes:
> On Tue, Mar 20, 2007 at 12:18:24PM -0400, Daniel Yeisley wrote:
>> It has been mentioned before that large systems with a lot of PCI buses
>> have issues with the 64k I/O space limit. The ES7000 has a BIOS option
>> to either assign I/O space to all adapters, or only to those that need
>> it. A list of supported adapters that don't need it is kept in the
>> BIOS. When this option is used, the kernel sees the BARs on the
>> adapters and still tries to assign I/O space (until it runs out). I've
>> written a patch to implement a boot parameter that tells the kernel not
>> to assign I/O space if the BIOS hasn't.
>
> How prelevant are machines like this? And why are the BARs on these
> devices wrong?
It is a machine scaling issue, and largely caused because we have
only one PCI-IO space on x86. Since devices are increasingly moving
to mmaped I/O it becomes less of an issue but there are still legacy
bits and pieces.
The bridges should be able to correctly have a no pci io region,
by setting base > than limit. Having bridges that can map pci io
but don't have anything behind them is common.
The concept of having devices that have I/O bars that we should not
assign I/O space to I find a little weird. I guess we can detect
this case by simply looking to see if the bridge maps the address
assigned to the bar.
Ideally the way to handle this case is to not that the BAR is not
valid (but it could be) and not attempt to fix this until the driver
tries to use the BAR.
The approach where we don't allocate a bar if the BIOS doesn't sounds
like a hack, and we still need code in the kernel to detect that the
BAR has an invalid value and that we can't use it.
I have seen so many different api's for mapping the region behind a
bar that I'm a little fuzzy. Is my recollection correct that we
have enough flexibility in the current API that we can detect an
invalid address and allocate a valid one if needed?
I do know we have a semi common case that is related to this where
the BIOS does not allocate a resource because it knows we don't
need it, and the kernel being more generic decides to allocate it
just in case. At which point the kernel reprograms the hardware
to allocate the resource and then we have problems because the
kernel didn't have enough knowledge to reprogram the root complex
(northbridge) correctly.
So if we can delay our fixups to when we really need them the changes
of linux working on a machine where peculiar things are happening
are greater.
Eric
next prev parent reply other threads:[~2007-03-20 20:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-20 16:18 Daniel Yeisley
2007-03-20 18:00 ` Greg KH
2007-03-20 17:25 ` Daniel Yeisley
2007-03-20 20:26 ` Greg KH
2007-03-21 13:37 ` Daniel Yeisley
2007-03-21 23:57 ` Greg KH
2007-03-22 15:08 ` Daniel Yeisley
2007-03-20 20:05 ` Eric W. Biederman [this message]
[not found] <fa.GB583YHCocLIeymeVam9mpGF9CI@ifi.uio.no>
[not found] ` <fa.QhX1j7epBXZBOc8pKi+Kk+1Ry2o@ifi.uio.no>
[not found] ` <fa.236bWOhrGT0j4UCxsmp32/n8NCo@ifi.uio.no>
[not found] ` <fa.5exuGSZI65YO9pz/5yzd/gtgBJI@ifi.uio.no>
[not found] ` <fa.YYUCGI1tr2Apb+hF3LEwyIhLDPM@ifi.uio.no>
2007-03-21 23:21 ` Robert Hancock
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=m1vegv1y10.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=akpm@osdl.org \
--cc=dan.yeisley@unisys.com \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--subject='Re: [PATCH] I/O space boot parameter' \
/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
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).