Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Dec 1998 19:35:58 +0100
From:      "D. Rock" <rock@cs.uni-sb.de>
To:        mobile@FreeBSD.ORG
Subject:   Some notes on pccard and apm support
Message-ID:  <3666DA0E.F40FE98C@cs.uni-sb.de>

next in thread | raw e-mail | index | archive | help
Hi,

I just installed 3.0-current on my new notebook. It works OK most of the time
but I have some minor problems:
- pccard interrupts doesn't seem to get initialized correctly for statistics
  output (vmstat -i). After I insert a pccard, all of its interrupts get
  accounted for the clock interrupt, with the irq line of the clock interrupt
  changing to the one for the PCCard.
interrupt      total      rate
clk0 irq11    2476708      113
rtc0 irq8     3169786      127
wdc0 irq14     773024       31
fdc0 irq6           1        0
[...]
No mentioning of ed0, before inserting the PCCard, clk0 has an interrupt rate
of 100, as expected.

- Sometimes the PCCard isn't detected if inserted (or the system is booted
  with the card already inserted: I had a Windows 98 running just fine with
  the card, shut down the machine, turned power off and on and rebootet
  FreeBSD and the card wasn't detected the 1st time, only after a few
  plug/unplug operations, the card was properly detected). The pccard driver
  detects the plugging/unplugging of the device, but a "pccardc dumpcis" only
  only dumps a "terminator" tuple for the slot.

- After unplugging/replugging the card, I get an
Slot x, unfielded interrupt (0)
  message, and afterwards the network is dead. Instead I get the following
  message from the kernel:
arpresolve: can't allocate llinfo for XXX.YYY.ZZZ.WWWrt
(Because suspend/resume detaches/attaches the driver, after resume, the
network
will also fail. But resume doesn't work at all, see below)

- Shutdown/Resume doesn't seem to work. The system wakes up immediately after
  a suspend to RAM (apm -Z) and after a suspend to disk (zzz), after wakeup
  the system hangs. I recompiled the kernel with APM_DEBUG, and after resume
  the hooks get called, but afterwards it hangs.

This is stock 3.0-current, latest cvsup from yesterday.
Needless to say, it works on Windows 98

Daniel


System information (output from dmesg). The Network card is an D-Link DE660
[Even a stripped down kernel with none of these fancy, but mostly useless
devices has the same problems]

Copyright (c) 1992-1998 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California. All rights reserved.
FreeBSD 3.0-CURRENT #28: Thu Dec  3 18:34:03 CET 1998
    rock@lap:/usr/src/sys/compile/ROCK
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II (quarter-micron) (232.11-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x652  Stepping=2
 
Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,<b24>>
real memory  = 33554432 (32768K bytes)
config> quit
avail memory = 29925376 (29224K bytes)
Preloaded a.out kernel "kernel" at 0xf02d2000.
Probing for devices on PCI bus 0:
chip0: <Intel 82443BX host to PCI bridge (AGP disabled)> rev 0x02 on pci0.0.0
vga0: <Trident model 9397 VGA-compatible display device> rev 0xf3 int a irq 9
on pci0.2.0
chip1: <Intel 82371AB PCI to ISA bridge> rev 0x02 on pci0.3.0
ide_pci0: <Intel PIIX4 Bus-master IDE controller> rev 0x01 on pci0.3.1
uhci0: <Intel 82371AB/EB USB Host Controller> rev 0x01 int d irq 9 on pci0.3.2
chip2: <Intel 82371AB Power management controller> rev 0x02 on pci0.3.3
pcic0: <TI 1131 PCI to PCMCIA/CardBus bridge> rev 0x01 int a irq 255 on
pci0.10.0
pcic1: <TI 1131 PCI to PCMCIA/CardBus bridge> rev 0x01 int b irq 255 on
pci0.10.1
Probing for PnP devices:
Probing for devices on the ISA bus:
VESA: v2.0, 4096k memory, flags:0x0, mode table:0xf00c8cec (c0008cec)
VESA: Copyright 1994 TRIDENT MICROSYSTEMS INC.

sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
psm0 at 0x60-0x64 irq 12 on motherboard
psm0: model Generic PS/2 mouse, device ID 0
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
ppc: parallel port found at 0x378
ppc0 at 0x378 irq 7 on isa
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
nlpt0: <generic printer> on ppbus 0
nlpt0: Interrupt-driven port
wdc0 at 0x1f0-0x1f7 irq 14 flags 0xe0ffc0ff on isa
wdc0: unit 0 (wd0): <TOSHIBA MK3205MAV>, 32-bit, multi-block-16, sleep-hack
wd0: 3102MB (6354432 sectors), 6304 cyls, 16 heads, 63 S/T, 512 B/S
wdc0: unit 1 (atapi): <TOSHIBA CD-ROM XM-1802B/1115>, removable, accel, dma,
iordis
acd0: drive speed 4134KB/sec, 128KB cache
acd0: supported read  types: CD-R, CD-RW, CD-DA
acd0: Audio: play, 16 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: no/blank disc inside, unlocked
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
npx0 on motherboard
npx0: INT 16 interface
sb0 at 0x220 irq 5 drq 1 on isa
Hmm... Could this be an ESS688 based card (rev 11)
snd0: <SoundBlaster Pro 3.1> 
opl0 at 0x388 on isa
snd0: <Yamaha OPL3 FM> 
mpu0 at 0x330 drq 0 on isa
snd0: <MPU-401 0.0  Midi interface #1> 
apm0 on isa
apm: found APM BIOS version 1.2
joy0 at 0x201 on isa
joy0: joystick
usb0: <Intel 82371AB/EB USB Host Controller>
usb1 at usb0
usb1: vendor 0x0000 product 0x0000 (class 9/1) (rev 1.00/1.00) (addr 1)
PC-Card VLSI 82C146 (5 mem & 2 I/O windows)
pcic: controller irq 10
Initializing PC-card drivers: ed sio
Card inserted, slot 0
changing root device to wd0s2a
ed0: address 00:80:c8:8b:66:e9, type NE2000 (16 bit)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3666DA0E.F40FE98C>