Re: 4,7 Kernel panic

2002-10-13 Thread Donn Miller



On Sun, 13 Oct 2002, Chrisy Luke wrote:

> Donn Miller wrote (on Oct 13):
> > So the error is in the probe/attach routines.  Correct in that the fatal
> > trap only occurs on certain machines.  On my laptop, the kernel bombs
> > immediately after the EISA bus is probed.  For example:
> >
> > eisa0:   *BOMB*
>
> I commented out the EISA code in nexus_attach(), and my 4.7-S boots
> fine:
>
> #if 0
> if (!devclass_get_device(devclass_find("eisa"), 0)) {
> child = device_add_child(dev, "eisa", 0);
> if (child == NULL)
> panic("nexus_attach eisa");
> device_probe_and_attach(child);
> }
> #endif

I saw a related post on Google, dating back to 2000.  It was the same
deal, except it was bombing out on the ISA bus probe.  The guy's solution
was to substitute nexus_add_child for device_add_child, although that
sounds like an ugly hack, and it's probably wrong.

FWIR, I never saw the "on motherboard" message printed; I only saw the
"eisa0:  " before the fatal trap occured.  I know it's possible to
step through the entire probe/attach routines after doing "boot -d", but it got
a little tedious.  Too many low-level asm statements to step through.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: 4,7 Kernel panic

2002-10-13 Thread Roger Savard

On October 13, 2002 03:14 pm, Ian Dowse wrote:
> In message <[EMAIL PROTECTED]>, Roger Savard writes:
> >Even with the latest :
> >
> >nexus_print_all_ressources(...
>
> That is the other 4.7 problem that people have been reporting
> recently, but only on some hardware. You could try reverting John
> Baldwin's latest change to src/sys/i386/i386/nexus.c by grabbing
> version 1.26.2.6 of that file from
>
>   http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/i386/i386/nexus.c
>?rev=1.26.2.6
>
> Ian

Yep, it works for me , reverting back nexus.c dit it.

%uname -a
FreeBSD freebee.henocoffice.com 4.7-STABLE FreeBSD 4.7-STABLE #7: Sun Oct 13 
15:49:03 EDT 2002 
[EMAIL PROTECTED]:/data/obj/.amd_mnt/haydn/host/usr/src/sys/TheMatrix  
i386

Here is my /var/run/dmesg.boot file:

syncing disks... 2 1 
done
Uptime: 7m7s
Rebooting...
Copyright (c) 1992-2002 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.7-STABLE #7: Sun Oct 13 15:49:03 EDT 2002

[EMAIL PROTECTED]:/data/obj/.amd_mnt/haydn/host/usr/src/sys/TheMatrix
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (745.25-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  
Features=0x383f9ff
real memory  = 266862592 (260608K bytes)
avail memory = 253816832 (247868K bytes)
Preloaded elf kernel "kernel" at 0xc05a.
Preloaded elf module "splash_bmp.ko" at 0xc05a009c.
Preloaded splash_image_data "/boot/splash.bmp" at 0xc05a0140.
Preloaded elf module "linux.ko" at 0xc05a0190.
Preloaded elf module "snd_ich.ko" at 0xc05a0230.
Preloaded elf module "snd_pcm.ko" at 0xc05a02d0.
Preloaded elf module "usb.ko" at 0xc05a0370.
Preloaded elf module "umass.ko" at 0xc05a040c.
Preloaded elf module "agp.ko" at 0xc05a04ac.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 9 entries at 0xc00fdf30
npx0:  on motherboard
npx0: INT 16 interface
pcib0:  on motherboard
pci0:  on pcib0
agp0:  mem 
0xf400-0xf407,0xf800-0xfbff irq 9 at device 2.0 on pci0
pcib1:  at device 30.0 on pci0
pci1:  on pcib1
pci1:  (vendor=0x104c, dev=0x8021) at 0.0 irq 9
pcic0:  irq 0 at device 2.0 on pci1
pcic0: PCI Memory allocated: 0x8800
pcic0: Polling mode
pccard0:  on pcic0
fxp0:  port 0x3000-0x303f mem 0xf4104000-0xf4104fff 
irq 9 at device 8.0 on pci1
fxp0: Ethernet address 08:00:46:40:c3:b4
inphy0:  on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0:  at device 31.0 on pci0
isa0:  on isab0
atapci0:  port 0x1800-0x180f at device 31.1 on 
pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0:  port 0x1820-0x183f irq 
9 at device 31.2 on pci0
usb0:  on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0:  (vendor=0x8086, dev=0x2443) at 31.3 irq 9
uhci1:  port 0x1840-0x185f irq 
9 at device 31.4 on pci0
usb1:  on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
umass0: Sony USB Memory Stick Slot, rev 1.10/1.83, addr 2
pcm0:  port 0x1880-0x18bf,0x1c00-0x1cff irq 9 at device 
31.5 on pci0
pci0:  (vendor=0x8086, dev=0x2446) at 31.6 irq 9
eisa0:  on motherboard
eisa0: unknown card @H@ (0x0100) at slot 1
orm0:  at iomem 0xc-0xcbfff,0xd8000-0xdbfff,0xdc000-0xd 
on isa0
fdc0:  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
atkbdc0:  at port 0x60,0x64 on isa0
atkbd0:  flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0:  irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
sc0:  at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
IP packet filtering initialized, divert enabled, rule-based forwarding 
enabled, default to accept, unlimited logging
ad0: 14403MB  [29264/16/63] at ata0-master UDMA100
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 
(probe0:umass-sim0:0:0:0): NOT READY asc:3a,0
(probe0:umass-sim0:0:0:0): Medium not present
Mounting root from ufs:/dev/ad0s1a

Thanks again.

Great crowd.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: 4,7 Kernel panic

2002-10-13 Thread Donn Miller



Ian Dowse wrote:
> 
> In message <[EMAIL PROTECTED]>, Roger Savard writes:
> >Even with the latest :
> 
> >nexus_print_all_ressources(...
> 
> That is the other 4.7 problem that people have been reporting
> recently, but only on some hardware. You could try reverting John
> Baldwin's latest change to src/sys/i386/i386/nexus.c by grabbing
> version 1.26.2.6 of that file from
> 
> 
>http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/i386/i386/nexus.c?rev=1.26.2.6

So the error is in the probe/attach routines.  Correct in that the fatal
trap only occurs on certain machines.  On my laptop, the kernel bombs
immediately after the EISA bus is probed.  For example:

eisa0:   *BOMB*

Backtrace reveals:

nexus_print_all_resources(c0e62280,c0e4a680,c0e62280,c0e62280,0) at 
nexus_print_all_resources+0x14
nexus_print_child(c0e4a680,c0e62280,c0535f68,c01eb838,c0e4a680) at 
nexus_print_child+0x19
BUS_PRINT_CHILD(c0e4a680,c0e62280,c0e62280,c0e4a680,c0535f68) at 
BUS_PRINT_CHILD+0x31
device_print_child(c0e4a680,c0e62280) at device_print_child+0x20
device_probe_and_attach(c0e62280) at device_probe_and_attach+0x5a
nexus_attach(c0e4a680,c0535f68,c01ec003,c0e4a680,c0e4a680) at 
nexus_attach+0x4e
DEVICE_ATTACH(c0e4a680,c0e4a680,c0429cd0,53a000,1) at DEVICE_ATTACH+0x2e
device_probe_and_attach(c0e4a680) at device_probe_and_attach+0x63
root_bus_configure(c0b30800,c03e7f0c,0) at root_bus_configure+0x16
configure(0,532c00,53a000,0,c012bb70) at configure+0x33
mi_startup(0,0,0,0,0) at mi_startup+0x68
begin() at begin+0x47


When I did "ps" at the DDB prompt, it said swapper was the last procss
running.  The message said something about a virtual address of 0x0.  I
think it's odd that swapper is starting before the probing is finished
(during the probing of the EISA bus).  Sounds like something in the Oct
10 nexus.c commit is causing certain things to be started out of order
on certain HW.  In a nutshell, it looks as though swapper is being
started even before /etc/fstab is read.

I should point out that my laptop is an HP Pavilion N5440, a Pentium
III.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: 4,7 Kernel panic

2002-10-13 Thread Ian Dowse

In message <[EMAIL PROTECTED]>, Roger Savard writes:
>Even with the latest :

>nexus_print_all_ressources(...

That is the other 4.7 problem that people have been reporting
recently, but only on some hardware. You could try reverting John
Baldwin's latest change to src/sys/i386/i386/nexus.c by grabbing
version 1.26.2.6 of that file from


http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/i386/i386/nexus.c?rev=1.26.2.6

Ian

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: 4,7 Kernel panic

2002-10-13 Thread Roger Savard

Hi,

Even with the latest :

lab# CVSS
Parsing supfile "/etc/cvsupfile-stable"
Connecting to cvsup1.FreeBSD.org
Connected to cvsup1.FreeBSD.org
Server software version: SNAP_16_1e
Negotiating file attribute support
Exchanging collection information
Establishing multiplexed-mode data connection
Running
Updating collection src-all/cvs
Shutting down connection to server
Finished successfully
lab# locate vfs_subr.c
/usr/src/sys/kern/vfs_subr.c
lab# ls -l /usr/src/sys/kern/vfs_subr.c
-rw-r--r--  1 root  wheel  75933 Oct 13 13:10 /usr/src/sys/kern/vfs_subr.c

I still get a panic on a Sony vaio :
processor eflags=3D interrupt enabled,resume,IOPL =3D0
--- >>> current process = 0 (swapper) <<<
interrupt mask = net tty bio cam
kernel: type 12 trap, code=0
stopped at nexus_print_all_resources+0x14: cmpl $0,0(%esi)
db> t
nexus_print_all_ressources(...
nexus_print_child(...
BUS_PRINT_CHILD(...
device_print_child(c15a5600,c15c4a80) at device_print_child+0x20
device_probe_attach(c15c4a80) at device_probe_and_attach+0x20
nexus_attach(c15a5600,c05c4a80
DEVICE_ATTACH(c15a56000,c15c4a80) at DEVICE_ATTACH+0x2e
device_probe_and_attach(c15a5600) at device_probe_and_attach+0x63
root_bus_configure(c0e35180) at device_probe_and_attach+0x63
configure(0,5c0c00,5c8000,0,c02304e0) at configure+0x33
mi_startup(0,0,0,0,0) at mi_startup+0x68
begin() at begin+0x47
db>

Thanks again.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message