LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Daniel Yeisley <dan.yeisley@unisys.com>
To: Greg KH <gregkh@suse.de>
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: [PATCH] I/O space boot parameter
Date: Thu, 22 Mar 2007 11:08:57 -0400	[thread overview]
Message-ID: <1174576138.22379.5.camel@localhost.localdomain> (raw)
In-Reply-To: <20070321235759.GB30283@suse.de>

On Wed, 2007-03-21 at 16:57 -0700, Greg KH wrote:
> On Wed, Mar 21, 2007 at 09:37:52AM -0400, Daniel Yeisley wrote:
> > On Tue, 2007-03-20 at 13:26 -0700, Greg KH wrote:
> > > On Tue, Mar 20, 2007 at 01:25:38PM -0400, Daniel Yeisley wrote:
> > > > On Tue, 2007-03-20 at 11:00 -0700, Greg KH wrote:
> > > > > 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?
> > > > > 
> > > > I don't have any sales numbers, but I can tell you that our current
> > > > systems can have up to 64 PCI buses.  
> > > > 
> > > > I've been working with Emulex cards, and my understanding is that the
> > > > BARs on the devices aren't wrong, but we can't allocate 4k of I/O space
> > > > for each one.  So we maintain a list in the BIOS of devices that don't
> > > > actually need I/O space and then don't assign it.  I've tested an a
> > > > x86_64 system with 20+ adapters and saw all the disks attached without
> > > > any problems.
> > > 
> > > Ah.  Others are working on providing a fix for this too, but it is being
> > > done in the drivers themselves, not in the pci core.  Look in the
> > > linux-pci mailing list archives for those patches (I don't think they
> > > every went into mainline for some reason, but I might be wrong...)
> > > 
> > > I suggest you work with those developers, as they have the same issue
> > > that you are trying to solve here.
> > > 
> > 
> > I have seen some patches that make the drivers I/O port free here:
> > http://lkml.org/lkml/2006/2/26/261
> 
> Ah, yes, those are the ones.
> 
> > I checked and they still aren't in the mainline.  
> 
> Poke the developer to get them there :)
> 
> > I don't know that it matters though because I see all the disks attached
> > to the system regardless of whether or not the adapters get I/O space.
> > The real issue I have is with all the error messages I get at boot.  I
> > see 40+ messages that say "PCI: Failed to allocate I/O
> > resource..." (from setup-res.c) when the kernel tries to allocate the
> > I/O space and can't.  The modules load fine.  I see all the disks just
> > fine.  But that many error messages tends to raise concerns and causes
> > support calls from customers.
> 
> If this isn't an issue for functionality, why not fix your BIOS then?

I'm not sure what there is to fix in the BIOS.  It can't assign more
than 64k of I/O space any more than the kernel can.  

> 
> And doesn't the above linked patch set also solve your issue with the
> noise in the syslog?
> 

I did try the patches and the modules load and don't request I/O space,
although I only see 17 of 29 disks (I'll have to look into that more).
I still get the "Failed to allocate I/O..." messages (long before the
modules are loaded).  

> thanks,
> 
> greg k-h


  reply	other threads:[~2007-03-22 16:41 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 [this message]
2007-03-20 20:05   ` Eric W. Biederman
     [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=1174576138.22379.5.camel@localhost.localdomain \
    --to=dan.yeisley@unisys.com \
    --cc=akpm@osdl.org \
    --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).