From: Daniel Ritz <daniel.ritz-ml@swissonline.ch>
To: Pavel Roskin <proski@gnu.org>
Cc: Marcus Better <marcus@better.se>,
linux-pcmcia <linux-pcmcia@lists.infradead.org>,
Greg KH <gregkh@suse.de>, Andrew Morton <akpm@osdl.org>,
"linux-kernel" <linux-kernel@vger.kernel.org>,
Andi Kleen <ak@suse.de>
Subject: Re: pccards are not detected
Date: Thu, 3 Aug 2006 01:02:47 +0200 [thread overview]
Message-ID: <200608030102.48045.daniel.ritz-ml@swissonline.ch> (raw)
In-Reply-To: <1154551499.7714.13.camel@dv>
On Wednesday 02 August 2006 22.44, Pavel Roskin wrote:
> On Wed, 2006-08-02 at 20:01 +0200, Daniel Ritz wrote:
> > On Wednesday 02 August 2006 19.42, Pavel Roskin wrote:
> > > It depends. For some custom systems, BIOS may be a lifesaver. Let's
> > > not change the whole logic of the PCI detection because of one broken
> > > BIOS.
> >
> > errm. 2.6.16 automatically uses direct access. if first shows the PCI BIOS
> > line, then the direct access line in dmesg. pci_raw_ops is first set to
> > PCI_BIOS to be overwritten with direct access immediatley after that.
> >
> > eg. from a 2.6.16.20 on a buggy box:
> > PCI: PCI BIOS revision 2.10 entry at 0xfb9a0, last bus=0
> > PCI: Using configuration type 1
> > cardbus would be bus 1-4. 2.6.17 breaks here...
>
> If it's a laptop and CardBus is integrated, it's a BIOS bug. BIOS
> should know about integrated hardware. No excuses.
>
> > > The standard solution for such problems is to add a "quirk" to
> > > drivers/pci/quirks.c or arch/i386/kernel/quirks.c
>
> > no. it is a clear regression and the patch in fact just restores the old
> > behaviour with the exception that the ordering is more clear now than it
> > was before...
>
> My intention was just to remind you about the quirks.
>
> > 2.6.16: pci bios comes first, is overriden by direct access
> > 2.6.17: pci bios comes first. direct access is never used if pci bios probe "worked"
> > 2.6.17+patch: pci direct access probed first, if it fails pci bios is used.
>
> The way you put it above, it sounds like a major change. But I missed
> the actual patch. Maybe it just reorders a few printk()s compared to
> 2.6.16, I don't know.
>
ok, in other words:
2.6.16: end result: direct access; if direct doesn't work: pcibios
2.6.17: end result: pci bios (only direct if pcibios fails! )
2.6.17+patch: end result: direct access; if direct doesn't work: pcibios
=> net result is the same, but less code is executed, order is clear always.
> I still believe that adding quirk would be a good solution, in
> particular because it would work even if direct PCI probing is disabled.
> And then you can reorder the probing as much as you want.
>
no, a quirk is bad for the simple reason that 2.6.16 used to work on systems
(laptops) where 2.6.17 fails for cardbus...there's no way you can wait on all
the reports and add quirks for them one-by-one. and distros are still using
kernel < 2.6.17...
btw. it's commit 92c05fc1a32e5ccef5e0e8201f32dcdab041524c
([PATCH] PCI: Give PCI config access initialization a defined ordering)
that broke things on those laptops. cc'ing Andi...
Andi, for reference:
http://marc.theaimsgroup.com/?l=linux-kernel&m=115454028402107
rgds
-daniel
next parent reply other threads:[~2006-08-02 23:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200608021931.46058.daniel.ritz-ml@swissonline.ch>
[not found] ` <200608022001.45140.daniel.ritz-ml@swissonline.ch>
[not found] ` <1154551499.7714.13.camel@dv>
2006-08-02 23:02 ` Daniel Ritz [this message]
2006-08-02 23:23 ` Andi Kleen
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=200608030102.48045.daniel.ritz-ml@swissonline.ch \
--to=daniel.ritz-ml@swissonline.ch \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pcmcia@lists.infradead.org \
--cc=marcus@better.se \
--cc=proski@gnu.org \
/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®