Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2001 18:28:24 -0400
From:      Graham Dunn <gdunn@inscriber.com>
To:        Mike Smith <msmith@FreeBSD.ORG>
Cc:        Cameron Grant <gandalf@vilnya.demon.co.uk>, freebsd-stable@FreeBSD.ORG
Subject:   Re: CS4232 with pcm driver returns device_probe_and_attach: pcm0 attach returned 6
Message-ID:  <20010607182822.A6366@inscriber.com>
In-Reply-To: <200106072035.f57KZtH02689@mass.dis.org>; from msmith@FreeBSD.ORG on Thu, Jun 07, 2001 at 01:35:50PM -0700
References:  <20010607161729.A61368@inscriber.com> <200106072035.f57KZtH02689@mass.dis.org>

next in thread | previous in thread | raw e-mail | index | archive | help
further developments:

made the bios.c change, and with only device pcm in the kernel config, I
get two results. 1) a kernel panic, if options PNPBIOS is present (the
first dmesg output) and 2) no sign of pcm at all (if PNPBIOS is absent).

Thanks,
Graham

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 4.3-RELEASE #17: Thu Jun  7 17:50:57 EDT 2001
    gdunn@muzukashii.inscriber.com:/usr/src/sys/compile/MUZUKASHII
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium/P54C (132.96-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x52c  Stepping = 12
  Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory  = 84017152 (82048K bytes)
config> q
avail memory = 77828096 (76004K bytes)
Preloaded elf kernel "kernel" at 0xc03c7000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc03c709c.
Intel Pentium detected, installing workaround for F00F bug
md0: Malloc disk
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.1, connected at v1.1
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pci0: <Chips & Technologies 65550 SVGA controller> at 4.0
isa0: <ISA bus> on motherboard


Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x5610300
fault code		= supervisor read, page not present
instruction pointer	= 0x58:0x300
stack pointer	        = 0x10:0xfd0
frame pointer	        = 0x10:0x419
code segment		= base 0x5610000, limit 0xffff, type 0x1b
			= DPL 0, pres 1, def32 0, gran 0
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 0 (swapper)
interrupt mask		= net tty bio cam 
trap number		= 12
panic: page fault
Uptime: 0s
Automatic reboot in 15 seconds - press a key on the console to abort
--> Press a key on the console to reboot <--
Rebooting...
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 4.3-RELEASE #16: Thu Jun  7 16:47:31 EDT 2001
    gdunn@muzukashii.inscriber.com:/usr/src/sys/compile/MUZUKASHII
Calibrating clock(s) ... TSC clock: 132957077 Hz, i8254 clock: 1193205 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254"  frequency 1193182 Hz
CLK_USE_TSC_CALIBRATION not specified - using old calibration method
CPU: Pentium/P54C (132.96-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x52c  Stepping = 12
  Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory  = 84017152 (82048K bytes)
Physical memory chunk(s):
0x00001000 - 0x0009efff, 647168 bytes (158 pages)
0x003ed000 - 0x05017fff, 79867904 bytes (19499 pages)
avail memory = 77828096 (76004K bytes)
bios32: Found BIOS32 Service Directory header at 0xc00f8dc0
bios32: Entry = 0xfe95b (c00fe95b)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0xde53
pnpbios: Found PnP BIOS data at 0xc00e4190
pnpbios: Entry = 45610000:300  Rev = 0.1
pnpbios: OEM ID 90
Other BIOS signatures found:
ACPI: 00000000
Preloaded elf kernel "kernel.old" at 0xc03c7000.
Intel Pentium detected, installing workaround for F00F bug
md0: Malloc disk
Creating DISK md0
Math emulator present
pci_open(1):	mode 1 addr port (0x0cf8) is 0x80001850
pci_open(1a):	mode1res=0x80000000 (0x80000000)
pci_cfgcheck:	device 0 [class=060000] [hdr=00] is there (id=06011179)
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.1, connected at v1.1
npx0: <math processor> on motherboard
npx0: INT 16 interface
i586_bzero() bandwidth = 131216375 bytes/sec
bzero() bandwidth = 195121951 bytes/sec
pci_open(1):	mode 1 addr port (0x0cf8) is 0x00000000
pci_open(1a):	mode1res=0x80000000 (0x80000000)
pci_cfgcheck:	device 0 [class=060000] [hdr=00] is there (id=06011179)
pcib0: <Host to PCI bridge> on motherboard
found->	vendor=0x1179, dev=0x0601, revid=0x11
	class=06-00-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
found->	vendor=0x102c, dev=0x00e0, revid=0x04
	class=03-00-00, hdrtype=0x00, mfdev=0
	subordinatebus=0 	secondarybus=0
	map[10]: type 1, range 32, base fe000000, size 24
pci0: <PCI bus> on pcib0
pci0: <Chips & Technologies 65550 SVGA controller> (vendor=0x102c, dev=0x00e0) at 4.0
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
isa_probe_children: disabling PnP devices
isa_probe_children: probing non-PnP devices
fdc0: <NEC 765 or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0x0000
ata0: mask=03 status0=50 status1=00
ata0: mask=03 ostat0=50 ostat2=00
ata0-master: ATAPI probe a=00 b=00
ata0-slave: ATAPI probe a=00 b=00
ata0: mask=03 status0=50 status1=00
ata0-master: ATA probe a=01 b=a5
ata0: devices=01
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0x0000
ata1: mask=03 status0=50 status1=00
ata1: mask=03 ostat0=50 ostat2=00
ata1-master: ATAPI probe a=14 b=eb
ata1-slave: ATAPI probe a=14 b=eb
ata1: mask=03 status0=00 status1=00
ata1: devices=0c
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0047
atkbd: keyboard ID 0x41ab (2)
kbd0 at atkbd0
kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x3d0000
psm0: current command byte:0047
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0-00, 2 buttons
psm0: config:00000000, flags:00000000, packet size:3
psm0: syncmask:c0, syncbits:00
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 01 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 06 e0 9c 0e 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 00 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 00 01 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 06 e0 9c 0e 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 00 00 00 00 00 00 10 0e 00 ff 
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sc0: fb0, kbd0, terminal emulator: sc (syscons terminal)
pcic0: <Intel i82365> at port 0x3e0 iomem 0xd0000 on isa0
pcic0: Polling mode
stat is fe
stat is f2
pccard0: <PC Card bus -- kludge version> on pcic0
pccard1: <PC Card bus -- kludge version> on pcic0
pcic1: not probed (disabled)
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: irq maps: 0x41 0x41 0x41 0x41
sio0: probe failed test(s): 0 1 2 4 6 7 9
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250
sio1: irq maps: 0x41 0x49 0x41 0x41
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ie0 failed to probe at port 0x300 iomem 0xd0000 irq 10 on isa0
lnc0 failed to probe at port 0x280 irq 10 drq 0 on isa0
cs0 failed to probe at port 0x300-0x31f on isa0
sn0 failed to probe at port 0x300-0x30f irq 10 on isa0
isa_probe_children: probing PnP devices
BIOS Geometries:
 0:02e87f3f 0..744=745 cylinders, 0..127=128 heads, 1..63=63 sectors
 0 accounted for
Device configuration finished.
bpf: ppp0 attached
bpf: ppp1 attached
new masks: bio 68c040, tty 63101a, net 67101a
bpf: sl0 attached
bpf: faith0 attached
bpf: gif0 attached
bpf: gif1 attached
bpf: gif2 attached
bpf: gif3 attached
bpf: lo0 attached
IPsec: Initialized Security Association Processing.
IP Filter: v3.4.16 initialized.  Default = pass all, Logging = enabled
pccard: card inserted, slot 0
Slot 0 chg = 0x1
ata1-slave: ata_command: timeout waiting for intr
ata1-slave: identify failed
Creating DISK ad0
Creating DISK wd0
ad0: <TOSHIBA MK3003MAN/D4.02 A> ATA-0 disk at ata0-master
ad0: 2937MB (6015744 sectors), 5968 cyls, 16 heads, 63 S/T, 512 B/S
ad0: 1 secs/int, 1 depth queue, BIOSPIO
ad0: piomode=4 dmamode=2 udmamode=-1 cblid=0
ad0: 2937MB <TOSHIBA MK3003MAN> [5968/16/63] at ata0-master BIOSPIO
ata1-master: piomode=3 dmamode=-1 udmamode=-1 dmaflag=0
acd0: <TOSHIBA CD-ROM XM-1402B/0186> CDROM drive at ata1 as master
acd0: read 1033KB/s (1033KB/s), 128KB buffer, BIOSPIO
acd0: Reads: CD-DA
acd0: Audio: play, 255 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: CD-ROM 120mm data disc loaded, unlocked
Mounting root from ufs:/dev/ad0s1a
ad0s1: type 0xa5, start 0, end = 6015743, size 6015744 
ad0s1: C/H/S end 374/117/63 (2787749) != end 6015743: invalid
start_init: trying /sbin/init
xe0 at port 0x240-0x24f iomem 0xd0000-0xd0fff irq 9 slot 0 on pccard0
pcic: I/O win 0 flags 17 240-24f
xe0: Xircom CE3, bonding version 0x45, 100Mbps capable
xe0: DingoID = 0, RevisionID = 0, VendorID = 0
xe0: Ethernet address 00:80:c7:98:5d:c0
bpf: xe0 attached
Linux-ELF exec handler installed
xe0: watchdog timeout; resetting card
On Thu, Jun 07, 2001 at 01:35:50PM -0700, Mike Smith wrote:
> > 
> > If I specify 
> > 
> > device pcm0 at isa? port 0x534 irq 7
> > 
> > I get:
> > 
> > mss_detect, busy still set (0xff)
> > pcm0 failed to probe at port 0x534-0x53b irq 7 on isa0
> > 
> > with 
> > 
> > device pcm0 at isa? port? irq? drq1 flags 0x15
> 
> You *should* just be able to use the PnP BIOS.  However:
> 
> > pnpbios: Bad PnP BIOS data checksum
> 
> Try ignoring the PnP BIOS checksum error (yes, believe it or not, some 
> people either can't add, or can't be bothered to, and you wonder why PC 
> systems have a reputation for being crap?).
> 
> /sys/i386/i386/bios.c:
> 
>      127         }
>      128         /* If checksum is OK, enable use of the entrypoint */
>      129         if (ck == 0) {
> 
> Change this to   if (1) {
> 
>      130             PnPBIOStable = pt;
>      131             if (bootverbose) {
> 
> and just put
> 
> device pcm
> 
> in your kernel config, and see how that goes.
> 
> -- 
> ... every activity meets with opposition, everyone who acts has his
> rivals and unfortunately opponents also.  But not because people want
> to be opponents, rather because the tasks and relationships force
> people to take different points of view.  [Dr. Fritz Todt]
>            V I C T O R Y   N O T   V E N G E A N C E

-- 
  gdunn@inscriber.com	  Graham Dunn         || ||| | ||| |||| | |||| | 

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




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