public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: IBM Thinkpad G41 PCMCIA problems
@ 2005-02-20  9:22 David Härdeman
  2005-02-20  9:26 ` Russell King
  0 siblings, 1 reply; 8+ messages in thread
From: David Härdeman @ 2005-02-20  9:22 UTC (permalink / raw)
  To: linux-kernel

Steven Rostedt wrote:
> I have a IBM Thinkpad G41 with a pentium4M with Hyperthreading.  I can't
> get the PCMCIA working at all.  I've tried turning off hyperthreading,
> I've tried with and without preempt, I've even added pci=noacpi. I've
> added Len's ACPI patches, but nothing works.


I see the same problem with an IBM Thinkpad G40, and only when there is 
1Gb of memory or more in the machine.

The problem was reported the first time (to my knowledge), here:
http://www.ussg.iu.edu/hypermail/linux/kernel/0306.3/0956.html
by a Thinkpad T40 user.

So the problem seems to affect at least three different Thinkpad models.

The workaround I've seen so far have either been to disable 
pci_fixup_transparent_bridge (as mentioned in this thread) or to raise 
the value of pci_mem_start.

Re,
David

lspci -vvv with pci_fixup_transparent bridge disabled:
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=05, sec-latency=64
        I/O behind bridge: 00003000-00006fff
        Memory behind bridge: d0200000-dfffffff
        Prefetchable memory behind bridge: f0000000-f7ffffff
        BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: IBM Thinkpad G41 PCMCIA problems
  2005-02-20  9:22 David Härdeman
@ 2005-02-20  9:26 ` Russell King
  2005-02-20  9:52   ` David Härdeman
  0 siblings, 1 reply; 8+ messages in thread
From: Russell King @ 2005-02-20  9:26 UTC (permalink / raw)
  To: David Härdeman; +Cc: linux-kernel

On Sun, Feb 20, 2005 at 10:22:09AM +0100, David Härdeman wrote:
> Steven Rostedt wrote:
> > I have a IBM Thinkpad G41 with a pentium4M with Hyperthreading.  I can't
> > get the PCMCIA working at all.  I've tried turning off hyperthreading,
> > I've tried with and without preempt, I've even added pci=noacpi. I've
> > added Len's ACPI patches, but nothing works.
> 
> 
> I see the same problem with an IBM Thinkpad G40, and only when there is 
> 1Gb of memory or more in the machine.

Check to see if your e820 map has a hole in it, and whether any of
your Cardbus bridge memory / region 0 resources appear in it.

If your e820 map contains a hole, I'd suspect another buggy bios.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: IBM Thinkpad G41 PCMCIA problems
  2005-02-20  9:26 ` Russell King
@ 2005-02-20  9:52   ` David Härdeman
  2005-02-20 10:19     ` Russell King
  2005-02-20 10:20     ` Dominik Brodowski
  0 siblings, 2 replies; 8+ messages in thread
From: David Härdeman @ 2005-02-20  9:52 UTC (permalink / raw)
  To: linux-kernel

On Sun, Feb 20, 2005 at 09:26:59AM +0000, Russell King wrote:
>On Sun, Feb 20, 2005 at 10:22:09AM +0100, David Härdeman wrote:
>> I see the same problem with an IBM Thinkpad G40, and only when there is 
>> 1Gb of memory or more in the machine.
>
>Check to see if your e820 map has a hole in it, and whether any of
>your Cardbus bridge memory / region 0 resources appear in it.
>
>If your e820 map contains a hole, I'd suspect another buggy bios.

e820 map:
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
 BIOS-e820: 000000000009f000 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000ce000 - 00000000000d0000 (reserved)
 BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000000f6f0000 (usable)
 BIOS-e820: 000000000f6f0000 - 000000000f700000 (reserved)
 BIOS-e820: 000000000f700000 - 000000003f6f0000 (usable)
 BIOS-e820: 000000003f6f0000 - 000000003f6f8000 (ACPI data)
 BIOS-e820: 000000003f6f8000 - 000000003f6fa000 (ACPI NVS)
 BIOS-e820: 000000003f700000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000ff800000 - 0000000100000000 (reserved)
118MB HIGHMEM available.
896MB LOWMEM available.

Is the hole between 0x36f6fa000 and 0x3f700000?

And what would be the proper way of fixing it (assuming that IBM won't 
issue a fixed BIOS)?

Re,
David

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: IBM Thinkpad G41 PCMCIA problems
  2005-02-20  9:52   ` David Härdeman
@ 2005-02-20 10:19     ` Russell King
  2005-02-20 10:57       ` David Härdeman
  2005-02-20 10:20     ` Dominik Brodowski
  1 sibling, 1 reply; 8+ messages in thread
From: Russell King @ 2005-02-20 10:19 UTC (permalink / raw)
  To: David Härdeman; +Cc: linux-kernel

On Sun, Feb 20, 2005 at 10:52:12AM +0100, David Härdeman wrote:
> e820 map:
> BIOS-provided physical RAM map:
>  BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
>  BIOS-e820: 000000000009f000 - 00000000000a0000 (reserved)
>  BIOS-e820: 00000000000ce000 - 00000000000d0000 (reserved)
>  BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved)
>  BIOS-e820: 0000000000100000 - 000000000f6f0000 (usable)
>  BIOS-e820: 000000000f6f0000 - 000000000f700000 (reserved)
>  BIOS-e820: 000000000f700000 - 000000003f6f0000 (usable)
>  BIOS-e820: 000000003f6f0000 - 000000003f6f8000 (ACPI data)
>  BIOS-e820: 000000003f6f8000 - 000000003f6fa000 (ACPI NVS)
>  BIOS-e820: 000000003f700000 - 0000000040000000 (reserved)
>  BIOS-e820: 00000000ff800000 - 0000000100000000 (reserved)
> 118MB HIGHMEM available.
> 896MB LOWMEM available.
> 
> Is the hole between 0x36f6fa000 and 0x3f700000?

Looks like it.

> And what would be the proper way of fixing it (assuming that IBM won't 
> issue a fixed BIOS)?

Try passing:

	reserve=0x3f6fa000,0x6000

to the kernel.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: IBM Thinkpad G41 PCMCIA problems
  2005-02-20  9:52   ` David Härdeman
  2005-02-20 10:19     ` Russell King
@ 2005-02-20 10:20     ` Dominik Brodowski
  2005-02-20 10:25       ` Russell King
  1 sibling, 1 reply; 8+ messages in thread
From: Dominik Brodowski @ 2005-02-20 10:20 UTC (permalink / raw)
  To: David Härdeman; +Cc: linux-kernel

On Sun, Feb 20, 2005 at 10:52:12AM +0100, David Härdeman wrote:
> On Sun, Feb 20, 2005 at 09:26:59AM +0000, Russell King wrote:
> >On Sun, Feb 20, 2005 at 10:22:09AM +0100, David Härdeman wrote:
> >>I see the same problem with an IBM Thinkpad G40, and only when there is 
> >>1Gb of memory or more in the machine.
> >
> >Check to see if your e820 map has a hole in it, and whether any of
> >your Cardbus bridge memory / region 0 resources appear in it.
> >
> >If your e820 map contains a hole, I'd suspect another buggy bios.
> 
> e820 map:
> BIOS-provided physical RAM map:
> BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
> BIOS-e820: 000000000009f000 - 00000000000a0000 (reserved)
> BIOS-e820: 00000000000ce000 - 00000000000d0000 (reserved)
> BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved)
> BIOS-e820: 0000000000100000 - 000000000f6f0000 (usable)
> BIOS-e820: 000000000f6f0000 - 000000000f700000 (reserved)
> BIOS-e820: 000000000f700000 - 000000003f6f0000 (usable)
> BIOS-e820: 000000003f6f0000 - 000000003f6f8000 (ACPI data)
> BIOS-e820: 000000003f6f8000 - 000000003f6fa000 (ACPI NVS)
> BIOS-e820: 000000003f700000 - 0000000040000000 (reserved)
> BIOS-e820: 00000000ff800000 - 0000000100000000 (reserved)
> 118MB HIGHMEM available.
> 896MB LOWMEM available.
> 
> Is the hole between 0x36f6fa000 and 0x3f700000?
> 
> And what would be the proper way of fixing it (assuming that IBM won't 
> issue a fixed BIOS)?

passing "reserve=0x3f6fa000,0x600" as kernel boot option. Please also post
/proc/iomem for further debugging, especially if this didn't help.

	Dominik

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: IBM Thinkpad G41 PCMCIA problems
  2005-02-20 10:20     ` Dominik Brodowski
@ 2005-02-20 10:25       ` Russell King
  0 siblings, 0 replies; 8+ messages in thread
From: Russell King @ 2005-02-20 10:25 UTC (permalink / raw)
  To: Dominik Brodowski, David Härdeman, linux-kernel

On Sun, Feb 20, 2005 at 11:20:59AM +0100, Dominik Brodowski wrote:
> > Is the hole between 0x36f6fa000 and 0x3f700000?
> > 
> > And what would be the proper way of fixing it (assuming that IBM won't 
> > issue a fixed BIOS)?
> 
> passing "reserve=0x3f6fa000,0x600" as kernel boot option. Please also post
> /proc/iomem for further debugging, especially if this didn't help.

You're missing a zero in the length. 8)

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: IBM Thinkpad G41 PCMCIA problems
  2005-02-20 10:19     ` Russell King
@ 2005-02-20 10:57       ` David Härdeman
  0 siblings, 0 replies; 8+ messages in thread
From: David Härdeman @ 2005-02-20 10:57 UTC (permalink / raw)
  To: linux-kernel

On Sun, Feb 20, 2005 at 10:19:02AM +0000, Russell King wrote:
>On Sun, Feb 20, 2005 at 10:52:12AM +0100, David Härdeman wrote:
>> Is the hole between 0x36f6fa000 and 0x3f700000?
>
>Looks like it.
>
>> And what would be the proper way of fixing it (assuming that IBM won't 
>> issue a fixed BIOS)?
>
>Try passing:
>
>	reserve=0x3f6fa000,0x6000
>
>to the kernel.
>

Thanks a bunch, that worked, now I don't have to patch my kernel 
to get PCMCIA working anymore :-)

//David

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: IBM Thinkpad G41 PCMCIA problems
       [not found]       ` <3zWYX-2Ob-23@gated-at.bofh.it>
@ 2005-02-21  9:49         ` Bjørn Mork
  0 siblings, 0 replies; 8+ messages in thread
From: Bjørn Mork @ 2005-02-21  9:49 UTC (permalink / raw)
  To: linux-kernel

I think I might have a new datapoint to add to this discussion:
I've got a IBM Thinkpad T42 with 1 GB RAM.  Never had any problems
with PCMCIA, but that's probably just because another PCI device has
been mapped into the hole in the BIOS memory map:

bjorn@obelix:~$ grep e820 /var/log/dmesg 
 BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
 BIOS-e820: 000000000009f000 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000d2000 - 00000000000d4000 (reserved)
 BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003ff50000 (usable)
 BIOS-e820: 000000003ff50000 - 000000003ff67000 (ACPI data)
 BIOS-e820: 000000003ff67000 - 000000003ff79000 (ACPI NVS)
 BIOS-e820: 000000003ff80000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000ff800000 - 0000000100000000 (reserved)

bjorn@obelix:~$ cat /proc/iomem 
00000000-0009efff : System RAM
0009f000-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000cffff : Video ROM
000d0000-000d0fff : Adapter ROM
000d1000-000d1fff : Adapter ROM
000d2000-000d3fff : reserved
000e0000-000effff : Extension ROM
000f0000-000fffff : System ROM
00100000-3ff4ffff : System RAM
  00100000-002d4013 : Kernel code
  002d4014-00399f3f : Kernel data
3ff50000-3ff66fff : ACPI Tables
3ff67000-3ff78fff : ACPI Non-volatile Storage
3ff79000-3ff793ff : 0000:00:1f.1
3ff80000-3fffffff : reserved
40000000-403fffff : PCI CardBus #03
40400000-407fffff : PCI CardBus #03
40800000-40bfffff : PCI CardBus #07
40c00000-40ffffff : PCI CardBus #07
b0000000-b0000fff : 0000:02:00.0
  b0000000-b0000fff : yenta_socket
b1000000-b1000fff : 0000:02:00.1
  b1000000-b1000fff : yenta_socket
c0000000-c00003ff : 0000:00:1d.7
  c0000000-c00003ff : ehci_hcd
c0000800-c00008ff : 0000:00:1f.5
  c0000800-c00008ff : Intel 82801DB-ICH4
c0000c00-c0000dff : 0000:00:1f.5
  c0000c00-c0000dff : Intel 82801DB-ICH4
c0100000-c01fffff : PCI Bus #01
  c0100000-c010ffff : 0000:01:00.0
    c0100000-c010ffff : radeonfb
c0200000-c020ffff : 0000:02:01.0
  c0200000-c020ffff : e1000
c0210000-c021ffff : 0000:02:02.0
  c0210000-c021ffff : ath
c0220000-c023ffff : 0000:02:01.0
  c0220000-c023ffff : e1000
d0000000-dfffffff : 0000:00:00.0
e0000000-e7ffffff : PCI Bus #01
  e0000000-e7ffffff : 0000:01:00.0
    e0000000-e7ffffff : radeonfb
ff800000-ffffffff : reserved

bjorn@obelix:~$ lspci -vv -s 0:1f.1
0000:00:1f.1 IDE interface: Intel Corp. 82801DBM (ICH4) Ultra ATA Storage Controller (rev 01) (prog-if 8a [Master SecP PriP])
        Subsystem: IBM: Unknown device 052d
        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: 0
        Interrupt: pin A routed to IRQ 11
        Region 0: I/O ports at <unassigned>
        Region 1: I/O ports at <unassigned>
        Region 2: I/O ports at <unassigned>
        Region 3: I/O ports at <unassigned>
        Region 4: I/O ports at 1860 [size=16]
        Region 5: Memory at 3ff79000 (32-bit, non-prefetchable) [size=1K]



Bjørn
-- 
You have the lack of intelligence of a sadist.  

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-02-21  9:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <3zVzJ-1GD-5@gated-at.bofh.it>
     [not found] ` <3zVzM-1GD-17@gated-at.bofh.it>
     [not found]   ` <3zW2R-1Yl-15@gated-at.bofh.it>
     [not found]     ` <3zWvU-2tS-25@gated-at.bofh.it>
     [not found]       ` <3zWYX-2Ob-23@gated-at.bofh.it>
2005-02-21  9:49         ` IBM Thinkpad G41 PCMCIA problems Bjørn Mork
2005-02-20  9:22 David Härdeman
2005-02-20  9:26 ` Russell King
2005-02-20  9:52   ` David Härdeman
2005-02-20 10:19     ` Russell King
2005-02-20 10:57       ` David Härdeman
2005-02-20 10:20     ` Dominik Brodowski
2005-02-20 10:25       ` Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox