From: Linus Torvalds <torvalds@linux-foundation.org>
To: Frans Pop <elendil@planet.nl>
Cc: mano@roarinelk.homelinux.net, rjw@sisk.pl, willy@linux.intel.com,
linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org,
akpm@linux-foundation.org, andrew.patterson@hp.com
Subject: Re: PCI resources allocation problem on Toshiba Satellite A40
Date: Fri, 14 Aug 2009 10:04:07 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.2.01.0908140957050.3162@localhost.localdomain> (raw)
In-Reply-To: <200908141850.44736.elendil@planet.nl>
On Fri, 14 Aug 2009, Frans Pop wrote:
> On Friday 14 August 2009, Linus Torvalds wrote:
> > Can you send
> > - output of /proc/ioports both with the current kernel (or the 2.6.30
> > kernel - they should be identical) and with one of the kernels in
> > between that didn't warn
> > - send the full bootup dmesg with CONFIG_PCI_DEBUG enabled
> >
> > and we can probably figure it out.
>
> Attached.
Ok, this one actually looks obvious from just the ioports thing:
--- ioports.a76117d 2009-08-14 18:44:42.000000000 +0200
+++ ioports.current-git 2009-08-14 18:44:42.000000000 +0200
...
+18c0-18df : 0000:00:1d.0
+ 18c0-18df : uhci_hcd
+18e0-18ff : 0000:00:1d.1
+ 18e0-18ff : uhci_hcd
bfa0-bfaf : 0000:00:1f.1
bfa0-bfaf : piix
c000-cfff : PCI Bus 0000:01
c000-c0ff : PCI CardBus 0000:02
c400-c4ff : PCI CardBus 0000:02
cf40-cf7f : 0000:01:08.0
cf40-cf7f : e100
- cf80-cf9f : 0000:00:1d.1
- cf80-cf9f : uhci_hcd
- cfe0-cfff : 0000:00:1d.0
- cfe0-cfff : uhci_hcd
That old cf80-cf9f/cfe0-cfff location is just totally invalid. Your UHCI
device is (as it shows) PCI device 0000:00:1d, functions 0/1. In other
words, they are on PCI bus 0.
But the c000-cfff area is a window that has been set up for PCI bus 1.
The ioports.a76117d version is simply wrong. The Linux PCI layer did the
right thing, and moved the silly device away from that PCI bus 1 window.
Now, it so happens that I bet it does _work_ in there, but that's likely
because that 0000:00:1d.x device is on the southbridge chip itself, and it
probably simply gets decoded before it any access is even sent out on the
PCI bus and hits the bridge for bus#1. But the fact is, your BIOS has
simply set up the devices in a totally insane way, and I think the kernel
did everything right.
So the fact that it "worked" for a few kernels was simply due to a kernel
bug, where "pci_claim_resource()" incorrectly allowed the resource to be
inserted into a resource window that wasn't actually its parent, and a
crazy BIOS that did crazy things, together with a chipset where those
crazy things just _happened_ to work because of how decoding was done.
Linus
next prev parent reply other threads:[~2009-08-14 17:06 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-02 14:19 [Regression] PCI resources allocation problem on HP nx6325 Rafael J. Wysocki
2009-08-02 16:39 ` Linus Torvalds
2009-08-02 17:15 ` Matthew Wilcox
2009-08-02 17:19 ` Linus Torvalds
2009-08-02 17:25 ` Matthew Wilcox
2009-08-02 20:16 ` Rafael J. Wysocki
2009-08-02 21:14 ` Linus Torvalds
2009-08-03 3:10 ` Andrew Patterson
2009-08-03 21:14 ` Andrew Patterson
2009-08-03 16:59 ` Manuel Lauss
2009-08-04 23:04 ` Linus Torvalds
2009-08-05 15:51 ` Manuel Lauss
2009-08-05 16:25 ` Linus Torvalds
2009-08-05 16:38 ` Linus Torvalds
2009-08-05 17:09 ` Manuel Lauss
2009-08-07 18:15 ` Linus Torvalds
2009-08-07 18:40 ` Linus Torvalds
2009-08-11 16:47 ` Manuel Lauss
2009-08-13 18:16 ` Linus Torvalds
2009-08-13 19:28 ` Frans Pop
2009-08-13 19:46 ` Linus Torvalds
2009-08-13 20:35 ` Frans Pop
2009-08-14 1:40 ` PCI resources allocation problem on Toshiba Satellite A40 Frans Pop
2009-08-14 1:47 ` Linus Torvalds
2009-08-14 16:50 ` Frans Pop
2009-08-14 17:04 ` Linus Torvalds [this message]
2009-08-14 17:35 ` Frans Pop
2009-08-02 16:59 ` [Regression] PCI resources allocation problem on HP nx6325 Matthew Wilcox
2009-08-02 20:18 ` Rafael J. Wysocki
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=alpine.LFD.2.01.0908140957050.3162@localhost.localdomain \
--to=torvalds@linux-foundation.org \
--cc=akpm@linux-foundation.org \
--cc=andrew.patterson@hp.com \
--cc=elendil@planet.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mano@roarinelk.homelinux.net \
--cc=rjw@sisk.pl \
--cc=willy@linux.intel.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;
as well as URLs for NNTP newsgroup(s).