mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@osdl.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: LKML <linux-kernel@vger.kernel.org>, Greg KH <gregkh@suse.de>
Subject: Re: IBM Thinkpad G41 PCMCIA problems [Was: Yenta TI: ... no PCI interrupts. Fish. Please report.]
Date: Sat, 19 Feb 2005 16:59:45 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0502191648110.14176@ppc970.osdl.org> (raw)
In-Reply-To: <1108858971.8413.147.camel@localhost.localdomain>



On Sat, 19 Feb 2005, Steven Rostedt wrote:
> 
> 0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev 81) (prog-if 00 [Normal decode])
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
>         Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR+
>         Latency: 0
>         Bus: primary=00, secondary=02, subordinate=08, sec-latency=168
>         I/O behind bridge: 00003000-00006fff
>         Memory behind bridge: c2000000-cfffffff
>         Prefetchable memory behind bridge: f0000000-f7ffffff
>         BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-

This is the bridge that your cardbus controller is behind:

> 0000:02:01.0 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)
>         Subsystem: IBM ThinkPad T30/T40
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
>         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 168, Cache Line Size: 0x20 (128 bytes)
>         Interrupt: pin A routed to IRQ 177
>         Region 0: Memory at 3fefb000 (32-bit, non-prefetchable) [size=4K]
>         Bus: primary=02, secondary=03, subordinate=06, sec-latency=176
>         Memory window 0: 40000000-403ff000 (prefetchable)
>         Memory window 1: 40400000-407ff000
>         I/O window 0: 00004000-000040ff
>         I/O window 1: 00004400-000044ff
>         BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
>         16-bit legacy interface ports at 0001
> 
> 0000:02:01.1 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)
>         Subsystem: IBM ThinkPad T30/T40
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
>         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 168, Cache Line Size: 0x20 (128 bytes)
>         Interrupt: pin B routed to IRQ 185
>         Region 0: Memory at 3fefc000 (32-bit, non-prefetchable) [size=4K]
>         Bus: primary=02, secondary=07, subordinate=0a, sec-latency=176
>         Memory window 0: 40800000-40bff000 (prefetchable)
>         Memory window 1: 40c00000-40fff000
>         I/O window 0: 00004800-000048ff
>         I/O window 1: 00004c00-00004cff
>         BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt- PostWrite+
>         16-bit legacy interface ports at 0001

And quite frankly, their "Region 0:" things look broken: the bridge is a 
"Normal decode" bridge, which means that anything behind that bridge 
should only map things _within_ the IO windows of the bridge, ie all IO 
mappings on the cardbus bridge should be inside the IO mappings of the 
parent bridge.  But they aren't. 

Now, your interrupts are a bit insane too, but they may actually be 
correct for all I know. The Yenta code will just decide that interrupts 
can't be working, since when it tries to trigger an interrupt it won't 
come in: but that is quite possibly not due to broken interrupts, but 
because the whole controller IO-MEM region has been mapped at the wrong 
place, so the controller simply never _sees_ our writes.

The parent bridge has IO port mappings at 00003000-00006fff, and IO memory 
mappings at c2000000-cfffffff and f0000000-f7ffffff. The cardbus stuff 
_should_ all be behind those regions, but instead they are at 3fefb000 and 
40000000-40fff000 (memory-mapped) and 00004000-00004cff (IO mapped).

So something is seriously broken.

That's a PCI layer brokenness, btw, not a PCMCIA brokenness. 

Can you enable debugging in arch/i386/pci/pci.h and post the whole bootup 
dmesg. Also, can you show what /proc/iomem looks like, and what 

	ls -R /sys/devices/pci*

says (that cardbus controller should be properly nested _inside_ that PCI 
bridge, dammit!).

Greg, any ideas?

		Linus

  reply	other threads:[~2005-02-20  0:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-20  0:22 Steven Rostedt
2005-02-20  0:59 ` Linus Torvalds [this message]
2005-02-20  1:36   ` Steven Rostedt
2005-02-20  2:10     ` Linus Torvalds
2005-02-20  3:38       ` Steven Rostedt
2005-02-20  4:02         ` Linus Torvalds
2005-03-12  3:31           ` Adam Belay
2005-02-20  6:51         ` Linus Torvalds
2005-02-20  7:06           ` Linus Torvalds
2005-02-20 11:48           ` Steven Rostedt
2005-02-20  8:22     ` Russell King
2005-02-20 10:20       ` Russell King
2005-02-20 11:59         ` Steven Rostedt
2005-02-20 11:54       ` Steven Rostedt
2005-02-20 17:23       ` Linus Torvalds
2005-02-20 17:56         ` Linus Torvalds
2005-02-20 21:26           ` IBM Thinkpad G41 PCMCIA problems [Was: Yenta TI: ... no PCI David Härdeman
2005-02-21  4:19           ` IBM Thinkpad G41 PCMCIA problems [Was: Yenta TI: ... no PCI interrupts. Fish. Please report.] Steven Rostedt
2005-03-12  3:36         ` Adam Belay

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=Pine.LNX.4.58.0502191648110.14176@ppc970.osdl.org \
    --to=torvalds@osdl.org \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rostedt@goodmis.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®