My laptop is hanging when I boot it after this commit.  The system hangs
when pccardd is started.  If no cards are installed, the boot proceeds
without a problem and the system hangs when the first card is inserted.

I have attached my kernel configuration and dmesg output from a kernel
checked out right before this commit.  Please let me know if I can
provide any further information or assistance.

Thanks for you help

Jim Bloom

  Modified files:
    sys/pccard           i82365.h pcic.c pcic_isa.c pcic_pci.c 
  o Try to do 3.3V support better for the 6722 and 6729/30.
  o Bite the bullet and create controller types for the 6729 and also
    the 673x.  Rename the 672x to 6722.
  o Define minimal extended register info (just register 0xa for reading
  # I think the last version may have broken 673x controllers, but this
  # fix them.
  Tested on the 6722, but not the 6729.
  Ideas from: Chiharu Shibata-san's article in bsd-nomads:15866
  Revision  Changes    Path
  1.23      +18 -5     src/sys/pccard/i82365.h
  1.169     +32 -14    src/sys/pccard/pcic.c
  1.23      +3 -3      src/sys/pccard/pcic_isa.c
  1.106     +5 -5      src/sys/pccard/pcic_pci.c
machine         i386
cpu             I486_CPU
cpu             I586_CPU
ident           LAPTOP
maxusers        32

#makeoptions    DEBUG=-g                #Build kernel with gdb(1) debug symbols

options         INVARIANTS
options         INVARIANT_SUPPORT
# options       MUTEX_DEBUG
options         WITNESS

options         MATH_EMULATE            #Support for x87 emulation
options         INET                    #InterNETworking
options         INET6                   #IPv6 communications protocols
options         IPSEC                   #IP security
options         IPSEC_ESP               #IP security (crypto; define w/ IPSEC)
options         IPSEC_DEBUG             #debug for IP security
options         FFS                     #Berkeley Fast Filesystem
options         NFSCLIENT               #Network Filesystem Client
options         NFSSERVER               #Network Filesystem Server
options         MSDOSFS                 #MSDOS Filesystem
options         CD9660                  #ISO 9660 Filesystem
options         PROCFS                  #Process filesystem
options         COMPAT_43               #Compatible with BSD 4.3 [KEEP THIS!]
options         SCSI_DELAY=15000        #Delay (in ms) before probing SCSI
options         UCONSOLE                #Allow users to grab the console
#options        USERCONFIG              #boot -c editor
options         KTRACE                  #ktrace(1) support
options         SYSVSHM                 #SYSV-style shared memory
options         SYSVMSG                 #SYSV-style message queues
options         SYSVSEM                 #SYSV-style semaphores
options         P1003_1B                #Posix P1003_1B real-time extentions
options         _KPOSIX_VERSION=199309L
options         IPFIREWALL              #firewall
options         IPDIVERT                #divert sockets
options         DDB                     #kernel debugger
# Obsolete option
# options       MD_NSECT=10000

device          isa
# Add PCI to work around broken ATA driver
# device                pci

# Floppy drives
device          fdc

# ATA and ATAPI devices
device          ata
device          atadisk                 # ATA disk drives

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc
device          atkbd
device          psm

device          vga

# syscons is the default console driver, resembling an SCO console
device          sc

# Floating point support - do not disable.
device          npx

# Power management support (see LINT for more options)
device          apm     # Advanced Power Management

# PCCARD (PCMCIA) support
device          card
device          pcic

# Serial (COM) ports
device          sio

# Parallel port
device          ppc
device          ppbus           # Parallel port bus (required)
device          lpt             # Printer
device          plip            # TCP/IP over parallel
device          ppi             # Parallel port interface device

# ISA Ethernet NICs.
device          ed
device          miibus

# Pseudo devices - the number indicates how many units to allocated.
device  loop            # Network loopback
device  ether           # Ethernet support
device  sl      1       # Kernel SLIP
device  ppp     1       # Kernel PPP
device  tun             # Packet tunnel.
device  pty             # Pseudo-ttys (telnet etc)
device  md              # Memory "disks"
device  pmtimer         # Adjust system timer at wakeup time
device  random

# for IPv6
device  gif                     #IPv6 and IPv4 tunneling
device  faith                   #for IPv6 and IPv4 translation

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device  bpf             #Berkeley packet filter
Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT #4: Tue Nov 27 18:53:19 EST 2001
[EMAIL PROTECTED]:/users/bloom/sys/i386/compile/LAPTOP
Preloaded elf kernel "/boot/kernel/kernel" at 0xc03a9000.
Calibrating clock(s) ... i8254 clock: 1193105 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254"  frequency 1193182 Hz
TSC initialization skipped: APM enabled.
CPU: Cyrix 486DX2 (486-class CPU)
Origin = "CyrixInstead"  DIR=0x321b  Stepping=3  Revision=2
real memory  = 20971520 (20480K bytes)
Physical memory chunk(s):
0x00001000 - 0x0009efff, 647168 bytes (158 pages)
0x003d0000 - 0x013f7fff, 16941056 bytes (4136 pages)
avail memory = 16814080 (16420K bytes)
Other BIOS signatures found:
null: <null device, zero device>
random: <entropy source>
mem: <memory & I/O>
Math emulator present
apm0: <APM BIOS> on motherboard
apm0: found APM BIOS v1.1, connected at v1.1
npx0: <math processor> on motherboard
npx0: INT 16 interface
isa0: <ISA bus> on motherboard
Trying Read_Port at 203
Trying Read_Port at 243
Trying Read_Port at 283
Trying Read_Port at 2c3
Trying Read_Port at 303
Trying Read_Port at 343
Trying Read_Port at 383
Trying Read_Port at 3c3
sc-: sc0 already exists, skipping it
vga-: vga0 already exists, skipping it
isa_probe_children: disabling PnP devices
isa_probe_children: probing non-PnP devices
orm0: <Option ROMs> at iomem 0xe0000-0xe9fff,0xea000-0xeffff on isa0
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0x0000
ata0: mask=03 ostat0=50 ostat2=00
ata0-master: ATAPI probe 00 00
ata0-slave: ATAPI probe 00 00
ata0: mask=03 stat0=50 stat1=00
ata0-master: ATA probe 01 a5
ata0: devices=01
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0045
atkbd: keyboard ID 0x41ab (2)
kbd0: atkbd0, AT 101/102 (2), config:0x0, flags:0x3d0000
psm0: current command byte:0045
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0-00, 2 buttons
psm0: config:00000000, flags:00000000, packet size:3
psm0: syncmask:c0, syncbits:00
ed0 failed to probe at port 0x280-0x29f iomem 0xd8000 irq 10 on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
pcic0: <Cirrus logic 672x> at port 0x3e0 iomem 0xd0000 irq 10 on isa0
pcic0: management irq 10
pccard0: <PC Card bus (classic)> on pcic0
pccard1: <PC Card bus (classic)> on pcic0
ppc0: parallel port found at 0x378
ppc0: using extended I/O port range
ppc0: SPP
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
bpf: lp0 attached
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
sc0: fb0, kbd0, terminal emulator: sc (syscons terminal)
sio0: irq maps: 0x1 0x11 0x1 0x1
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
fb0: vga0, vga, type:VGA (5), flags:0x7007f
fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000
fb0: init mode:24, bios mode:3, current mode:24
fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k
VGA parameters upon power-up
50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 06 e0 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
VGA parameters in BIOS for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
EGA/VGA parameters to be used for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
isa_probe_children: probing PnP devices
BIOS Geometries:
0:03f60f3f 0..1014=1015 cylinders, 0..15=16 heads, 1..63=63 sectors
0 accounted for
Device configuration finished.
IP packet filtering initialized, divert enabled, rule-based forwarding disabled, 
default to deny, logging disabled
bpf: lo0 attached
bpf: ppp0 attached
IPsec: Initialized Security Association Processing.
Creating DISK ad0
ad0: <ST9655AG/23.23.02> ATA-0 disk at ata0-master
ad0: 500MB (1024128 sectors), 1016 C, 16 H, 63 S, 512 B
ad0: 1 secs/int, 1 depth queue, BIOSPIO
ad0: piomode=3 dmamode=1 udmamode=-1 cblid=0
Mounting root from ufs:/dev/ad0s1a
pccard: card inserted, slot 0
pcic0: reset 1 int is 0 stat is df
pccard: card inserted, slot 1
pcic0: reset 1 int is 0 stat is df
pcic0: reset 2 int is 60 stat is df
ad0s1: type 0xa5, start 63, end = 1024127, size 1024065 : OK
start_init: trying /sbin/init
pcic0: reset 2 int is 60 stat is df
pcic0: reset 3 int is 60 stat is ff
pcic0: reset 3 int is 60 stat is ff
pccard0: Assigning sio1: io 0x2f8-0x2ff irq 3 mem 0x0-0xffffffff
pcic: I/O win 0 flags 11 2f8-2ff
pcic: I/O win 0 flags 1 2f8-2ff
sio1 at port 0x2f8-0x2ff irq 3 slot 0 on pccard0
pcic: I/O win 0 flags 11 2f8-2ff
sio1: type 16550A
pccard1: Assigning ed1: io 0x200-0x21f irq 5 mem 0x0-0xffffffff
pcic: I/O win 0 flags 15 200-21f
pcic: I/O win 0 flags 5 200-21f
ed1 at port 0x200-0x21f irq 5 flags 0x80000 slot 1 on pccard1
pcic: I/O win 0 flags 15 200-21f
bpf: ed1 attached
ed1: address 00:e0:98:78:5d:84, type Linksys (16 bit) 
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0: OUI 0x0010dd, model 0x0001, rev. 2
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto

Reply via email to