unable to remove socket power / 2.6.13-rc3-mm2 / TP 600X

Sanjoy Mahajan sanjoy at mrao.cam.ac.uk
Fri Jul 29 02:09:49 EDT 2005


I still get 'unable to remove socket power'.

Here is the dmesg error, which happens after 'cardctl eject' with the
Intersil (or my Xircom) card in the slot:

  PCMCIA: socket e233c02c: *** DANGER *** unable to remove socket power

I don't think it's the same problem described in the known problems
section of
<http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html>.  For one,
I'm usin 2.6.13-rc3-mm2, and the problem described on that page should
be fixed in 2.6.11.  Also, the BIOS RAM map doesn't have any holes in
the physical RAM, and lspci -vv doesn't show the Cardbus bridge grabbing
any such illegal ram anyway.

I'm happy to send more debugging information or try tests.  Below is
hopefully useful information.  Since this involves the in-kernel
pcmcia-cs, should I send this to LKML as well (or put it on the
bugzilla)?

System       : Thinkpad 600X, Pentium III 650 MHz, 576 MB [0x24000000]
PCMCIA card  : Intersil ISL3890 [Prism GT/Prism Duette] (prism54
               wireless card), but happens with a Xircom ethernet/modem combo
uname -rv    : 2.6.13-rc3-mm2-200507281 #1 PREEMPT Thu Jul 28 03:27:57 EDT 2005
               (on a Debian testing/unstable system)
cardctl -V   : 3.2.5

$ lspci -v

0000:00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
	Flags: bus master, medium devsel, latency 64
	Memory at 40000000 (32-bit, prefetchable) [size=64M]
	Capabilities: <available only to root>

0000:00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03) (prog-if 00 [Normal decode])
	Flags: bus master, 66MHz, medium devsel, latency 168
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=176
	I/O behind bridge: 0000d000-0000dfff
	Memory behind bridge: 70000000-dfffffff
	Prefetchable memory behind bridge: e0000000-f7ffffff

0000:00:02.0 CardBus bridge: Texas Instruments PCI1450 (rev 03)
	Subsystem: IBM: Unknown device 0130
	Flags: bus master, medium devsel, latency 168, IRQ 11
	Memory at 50103000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=00, secondary=02, subordinate=05, sec-latency=176
	Memory window 0: 24000000-243ff000 (prefetchable)
	Memory window 1: 24400000-247ff000
	I/O window 0: 00004800-000049ff
	I/O window 1: 00004c00-00004dff
	16-bit legacy interface ports at 0001

0000:00:02.1 CardBus bridge: Texas Instruments PCI1450 (rev 03)
	Subsystem: IBM: Unknown device 0130
	Flags: bus master, medium devsel, latency 168, IRQ 11
	Memory at 50102000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=00, secondary=06, subordinate=09, sec-latency=176
	Memory window 0: 24800000-24bff000 (prefetchable)
	Memory window 1: 24c00000-24fff000
	I/O window 0: 00005000-000051ff
	I/O window 1: 00005400-000055ff
	16-bit legacy interface ports at 0001

0000:00:03.0 Communication controller: Agere Systems (former Lucent Microelectronics) WinModem 56k (rev 01)
	Subsystem: IBM: Unknown device 018c
	Flags: bus master, medium devsel, latency 0, IRQ 11
	Memory at 50101000 (32-bit, non-prefetchable) [size=256]
	I/O ports at 02f8 [size=8]
	I/O ports at 4400 [size=256]
	Capabilities: <available only to root>

0000:00:06.0 Multimedia audio controller: Cirrus Logic CS 4614/22/24 [CrystalClear SoundFusion Audio Accelerator] (rev 01)
	Subsystem: IBM: Unknown device 0153
	Flags: slow devsel, IRQ 11
	Memory at 50100000 (32-bit, non-prefetchable) [size=4K]
	Memory at 50000000 (32-bit, non-prefetchable) [size=1M]
	Capabilities: <available only to root>

0000:00:07.0 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02)
	Flags: bus master, medium devsel, latency 0

0000:00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 80 [Master])
	Flags: bus master, medium devsel, latency 48
	I/O ports at fcf0 [size=16]

0000:00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
	Flags: medium devsel, IRQ 11
	I/O ports at 4000 [size=32]

0000:00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 03)
	Flags: medium devsel, IRQ 9

0000:01:00.0 VGA compatible controller: Neomagic Corporation NM2360 [MagicMedia 256ZX] (prog-if 00 [VGA])
	Subsystem: IBM: Unknown device 0152
	Flags: bus master, medium devsel, latency 128, IRQ 11
	Memory at e0000000 (32-bit, prefetchable) [size=32M]
	Memory at 70000000 (32-bit, non-prefetchable) [size=4M]
	Memory at 70400000 (32-bit, non-prefetchable) [size=1M]
	Capabilities: <available only to root>

0000:06:00.0 Network controller: Intersil Corporation Intersil ISL3890 [Prism GT/Prism Duette] (rev 01)
	Subsystem: Intersil Corporation: Unknown device 0000
	Flags: bus master, medium devsel, latency 80, IRQ 11
	Memory at 24800000 (32-bit, non-prefetchable) [size=8K]
	Capabilities: <available only to root>

$ cat /proc/iomem
00000000-0009fbff : System RAM
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000cbfff : Video ROM
000f0000-000fffff : System ROM
00100000-23fcffff : System RAM
  00100000-0030e974 : Kernel code
  0030e975-003b5ea7 : Kernel data
23fd0000-23fdefff : ACPI Tables
23fdf000-23fdffff : ACPI Non-volatile Storage
23fe0000-23ffffff : reserved
24000000-243fffff : PCI CardBus #02
24400000-247fffff : PCI CardBus #02
24800000-24bfffff : PCI CardBus #06
  24800000-24801fff : 0000:06:00.0
    24800000-24801fff : prism54
24c00000-24ffffff : PCI CardBus #06
40000000-43ffffff : 0000:00:00.0
50000000-500fffff : 0000:00:06.0
50100000-50100fff : 0000:00:06.0
50101000-501010ff : 0000:00:03.0
50102000-50102fff : 0000:00:02.1
  50102000-50102fff : yenta_socket
50103000-50103fff : 0000:00:02.0
  50103000-50103fff : yenta_socket
70000000-dfffffff : PCI Bus #01
  70000000-703fffff : 0000:01:00.0
  70400000-704fffff : 0000:01:00.0
e0000000-f7ffffff : PCI Bus #01
  e0000000-e1ffffff : 0000:01:00.0
fffe0000-ffffffff : reserved

$ cat /proc/ioports
0000-001f : dma1
0020-0021 : pic1
0022-0022 : PM2_CNT_BLK
0040-0043 : timer0
0050-0053 : timer1
0060-006f : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
01f0-01f7 : ide0
02f8-02ff : 0000:00:03.0
03bc-03be : parport0
03c0-03df : vga+
03f6-03f6 : ide0
0cf8-0cff : PCI conf1
15e0-15ef : motherboard
4000-401f : 0000:00:07.2
4400-44ff : 0000:00:03.0
4800-49ff : PCI CardBus #02
4c00-4dff : PCI CardBus #02
5000-51ff : PCI CardBus #06
5400-55ff : PCI CardBus #06
d000-dfff : PCI Bus #01
ef00-ef3f : 0000:00:07.3
  ef00-ef3f : motherboard
    ef00-ef03 : PM1a_EVT_BLK
    ef04-ef05 : PM1a_CNT_BLK
    ef08-ef0b : PM_TMR
    ef0c-ef0f : GPE0_BLK
    ef10-ef15 : ACPI CPU throttle
efa0-efbf : 0000:00:07.3
  efa0-efaf : motherboard
fcf0-fcff : 0000:00:07.1
  fcf0-fcf7 : ide0
  fcf8-fcff : ide1

PCMCIA msgs from bootup:

[4294667.296000] Linux version 2.6.13-rc3-mm2-200507281 (root at sanjoy) (gcc version 3.3.5 (Debian 1:3.3.5-13)) #1 PREEMPT Thu Jul 28 03:27:57 EDT 2005
[4294667.296000] BIOS-provided physical RAM map:
[4294667.296000]  BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
[4294667.296000]  BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
[4294667.296000]  BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
[4294667.296000]  BIOS-e820: 0000000000100000 - 0000000023fd0000 (usable)
[4294667.296000]  BIOS-e820: 0000000023fd0000 - 0000000023fdf000 (ACPI data)
[4294667.296000]  BIOS-e820: 0000000023fdf000 - 0000000023fe0000 (ACPI NVS)
[4294667.296000]  BIOS-e820: 0000000023fe0000 - 0000000024000000 (reserved)
[4294667.296000]  BIOS-e820: 00000000fffe0000 - 0000000100000000 (reserved)
[4294667.296000] 575MB LOWMEM available.
[4294667.296000] On node 0 totalpages: 147408
[4294667.296000]   DMA zone: 4096 pages, LIFO batch:1
[4294667.296000]   Normal zone: 143312 pages, LIFO batch:31
[4294667.296000]   HighMem zone: 0 pages, LIFO batch:1
[4294667.296000] DMI 2.2 present.

[4294667.296000] Allocating PCI resources starting at 24000000 (gap: 24000000:dbfe0000)

[4294667.296000] Kernel command line: BOOT_IMAGE=2.6.13 ro root=305 idebus=66 apm=off acpi=force pci=noacpi single

[4294690.686000] PCI: Found IRQ 11 for device 0000:00:02.0
[4294690.686000] PCI: Sharing IRQ 11 with 0000:00:06.0
[4294690.686000] PCI: Sharing IRQ 11 with 0000:01:00.0
[4294690.686000] Yenta: CardBus bridge found at 0000:00:02.0 [1014:0130]
[4294690.687000] PCI: Bus 2, cardbus bridge: 0000:00:02.0
[4294690.687000]   IO window: 00004800-000049ff
[4294690.687000]   IO window: 00004c00-00004dff
[4294690.687000]   PREFETCH window: 24000000-243fffff
[4294690.687000]   MEM window: 24400000-247fffff
[4294690.687000] Yenta: Enabling burst memory read transactions
[4294690.687000] Yenta: Using INTVAL to route CSC interrupts to PCI
[4294690.687000] Yenta: Routing CardBus interrupts to PCI
[4294690.687000] Yenta TI: socket 0000:00:02.0, mfunc 0x00001000, devctl 0x66
[4294690.687000] spurious 8259A interrupt: IRQ7.
[4294690.910000] Yenta: ISA IRQ mask 0x04f8, PCI irq 11
[4294690.910000] Socket status: 30000006
[4294690.953000] PCI: Found IRQ 11 for device 0000:00:02.1
[4294690.953000] Yenta: CardBus bridge found at 0000:00:02.1 [1014:0130]
[4294690.953000] PCI: Bus 6, cardbus bridge: 0000:00:02.1
[4294690.954000]   IO window: 00005000-000051ff
[4294690.954000]   IO window: 00005400-000055ff
[4294690.954000]   PREFETCH window: 24800000-24bfffff
[4294690.954000]   MEM window: 24c00000-24ffffff
[4294690.954000] Yenta: Using INTVAL to route CSC interrupts to PCI
[4294690.954000] Yenta: Routing CardBus interrupts to PCI
[4294690.954000] Yenta TI: socket 0000:00:02.1, mfunc 0x00001000, devctl 0x66
[4294691.177000] Yenta: ISA IRQ mask 0x04f8, PCI irq 11
[4294691.177000] Socket status: 30000020
[4294692.452000] PCI: Found IRQ 11 for device 0000:00:06.0
[4294692.452000] PCI: Sharing IRQ 11 with 0000:00:02.0
[4294692.452000] PCI: Sharing IRQ 11 with 0000:01:00.0
[4294692.657000] Loaded prism54 driver, version 1.2

PCMCIA in-kernel config options (not using the hotplug variant):

#
# PCCARD (PCMCIA/CardBus) support
#
CONFIG_PCCARD=m
CONFIG_PCMCIA_DEBUG=y
CONFIG_PCMCIA=m
CONFIG_PCMCIA_LOAD_CIS=y
CONFIG_PCMCIA_IOCTL=y
CONFIG_CARDBUS=y

#
# PC-card bridges
#
CONFIG_YENTA=m
# CONFIG_PD6729 is not set
# CONFIG_I82092 is not set
CONFIG_I82365=m
# CONFIG_TCIC is not set
CONFIG_PCMCIA_PROBE=y
CONFIG_PCCARD_NONSTATIC=m

And /etc/pcmcia/config.opts:

#
# Local PCMCIA Configuration File
#
#----------------------------------------------------------------------

# System resources available for PCMCIA devices

include port 0x100-0x4ff, port 0x800-0x8ff, port 0xc00-0xcff
include memory 0xc0000-0xfffff
include memory 0xa0000000-0xa0ffffff, memory 0x60000000-0x60ffffff

# High port numbers do not always work...
# include port 0x1000-0x17ff

# Extra port range for IBM Token Ring
# include port 0xa00-0xaff

# Resources we should not use, even if they appear to be available

# First built-in serial port
exclude irq 4
# Second built-in serial port
#exclude irq 3
# First built-in parallel port
exclude irq 7
# usb:
exclude irq 11

#----------------------------------------------------------------------

device "xirc2ps_cs"
  class "network" module "xirc2ps_cs" opts "if_port=4"



-Sanjoy

`A society of sheep must in time beget a government of wolves.'
   - Bertrand de Jouvenal



More information about the linux-pcmcia mailing list