Hello:
I am trying to understand why this is happening. I have an older laptop and
a new old pcmcia serial interface card ("Quatech Inc, RS-232 Serial Port PC
Card, SSP-100").
So, when I first booted the 4.6 stable image with the pcmcia card in the
slot, it would not recognize it ("com3 at pcmcia0 function 0: can't allocate
i/o space").
Then, I did a bunch of searching, and eventually, figured out how to change
the i/o memory space for pcic0 using config; and, it worked.
But then, then next day, it didn't (I booted the modified kernel, but again
got the same i/o space error).
So, I played with config some more, disable com0,1,2,3; played with the
settings for i/o address and size; and eventually, it worked again.
But, again, the next day, it went unrecognized. So, I played with config
some more, changed i/o address/size, made a new pcmcia com0, disabled
pcic1,2, and maybe something more, and got it to work.
This time I captured the dmesg. Here it is:
OpenBSD 4.6 (GENERIC) #58: Thu Jul 9 21:24:42 MDT 2009
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz ("GenuineIntel"
686-class) 1.20 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS
,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
real mem = 266891264 (254MB)
avail mem = 249249792 (237MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/22/03, BIOS32 rev. 0 @ 0xfd891,
SMBIOS rev. 2.31 @ 0xd8010 (15 entries)
bios0: vendor Phoenix Technologies LTD version "R0202B3" date 04/22/03
bios0: Sony Corporation PCG-V505BC(UC)
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP BOOT SSDT SSDT
acpi0: wakeup devices PWRB(S5) CRD0(S3) LAN_(S3) USB1(S3) USB2(S3) USB3(S3)
EC0_(S5) MODE(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (HUB_)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, FVS, 2000, 1200 MHz
acpitz0 at acpi0: critical temperature 90 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PWRB
acpibat0 at acpi0: BAT1 type LION oem "Sony Corp."
acpiac0 at acpi0: AC unit offline
bios0: ROM list: 0xc0000/0x10000 0xd8000/0x4000! 0xdc000/0x4000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82845 Host" rev 0x04
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xec000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "Intel 82845 AGP" rev 0x04
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility M6" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: irq 9
drm0 at radeondrm0
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x42
pci2 at ppb1 bus 2
cbb0 at pci2 dev 5 function 0 "Ricoh 5C475 CardBus" rev 0xb8: couldn't map
interrupt
"Ricoh 5C551 Firewire" rev 0x00 at pci2 dev 5 function 1 not configured
ohci0 at pci2 dev 7 function 0 "NEC USB" rev 0x43: irq 9, version 1.0,
legacy support
ohci1 at pci2 dev 7 function 1 "NEC USB" rev 0x43: couldn't map interrupt
ehci0 at pci2 dev 7 function 2 "NEC USB" rev 0x04: couldn't map interrupt
fxp0 at pci2 dev 8 function 0 "Intel PRO/100 VE" rev 0x42: couldn't map
interrupt
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "NEC OHCI root hub" rev 1.00/1.00 addr 1
ichpcib0 at pci0 dev 31 function 0 "Intel 82801CAM LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801CAM IDE" rev 0x02: DMA,
channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <IC25N040ATMR04-0>
wd0: 16-sector PIO, LBA48, 38154MB, 78140160 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MATSHITA, UJDA745 DVD/CDRW, 1.05> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 "Intel 82801CA/CAM SMBus" rev 0x02:
polling
iic0 at ichiic0
spdmem0 at iic0 addr 0x54: 256MB DDR SDRAM non-parity PC2300CL2.5
auich0 at pci0 dev 31 function 5 "Intel 82801CA/CAM AC97" rev 0x02"Intel
82801CA/CAM Modem" rev 0x02 at pci0 dev 31 function 6 not configured
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pcic0 at isa0 port 0x3e0/2 iomem 0xe0000/65536
pcic0 controller 0: <Intel 82365SL rev 1> has socket A only
pcmcia0 at pcic0 controller 0 socket 0
com0 at pcmcia0 function 0 "Quatech Inc, RS-232 Serial Port PC Card,
SSP-100" port 0x2f8/8: ns16550a, 16 byte fifo
, irq 3pcic0: irq 4, polling enabled
biomask efe5 netmask efe5 ttymask ffff
mtrr: Pentium Pro MTRR support
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
I turn the laptop on and off a few times. At first it works, but then, all
of a sudden, it is gone. Dmesg below:
OpenBSD 4.6 (GENERIC) #58: Thu Jul 9 21:24:42 MDT 2009
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz ("GenuineIntel"
686-class) 1.20 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS
,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
real mem = 266891264 (254MB)
avail mem = 249249792 (237MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/22/03, BIOS32 rev. 0 @ 0xfd891,
SMBIOS rev. 2.31 @ 0xd8010 (15 entries)
bios0: vendor Phoenix Technologies LTD version "R0202B3" date 04/22/03
bios0: Sony Corporation PCG-V505BC(UC)
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP BOOT SSDT SSDT
acpi0: wakeup devices PWRB(S5) CRD0(S3) LAN_(S3) USB1(S3) USB2(S3) USB3(S3)
EC0_(S5) MODE(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (HUB_)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, FVS, 2000, 1200 MHz
acpitz0 at acpi0: critical temperature 90 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PWRB
acpibat0 at acpi0: BAT1 type LION oem "Sony Corp."
acpiac0 at acpi0: AC unit offline
bios0: ROM list: 0xc0000/0x10000 0xd8000/0x4000! 0xdc000/0x4000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82845 Host" rev 0x04
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xec000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "Intel 82845 AGP" rev 0x04
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility M6" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: irq 9
drm0 at radeondrm0
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x42
pci2 at ppb1 bus 2
cbb0 at pci2 dev 5 function 0 "Ricoh 5C475 CardBus" rev 0xb8: couldn't map
interrupt
"Ricoh 5C551 Firewire" rev 0x00 at pci2 dev 5 function 1 not configured
ohci0 at pci2 dev 7 function 0 "NEC USB" rev 0x43: irq 9, version 1.0,
legacy support
ohci1 at pci2 dev 7 function 1 "NEC USB" rev 0x43: couldn't map interrupt
ehci0 at pci2 dev 7 function 2 "NEC USB" rev 0x04: couldn't map interrupt
fxp0 at pci2 dev 8 function 0 "Intel PRO/100 VE" rev 0x42: couldn't map
interrupt
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "NEC OHCI root hub" rev 1.00/1.00 addr 1
ichpcib0 at pci0 dev 31 function 0 "Intel 82801CAM LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801CAM IDE" rev 0x02: DMA,
channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <IC25N040ATMR04-0>
wd0: 16-sector PIO, LBA48, 38154MB, 78140160 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MATSHITA, UJDA745 DVD/CDRW, 1.05> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 "Intel 82801CA/CAM SMBus" rev 0x02:
polling
iic0 at ichiic0
spdmem0 at iic0 addr 0x54: 256MB DDR SDRAM non-parity PC2300CL2.5
auich0 at pci0 dev 31 function 5 "Intel 82801CA/CAM AC97" rev 0x02"Intel
82801CA/CAM Modem" rev 0x02 at pci0 dev 31 function 6 not configured
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pcic0 at isa0 port 0x3e0/2 iomem 0xe0000/65536
pcic0 controller 0: <Intel 82365SL rev 1> has socket A only
pcmcia0 at pcic0 controller 0 socket 0
com0 at pcmcia0 function 0: can't allocate i/o space
pcic0: irq 3, polling enabled
biomask eff5 netmask eff5 ttymask ffff
mtrr: Pentium Pro MTRR support
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
so, I am getting frustrated, and try turning the laptop on and off a few
more times, and all of sudden, it recognizes the pcmcica card again. Dmesg
below:
OpenBSD 4.6 (GENERIC) #58: Thu Jul 9 21:24:42 MDT 2009
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz ("GenuineIntel"
686-class) 1.20 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS
,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
real mem = 266891264 (254MB)
avail mem = 249249792 (237MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/22/03, BIOS32 rev. 0 @ 0xfd891,
SMBIOS rev. 2.31 @ 0xd8010 (15 entries)
bios0: vendor Phoenix Technologies LTD version "R0202B3" date 04/22/03
bios0: Sony Corporation PCG-V505BC(UC)
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP BOOT SSDT SSDT
acpi0: wakeup devices PWRB(S5) CRD0(S3) LAN_(S3) USB1(S3) USB2(S3) USB3(S3)
EC0_(S5) MODE(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (HUB_)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, FVS, 2000, 1200 MHz
acpitz0 at acpi0: critical temperature 90 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PWRB
acpibat0 at acpi0: BAT1 type LION oem "Sony Corp."
acpiac0 at acpi0: AC unit offline
bios0: ROM list: 0xc0000/0x10000 0xd8000/0x4000! 0xdc000/0x4000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82845 Host" rev 0x04
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xec000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "Intel 82845 AGP" rev 0x04
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility M6" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: irq 9
drm0 at radeondrm0
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x42
pci2 at ppb1 bus 2
cbb0 at pci2 dev 5 function 0 "Ricoh 5C475 CardBus" rev 0xb8: couldn't map
interrupt
"Ricoh 5C551 Firewire" rev 0x00 at pci2 dev 5 function 1 not configured
ohci0 at pci2 dev 7 function 0 "NEC USB" rev 0x43: irq 9, version 1.0,
legacy support
ohci1 at pci2 dev 7 function 1 "NEC USB" rev 0x43: couldn't map interrupt
ehci0 at pci2 dev 7 function 2 "NEC USB" rev 0x04: couldn't map interrupt
fxp0 at pci2 dev 8 function 0 "Intel PRO/100 VE" rev 0x42: couldn't map
interrupt
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "NEC OHCI root hub" rev 1.00/1.00 addr 1
ichpcib0 at pci0 dev 31 function 0 "Intel 82801CAM LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801CAM IDE" rev 0x02: DMA,
channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <IC25N040ATMR04-0>
wd0: 16-sector PIO, LBA48, 38154MB, 78140160 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MATSHITA, UJDA745 DVD/CDRW, 1.05> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 "Intel 82801CA/CAM SMBus" rev 0x02:
polling
iic0 at ichiic0
spdmem0 at iic0 addr 0x54: 256MB DDR SDRAM non-parity PC2300CL2.5
auich0 at pci0 dev 31 function 5 "Intel 82801CA/CAM AC97" rev 0x02"Intel
82801CA/CAM Modem" rev 0x02 at pci0 dev 31 function 6 not configured
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pcic0 at isa0 port 0x3e0/2 iomem 0xe0000/65536
pcic0 controller 0: <Intel 82365SL rev 1> has socket A only
pcmcia0 at pcic0 controller 0 socket 0
com0 at pcmcia0 function 0 "Quatech Inc, RS-232 Serial Port PC Card,
SSP-100" port 0x2f8/8: ns16550a, 16 byte fifo
, irq 3pcic0: irq 4, polling enabled
biomask efe5 netmask efe5 ttymask ffff
mtrr: Pentium Pro MTRR support
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
I don't know what to make of this. Since I make No changes to the kernel
(with config) between the boots (by this I mean completely powering the
laptop down and restarting it. The pcmcia card is in the slot and I am not
removing/replacing it all during this time) when it is working and not, I am
confused. Is it just bad hardware? But if that were the case, why would it
work sometimes?
Is there something more I should do?
Thanks in advance for any advice.
Bye - ted