From: Daniel Ritz <daniel.ritz-ml@swissonline.ch>
To: Dave Hansen <haveblue@us.ibm.com>, Greg KH <greg@kroah.com>,
Andrew Morton <akpm@osdl.org>
Cc: Marcus Better <marcus@better.se>,
James Bottomley <James.Bottomley@steeleye.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux scsi <linux-scsi@vger.kernel.org>,
ak@suse.de
Subject: Re: aic7xxx broken in 2.6.18-rc3-mm2
Date: Mon, 14 Aug 2006 22:19:26 +0200 [thread overview]
Message-ID: <200608142219.27950.daniel.ritz-ml@swissonline.ch> (raw)
In-Reply-To: <1155585403.12700.10.camel@localhost.localdomain>
On Monday 14 August 2006 21.56, Dave Hansen wrote:
> On Mon, 2006-08-14 at 20:21 +0200, Daniel Ritz wrote:
> > errm...sorry, i didn't mean that patch but the alternative i sent later. attached.
> > it should use direct access while not breaking legacy PCI probing. in theory..
> >
> > thanks,
> > -daniel
> >
> > diff --git a/arch/i386/pci/init.c b/arch/i386/pci/init.c
> > index c7650a7..51087a9 100644
> > --- a/arch/i386/pci/init.c
> > +++ b/arch/i386/pci/init.c
> > @@ -14,8 +14,12 @@ #endif
> > #ifdef CONFIG_PCI_BIOS
> > pci_pcbios_init();
> > #endif
> > - if (raw_pci_ops)
> > - return 0;
> > + /*
> > + * don't check for raw_pci_ops here because we want pcbios as last
> > + * fallback, yet it's needed to run first to set pcibios_last_bus
> > + * in case legacy PCI probing is used. otherwise detecting peer busses
> > + * fails.
> > + */
> > #ifdef CONFIG_PCI_DIRECT
> > pci_direct_init();
> > #endif
>
> That one works on my box without any issues. Thanks!
nice! thanks for testing.
Andrew/Greg could you add the patch to your trees? attached again with a better
description.
rgds
-daniel
-----
[PATCH] PCI: use PCBIOS as last fallback
there was a change in 2.6.17 which affected the order in which the PCI access
methods are probed. this gives regressions on some machines with broken BIOS.
the problem is that PCBIOS sometimes reports last bus wrong, leaving cardbus
non-funcational. previously those system worked fine with direct access.
the patch changes the PCI init code to have PCBIOS as last fallback, yet
the PCBIOS code still has to run first to set pcibios_last_bus to the value
reported by the BIOS. this is needed in case legacy PCI probing
(arch/i386/pci/legacy.c) is used to detect peer busses. using direct access
if available fixes the cardbus problems.
Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
diff --git a/arch/i386/pci/init.c b/arch/i386/pci/init.c
index c7650a7..51087a9 100644
--- a/arch/i386/pci/init.c
+++ b/arch/i386/pci/init.c
@@ -14,8 +14,12 @@ #endif
#ifdef CONFIG_PCI_BIOS
pci_pcbios_init();
#endif
- if (raw_pci_ops)
- return 0;
+ /*
+ * don't check for raw_pci_ops here because we want pcbios as last
+ * fallback, yet it's needed to run first to set pcibios_last_bus
+ * in case legacy PCI probing is used. otherwise detecting peer busses
+ * fails.
+ */
#ifdef CONFIG_PCI_DIRECT
pci_direct_init();
#endif
prev parent reply other threads:[~2006-08-14 20:19 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-11 22:11 Dave Hansen
2006-08-11 22:27 ` James Bottomley
2006-08-11 22:31 ` Dave Hansen
2006-08-11 22:50 ` James Bottomley
2006-08-11 23:05 ` Doug Maxey
2006-08-11 23:06 ` Dave Hansen
2006-08-11 23:21 ` Andrew Morton
2006-08-12 0:17 ` Dave Hansen
2006-08-12 0:36 ` Andrew Morton
2006-08-12 1:03 ` Greg KH
2006-08-12 18:05 ` Daniel Ritz
2006-08-12 22:02 ` Daniel Ritz
2006-08-14 12:17 ` Marcus Better
2006-08-14 16:05 ` Dave Hansen
2006-08-14 16:58 ` Daniel Ritz
2006-08-14 17:04 ` Dave Hansen
2006-08-14 17:16 ` Dave Hansen
2006-08-14 18:21 ` Daniel Ritz
2006-08-14 19:56 ` Dave Hansen
2006-08-14 20:19 ` Daniel Ritz [this message]
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=200608142219.27950.daniel.ritz-ml@swissonline.ch \
--to=daniel.ritz-ml@swissonline.ch \
--cc=James.Bottomley@steeleye.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=haveblue@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=marcus@better.se \
/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®