IDE breakage

1999-07-22 Thread Dag-Erling Smorgrav

I'm experiencing serious problems with DMA (even normal DMA, not UDMA)
on recent versions of -STABLE. Here's an excerpt from messages; kernel
#3 is a recent -STABLE (yesterday's sources), while kernel #2 is
3.2-RELEASE. The config file for both is identical.

Jul 22 10:19:35 xxx /kernel.old: Copyright (c) 1992-1999 FreeBSD Inc.
Jul 22 10:19:35 xxx /kernel.old: Copyright (c) 1982, 1986, 1989, 1991, 1993
Jul 22 10:19:35 xxx /kernel.old: The Regents of the University of California. All 
rights reserved.
Jul 22 10:19:35 xxx /kernel.old: FreeBSD 3.2-STABLE #3: Wed Jul 21 16:21:55 CEST 1999
Jul 22 10:19:35 xxx /kernel.old: [EMAIL PROTECTED]:/usr/src/sys/compile/X
Jul 22 10:19:35 xxx /kernel.old: Timecounter "i8254"  frequency 1193182 Hz
Jul 22 10:19:35 xxx /kernel.old: Timecounter "TSC"  frequency 348205681 Hz
Jul 22 10:19:35 xxx /kernel.old: CPU: Pentium II/Xeon/Celeron (348.21-MHz 686-class 
CPU)
Jul 22 10:19:35 xxx /kernel.old: Origin = "GenuineIntel"  Id = 0x652  Stepping = 2
Jul 22 10:19:35 xxx /kernel.old: 
Features=0x183f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
Jul 22 10:19:35 xxx /kernel.old: real memory  = 134217728 (131072K bytes)
Jul 22 10:19:35 xxx /kernel.old: avail memory = 127774720 (124780K bytes)
Jul 22 10:19:35 xxx /kernel.old: Preloaded elf kernel "kernel" at 0xc023c000.
Jul 22 10:19:35 xxx /kernel.old: Probing for devices on PCI bus 0:
Jul 22 10:19:35 xxx /kernel.old: chip0: Intel 82443BX host to PCI bridge rev 0x02 on 
pci0.0.0
Jul 22 10:19:35 xxx /kernel.old: chip1: Intel 82443BX host to AGP bridge rev 0x02 on 
pci0.1.0
Jul 22 10:19:35 xxx /kernel.old: xl0: 3Com 3c905-TX Fast Etherlink XL rev 0x00 int a 
irq 11 on pci0.13.0
Jul 22 10:19:35 xxx /kernel.old: xl0: Ethernet address: 00:60:08:e8:6b:1d
Jul 22 10:19:35 xxx /kernel.old: xl0: autoneg complete, link status good (full-duplex, 
100Mbps)
Jul 22 10:19:35 xxx /kernel.old: chip2: Intel 82371AB PCI to ISA bridge rev 0x02 on 
pci0.20.0
Jul 22 10:19:35 xxx /kernel.old: ide_pci0: Intel PIIX4 Bus-master IDE controller rev 
0x01 on pci0.20.1
Jul 22 10:19:35 xxx /kernel.old: chip3: Intel 82371AB Power management controller 
rev 0x02 on pci0.20.3
Jul 22 10:19:35 xxx /kernel.old: Probing for devices on PCI bus 1:
Jul 22 10:19:35 xxx /kernel.old: vga0: ATI model 4742 graphics accelerator rev 0x5c 
int a irq 11 on pci1.0.0
Jul 22 10:19:35 xxx /kernel.old: Probing for PnP devices:
Jul 22 10:19:35 xxx /kernel.old: Probing for devices on the ISA bus:
Jul 22 10:19:35 xxx /kernel.old: sc0 on isa
Jul 22 10:19:35 xxx /kernel.old: sc0: VGA color 16 virtual consoles, flags=0x0
Jul 22 10:19:35 xxx /kernel.old: atkbdc0 at 0x60-0x6f on motherboard
Jul 22 10:19:35 xxx /kernel.old: atkbd0 irq 1 on isa
Jul 22 10:19:35 xxx /kernel.old: fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
Jul 22 10:19:35 xxx /kernel.old: fdc0: FIFO enabled, 8 bytes threshold
Jul 22 10:19:35 xxx /kernel.old: fd0: 1.44MB 3.5in
Jul 22 10:19:35 xxx /kernel.old: wdc0 at 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa
Jul 22 10:19:35 xxx /kernel.old: wdc0: unit 0 (wd0): Maxtor 90640D4, DMA, 32-bit, 
multi-block-16
Jul 22 10:19:35 xxx /kernel.old: wd0: 6149MB (12594960 sectors), 13328 cyls, 15 heads, 
63 S/T, 512 B/S
Jul 22 10:19:35 xxx /kernel.old: wdc1 at 0x170-0x177 irq 15 flags 0xa0ffa0ff on isa
Jul 22 10:19:35 xxx /kernel.old: wdc1: unit 0 (atapi): CD-ROM CDU611-Q/2.0c, 
removable, accel, dma, iordis
Jul 22 10:19:35 xxx /kernel.old: acd0: drive speed 1723KB/sec, 256KB cache
Jul 22 10:19:35 xxx /kernel.old: acd0: supported read types: CD-R, CD-RW, CD-DA
Jul 22 10:19:35 xxx /kernel.old: acd0: Audio: play, 16 volume levels
Jul 22 10:19:35 xxx /kernel.old: acd0: Mechanism: ejectable tray
Jul 22 10:19:35 xxx /kernel.old: acd0: Medium: no/blank disc inside, unlocked
Jul 22 10:19:35 xxx /kernel.old: npx0 on motherboard
Jul 22 10:19:35 xxx /kernel.old: npx0: INT 16 interface
Jul 22 10:19:35 xxx /kernel.old: vga0 at 0x3b0-0x3df maddr 0xa msize 131072 on isa
Jul 22 10:19:35 xxx /kernel.old: IP packet filtering initialized, divert disabled, 
rule-based forwarding disabled, unlimited logging
Jul 22 10:19:35 xxx /kernel.old: DUMMYNET initialized (990504)
Jul 22 10:19:35 xxx /kernel.old: changing root device to wd0s1a
Jul 22 10:19:35 xxx /kernel.old: wd0: DMA failure, DMA status 5active
Jul 22 10:19:35 xxx last message repeated 11 times

Jul 22 10:19:35 xxx /kernel.old: Copyright (c) 1992-1999 FreeBSD Inc.
Jul 22 10:19:35 xxx /kernel.old: Copyright (c) 1982, 1986, 1989, 1991, 1993
Jul 22 10:19:35 xxx /kernel.old: The Regents of the University of California. All 
rights reserved.
Jul 22 10:19:35 xxx /kernel.old: FreeBSD 3.2-RELEASE #2: Mon Jul 12 20:41:42 CEST 1999
Jul 22 10:19:35 xxx /kernel.old: [EMAIL PROTECTED]:/usr/src/sys/compile/X
Jul 22 10:19:35 xxx /kernel.old: Timecounter "i8254"  frequency 1193182 Hz
Jul 22 10:19:35 xxx /kernel.old: Timecounter "TSC"  frequency 348205021 Hz
Jul 22 10:19:35 xxx /kernel.old: CPU: Pentium II/Xeon/Celeron (348.21-MHz 686-class 

Re: IDE breakage

1999-07-22 Thread Dag-Erling Smorgrav

Dag-Erling Smorgrav [EMAIL PROTECTED] writes:
 I'm experiencing serious problems with DMA (even normal DMA, not UDMA)
 on recent versions of -STABLE. Here's an excerpt from messages; kernel
 #3 is a recent -STABLE (yesterday's sources), while kernel #2 is
 3.2-RELEASE. The config file for both is identical.

A brand new kernel (from the same sources and config, but built in a
clean build directory) produces the following:

Jul 22 11:29:17 irc /kernel: Copyright (c) 1992-1999 FreeBSD Inc.
Jul 22 11:29:17 irc /kernel: Copyright (c) 1982, 1986, 1989, 1991, 1993
Jul 22 11:29:17 irc /kernel: The Regents of the University of California. All rights 
reserved.
Jul 22 11:29:17 irc /kernel: FreeBSD 3.2-STABLE #0: Thu Jul 22 10:54:31 CEST 1999
Jul 22 11:29:17 irc /kernel: [EMAIL PROTECTED]:/usr/src/sys/compile/X
Jul 22 11:29:17 irc /kernel: Timecounter "i8254"  frequency 1193182 Hz
Jul 22 11:29:17 irc /kernel: Timecounter "TSC"  frequency 348204679 Hz
Jul 22 11:29:17 irc /kernel: CPU: Pentium II/Xeon/Celeron (348.20-MHz 686-class CPU)
Jul 22 11:29:17 irc /kernel: Origin = "GenuineIntel"  Id = 0x652  Stepping = 2
Jul 22 11:29:17 irc /kernel: 
Features=0x183f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
Jul 22 11:29:17 irc /kernel: real memory  = 134217728 (131072K bytes)
Jul 22 11:29:17 irc /kernel: avail memory = 127774720 (124780K bytes)
Jul 22 11:29:17 irc /kernel: Preloaded elf kernel "kernel" at 0xc023c000.
Jul 22 11:29:17 irc /kernel: Probing for devices on PCI bus 0:
Jul 22 11:29:17 irc /kernel: chip0: Intel 82443BX host to PCI bridge rev 0x02 on 
pci0.0.0
Jul 22 11:29:17 irc /kernel: chip1: Intel 82443BX host to AGP bridge rev 0x02 on 
pci0.1.0
Jul 22 11:29:17 irc /kernel: xl0: 3Com 3c905-TX Fast Etherlink XL rev 0x00 int a irq 
11 on pci0.13.0
Jul 22 11:29:17 irc /kernel: xl0: Ethernet address: 00:60:08:e8:6b:1d
Jul 22 11:29:17 irc /kernel: xl0: autoneg complete, link status good (full-duplex, 
100Mbps)
Jul 22 11:29:17 irc /kernel: chip2: Intel 82371AB PCI to ISA bridge rev 0x02 on 
pci0.20.0
Jul 22 11:29:17 irc /kernel: ide_pci0: Intel PIIX4 Bus-master IDE controller rev 
0x01 on pci0.20.1
Jul 22 11:29:17 irc /kernel: chip3: Intel 82371AB Power management controller rev 
0x02 on pci0.20.3
Jul 22 11:29:17 irc /kernel: Probing for devices on PCI bus 1:
Jul 22 11:29:17 irc /kernel: vga0: ATI model 4742 graphics accelerator rev 0x5c int 
a irq 11 on pci1.0.0
Jul 22 11:29:17 irc /kernel: Probing for PnP devices:
Jul 22 11:29:17 irc /kernel: Probing for devices on the ISA bus:
Jul 22 11:29:17 irc /kernel: sc0 on isa
Jul 22 11:29:17 irc /kernel: sc0: VGA color 16 virtual consoles, flags=0x0
Jul 22 11:29:17 irc /kernel: atkbdc0 at 0x60-0x6f on motherboard
Jul 22 11:29:17 irc /kernel: atkbd0 irq 1 on isa
Jul 22 11:29:17 irc /kernel: fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
Jul 22 11:29:17 irc /kernel: fdc0: FIFO enabled, 8 bytes threshold
Jul 22 11:29:17 irc /kernel: fd0: 1.44MB 3.5in
Jul 22 11:29:17 irc /kernel: wdc0 at 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa
Jul 22 11:29:17 irc /kernel: wdc0: unit 0 (wd0): Maxtor 90640D4, DMA, 32-bit, 
multi-block-16
Jul 22 11:29:17 irc /kernel: wd0: 6149MB (12594960 sectors), 13328 cyls, 15 heads, 63 
S/T, 512 B/S
Jul 22 11:29:17 irc /kernel: wdc1 at 0x170-0x177 irq 15 flags 0xa0ffa0ff on isa
Jul 22 11:29:17 irc /kernel: wdc1: unit 0 (atapi): CD-ROM CDU611-Q/2.0c, removable, 
accel, dma, iordis
Jul 22 11:29:17 irc /kernel: acd0: drive speed 1723KB/sec, 256KB cache
Jul 22 11:29:17 irc /kernel: acd0: supported read types: CD-R, CD-RW, CD-DA
Jul 22 11:29:17 irc /kernel: acd0: Audio: play, 16 volume levels
Jul 22 11:29:17 irc /kernel: acd0: Mechanism: ejectable tray
Jul 22 11:29:17 irc /kernel: acd0: Medium: no/blank disc inside, unlocked
Jul 22 11:29:17 irc /kernel: npx0 on motherboard
Jul 22 11:29:17 irc /kernel: npx0: INT 16 interface
Jul 22 11:29:17 irc /kernel: vga0 at 0x3b0-0x3df maddr 0xa msize 131072 on isa
Jul 22 11:29:17 irc /kernel: IP packet filtering initialized, divert disabled, 
rule-based forwarding disabled, unlimited logging
Jul 22 11:29:17 irc /kernel: DUMMYNET initialized (990504)
Jul 22 11:29:17 irc /kernel: changing root device to wd0s1a
Jul 22 11:29:17 irc /kernel: wd0: DMA failure, DMA status 5active
Jul 22 11:29:17 irc last message repeated 17 times
Jul 22 11:29:17 irc /kernel: wd0: DMA failure, DMA status 7error,active
Jul 22 11:29:17 irc /kernel: 
Jul 22 11:29:17 irc /kernel: 
Jul 22 11:29:17 irc /kernel: Fatal trap 12: page fault while in kernel mode
Jul 22 11:29:17 irc /kernel: fault virtual address = 0x44
Jul 22 11:29:17 irc /kernel: fault code= supervisor read, page not present
Jul 22 11:29:17 irc /kernel: instruction pointer   = 0x8:0xc01813ca
Jul 22 11:29:17 irc /kernel: stack pointer = 0x10:0xc9599b84
Jul 22 11:29:17 irc /kernel: frame pointer = 0x10:0xc9599bf4
Jul 22 11:29:17 irc /kernel: code segment  = base 0x0, limit 0xf, type 0x1b
Jul 22 11:29:17 irc /kernel: = 

Re: IDE breakage

1999-07-22 Thread sthaug

 I'm experiencing serious problems with DMA (even normal DMA, not UDMA)
 on recent versions of -STABLE. Here's an excerpt from messages; kernel
 #3 is a recent -STABLE (yesterday's sources), while kernel #2 is
 3.2-RELEASE. The config file for both is identical.

I can confirm problems with DMA from IDE disks in -STABLE. The problems
seem to have been introduced in

$Id: ide_pci.c,v 1.28.2.1 1999/07/20 22:58:20 julian Exp $

And the effect for me is that the system stops in singleuser mode, with
a "DMA failure" message. This is on a 440BX/PII-350 system.

Reverting to 1.28 (from 17. January 1999) fixes the problems.

Please back out 1.28.2.1, at least in -STABLE.

Steinar Haug, Nethelp consulting, [EMAIL PROTECTED]


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



Re: IDE breakage

1999-07-22 Thread Julian Elischer

My fault

I accidentally replaced a PAGE_MASK  with a PAGE_SIZE.
the resulting bug only changes teh behaviour on unaligned pages
which are only possible on the raw device.
(e.g. fsck)

the Cyrix 5530 we used to test has a bug where we cannot do unalligned
transfers by DMA anyhow, so we never hit this bug..

fixed in -current 
will be fixxed in -stable when I reintroduce the patch...

julian


On Thu, 22 Jul 1999 [EMAIL PROTECTED] wrote:

  I'm experiencing serious problems with DMA (even normal DMA, not UDMA)
  on recent versions of -STABLE. Here's an excerpt from messages; kernel
  #3 is a recent -STABLE (yesterday's sources), while kernel #2 is
  3.2-RELEASE. The config file for both is identical.
 
 I can confirm problems with DMA from IDE disks in -STABLE. The problems
 seem to have been introduced in
 
   $Id: ide_pci.c,v 1.28.2.1 1999/07/20 22:58:20 julian Exp $
 
 And the effect for me is that the system stops in singleuser mode, with
 a "DMA failure" message. This is on a 440BX/PII-350 system.
 
 Reverting to 1.28 (from 17. January 1999) fixes the problems.
 
 Please back out 1.28.2.1, at least in -STABLE.
 
 Steinar Haug, Nethelp consulting, [EMAIL PROTECTED]
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-hackers" in the body of the message
 



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



Re: IDE breakage

1999-07-22 Thread Wes Peters

Julian Elischer wrote:
 
 My fault
 
 I accidentally replaced a PAGE_MASK  with a PAGE_SIZE.
 the resulting bug only changes teh behaviour on unaligned pages
 which are only possible on the raw device.
 (e.g. fsck)
 
 the Cyrix 5530 we used to test has a bug where we cannot do unalligned
 transfers by DMA anyhow, so we never hit this bug..
 
 fixed in -current 
 will be fixxed in -stable when I reintroduce the patch...

Bad Programmer!  No doughnuts!

;^)

-- 
"Where am I, and what am I doing in this handbasket?"

Wes Peters Softweyr LLC
http://softweyr.com/   [EMAIL PROTECTED]


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



IDE breakage

1999-07-22 Thread Dag-Erling Smorgrav
I'm experiencing serious problems with DMA (even normal DMA, not UDMA)
on recent versions of -STABLE. Here's an excerpt from messages; kernel
#3 is a recent -STABLE (yesterday's sources), while kernel #2 is
3.2-RELEASE. The config file for both is identical.

Jul 22 10:19:35 xxx /kernel.old: Copyright (c) 1992-1999 FreeBSD Inc.
Jul 22 10:19:35 xxx /kernel.old: Copyright (c) 1982, 1986, 1989, 1991, 1993
Jul 22 10:19:35 xxx /kernel.old: The Regents of the University of California. 
All rights reserved.
Jul 22 10:19:35 xxx /kernel.old: FreeBSD 3.2-STABLE #3: Wed Jul 21 16:21:55 
CEST 1999
Jul 22 10:19:35 xxx /kernel.old: r...@xxx.x.xx:/usr/src/sys/compile/X
Jul 22 10:19:35 xxx /kernel.old: Timecounter i8254  frequency 1193182 Hz
Jul 22 10:19:35 xxx /kernel.old: Timecounter TSC  frequency 348205681 Hz
Jul 22 10:19:35 xxx /kernel.old: CPU: Pentium II/Xeon/Celeron (348.21-MHz 
686-class CPU)
Jul 22 10:19:35 xxx /kernel.old: Origin = GenuineIntel  Id = 0x652  Stepping 
= 2
Jul 22 10:19:35 xxx /kernel.old: 
Features=0x183f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
Jul 22 10:19:35 xxx /kernel.old: real memory  = 134217728 (131072K bytes)
Jul 22 10:19:35 xxx /kernel.old: avail memory = 127774720 (124780K bytes)
Jul 22 10:19:35 xxx /kernel.old: Preloaded elf kernel kernel at 0xc023c000.
Jul 22 10:19:35 xxx /kernel.old: Probing for devices on PCI bus 0:
Jul 22 10:19:35 xxx /kernel.old: chip0: Intel 82443BX host to PCI bridge rev 
0x02 on pci0.0.0
Jul 22 10:19:35 xxx /kernel.old: chip1: Intel 82443BX host to AGP bridge rev 
0x02 on pci0.1.0
Jul 22 10:19:35 xxx /kernel.old: xl0: 3Com 3c905-TX Fast Etherlink XL rev 
0x00 int a irq 11 on pci0.13.0
Jul 22 10:19:35 xxx /kernel.old: xl0: Ethernet address: 00:60:08:e8:6b:1d
Jul 22 10:19:35 xxx /kernel.old: xl0: autoneg complete, link status good 
(full-duplex, 100Mbps)
Jul 22 10:19:35 xxx /kernel.old: chip2: Intel 82371AB PCI to ISA bridge rev 
0x02 on pci0.20.0
Jul 22 10:19:35 xxx /kernel.old: ide_pci0: Intel PIIX4 Bus-master IDE 
controller rev 0x01 on pci0.20.1
Jul 22 10:19:35 xxx /kernel.old: chip3: Intel 82371AB Power management 
controller rev 0x02 on pci0.20.3
Jul 22 10:19:35 xxx /kernel.old: Probing for devices on PCI bus 1:
Jul 22 10:19:35 xxx /kernel.old: vga0: ATI model 4742 graphics accelerator 
rev 0x5c int a irq 11 on pci1.0.0
Jul 22 10:19:35 xxx /kernel.old: Probing for PnP devices:
Jul 22 10:19:35 xxx /kernel.old: Probing for devices on the ISA bus:
Jul 22 10:19:35 xxx /kernel.old: sc0 on isa
Jul 22 10:19:35 xxx /kernel.old: sc0: VGA color 16 virtual consoles, flags=0x0
Jul 22 10:19:35 xxx /kernel.old: atkbdc0 at 0x60-0x6f on motherboard
Jul 22 10:19:35 xxx /kernel.old: atkbd0 irq 1 on isa
Jul 22 10:19:35 xxx /kernel.old: fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
Jul 22 10:19:35 xxx /kernel.old: fdc0: FIFO enabled, 8 bytes threshold
Jul 22 10:19:35 xxx /kernel.old: fd0: 1.44MB 3.5in
Jul 22 10:19:35 xxx /kernel.old: wdc0 at 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on 
isa
Jul 22 10:19:35 xxx /kernel.old: wdc0: unit 0 (wd0): Maxtor 90640D4, DMA, 
32-bit, multi-block-16
Jul 22 10:19:35 xxx /kernel.old: wd0: 6149MB (12594960 sectors), 13328 cyls, 15 
heads, 63 S/T, 512 B/S
Jul 22 10:19:35 xxx /kernel.old: wdc1 at 0x170-0x177 irq 15 flags 0xa0ffa0ff on 
isa
Jul 22 10:19:35 xxx /kernel.old: wdc1: unit 0 (atapi): CD-ROM CDU611-Q/2.0c, 
removable, accel, dma, iordis
Jul 22 10:19:35 xxx /kernel.old: acd0: drive speed 1723KB/sec, 256KB cache
Jul 22 10:19:35 xxx /kernel.old: acd0: supported read types: CD-R, CD-RW, CD-DA
Jul 22 10:19:35 xxx /kernel.old: acd0: Audio: play, 16 volume levels
Jul 22 10:19:35 xxx /kernel.old: acd0: Mechanism: ejectable tray
Jul 22 10:19:35 xxx /kernel.old: acd0: Medium: no/blank disc inside, unlocked
Jul 22 10:19:35 xxx /kernel.old: npx0 on motherboard
Jul 22 10:19:35 xxx /kernel.old: npx0: INT 16 interface
Jul 22 10:19:35 xxx /kernel.old: vga0 at 0x3b0-0x3df maddr 0xa msize 131072 
on isa
Jul 22 10:19:35 xxx /kernel.old: IP packet filtering initialized, divert 
disabled, rule-based forwarding disabled, unlimited logging
Jul 22 10:19:35 xxx /kernel.old: DUMMYNET initialized (990504)
Jul 22 10:19:35 xxx /kernel.old: changing root device to wd0s1a
Jul 22 10:19:35 xxx /kernel.old: wd0: DMA failure, DMA status 5active
Jul 22 10:19:35 xxx last message repeated 11 times

Jul 22 10:19:35 xxx /kernel.old: Copyright (c) 1992-1999 FreeBSD Inc.
Jul 22 10:19:35 xxx /kernel.old: Copyright (c) 1982, 1986, 1989, 1991, 1993
Jul 22 10:19:35 xxx /kernel.old: The Regents of the University of California. 
All rights reserved.
Jul 22 10:19:35 xxx /kernel.old: FreeBSD 3.2-RELEASE #2: Mon Jul 12 20:41:42 
CEST 1999
Jul 22 10:19:35 xxx /kernel.old: r...@xxx.x.xx:/usr/src/sys/compile/X
Jul 22 10:19:35 xxx /kernel.old: Timecounter i8254  frequency 1193182 Hz
Jul 22 10:19:35 xxx /kernel.old: Timecounter TSC  frequency 348205021 Hz
Jul 22 10:19:35 xxx /kernel.old: CPU: Pentium II/Xeon/Celeron (348.21-MHz 
686-class CPU)

Re: IDE breakage

1999-07-22 Thread Dag-Erling Smorgrav
Dag-Erling Smorgrav d...@yes.no writes:
 I'm experiencing serious problems with DMA (even normal DMA, not UDMA)
 on recent versions of -STABLE. Here's an excerpt from messages; kernel
 #3 is a recent -STABLE (yesterday's sources), while kernel #2 is
 3.2-RELEASE. The config file for both is identical.

A brand new kernel (from the same sources and config, but built in a
clean build directory) produces the following:

Jul 22 11:29:17 irc /kernel: Copyright (c) 1992-1999 FreeBSD Inc.
Jul 22 11:29:17 irc /kernel: Copyright (c) 1982, 1986, 1989, 1991, 1993
Jul 22 11:29:17 irc /kernel: The Regents of the University of California. All 
rights reserved.
Jul 22 11:29:17 irc /kernel: FreeBSD 3.2-STABLE #0: Thu Jul 22 10:54:31 CEST 
1999
Jul 22 11:29:17 irc /kernel: r...@xxx.x.xx:/usr/src/sys/compile/X
Jul 22 11:29:17 irc /kernel: Timecounter i8254  frequency 1193182 Hz
Jul 22 11:29:17 irc /kernel: Timecounter TSC  frequency 348204679 Hz
Jul 22 11:29:17 irc /kernel: CPU: Pentium II/Xeon/Celeron (348.20-MHz 686-class 
CPU)
Jul 22 11:29:17 irc /kernel: Origin = GenuineIntel  Id = 0x652  Stepping = 2
Jul 22 11:29:17 irc /kernel: 
Features=0x183f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
Jul 22 11:29:17 irc /kernel: real memory  = 134217728 (131072K bytes)
Jul 22 11:29:17 irc /kernel: avail memory = 127774720 (124780K bytes)
Jul 22 11:29:17 irc /kernel: Preloaded elf kernel kernel at 0xc023c000.
Jul 22 11:29:17 irc /kernel: Probing for devices on PCI bus 0:
Jul 22 11:29:17 irc /kernel: chip0: Intel 82443BX host to PCI bridge rev 0x02 
on pci0.0.0
Jul 22 11:29:17 irc /kernel: chip1: Intel 82443BX host to AGP bridge rev 0x02 
on pci0.1.0
Jul 22 11:29:17 irc /kernel: xl0: 3Com 3c905-TX Fast Etherlink XL rev 0x00 
int a irq 11 on pci0.13.0
Jul 22 11:29:17 irc /kernel: xl0: Ethernet address: 00:60:08:e8:6b:1d
Jul 22 11:29:17 irc /kernel: xl0: autoneg complete, link status good 
(full-duplex, 100Mbps)
Jul 22 11:29:17 irc /kernel: chip2: Intel 82371AB PCI to ISA bridge rev 0x02 
on pci0.20.0
Jul 22 11:29:17 irc /kernel: ide_pci0: Intel PIIX4 Bus-master IDE controller 
rev 0x01 on pci0.20.1
Jul 22 11:29:17 irc /kernel: chip3: Intel 82371AB Power management controller 
rev 0x02 on pci0.20.3
Jul 22 11:29:17 irc /kernel: Probing for devices on PCI bus 1:
Jul 22 11:29:17 irc /kernel: vga0: ATI model 4742 graphics accelerator rev 
0x5c int a irq 11 on pci1.0.0
Jul 22 11:29:17 irc /kernel: Probing for PnP devices:
Jul 22 11:29:17 irc /kernel: Probing for devices on the ISA bus:
Jul 22 11:29:17 irc /kernel: sc0 on isa
Jul 22 11:29:17 irc /kernel: sc0: VGA color 16 virtual consoles, flags=0x0
Jul 22 11:29:17 irc /kernel: atkbdc0 at 0x60-0x6f on motherboard
Jul 22 11:29:17 irc /kernel: atkbd0 irq 1 on isa
Jul 22 11:29:17 irc /kernel: fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
Jul 22 11:29:17 irc /kernel: fdc0: FIFO enabled, 8 bytes threshold
Jul 22 11:29:17 irc /kernel: fd0: 1.44MB 3.5in
Jul 22 11:29:17 irc /kernel: wdc0 at 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa
Jul 22 11:29:17 irc /kernel: wdc0: unit 0 (wd0): Maxtor 90640D4, DMA, 32-bit, 
multi-block-16
Jul 22 11:29:17 irc /kernel: wd0: 6149MB (12594960 sectors), 13328 cyls, 15 
heads, 63 S/T, 512 B/S
Jul 22 11:29:17 irc /kernel: wdc1 at 0x170-0x177 irq 15 flags 0xa0ffa0ff on isa
Jul 22 11:29:17 irc /kernel: wdc1: unit 0 (atapi): CD-ROM CDU611-Q/2.0c, 
removable, accel, dma, iordis
Jul 22 11:29:17 irc /kernel: acd0: drive speed 1723KB/sec, 256KB cache
Jul 22 11:29:17 irc /kernel: acd0: supported read types: CD-R, CD-RW, CD-DA
Jul 22 11:29:17 irc /kernel: acd0: Audio: play, 16 volume levels
Jul 22 11:29:17 irc /kernel: acd0: Mechanism: ejectable tray
Jul 22 11:29:17 irc /kernel: acd0: Medium: no/blank disc inside, unlocked
Jul 22 11:29:17 irc /kernel: npx0 on motherboard
Jul 22 11:29:17 irc /kernel: npx0: INT 16 interface
Jul 22 11:29:17 irc /kernel: vga0 at 0x3b0-0x3df maddr 0xa msize 131072 on 
isa
Jul 22 11:29:17 irc /kernel: IP packet filtering initialized, divert disabled, 
rule-based forwarding disabled, unlimited logging
Jul 22 11:29:17 irc /kernel: DUMMYNET initialized (990504)
Jul 22 11:29:17 irc /kernel: changing root device to wd0s1a
Jul 22 11:29:17 irc /kernel: wd0: DMA failure, DMA status 5active
Jul 22 11:29:17 irc last message repeated 17 times
Jul 22 11:29:17 irc /kernel: wd0: DMA failure, DMA status 7error,active
Jul 22 11:29:17 irc /kernel: 
Jul 22 11:29:17 irc /kernel: 
Jul 22 11:29:17 irc /kernel: Fatal trap 12: page fault while in kernel mode
Jul 22 11:29:17 irc /kernel: fault virtual address = 0x44
Jul 22 11:29:17 irc /kernel: fault code= supervisor read, page not 
present
Jul 22 11:29:17 irc /kernel: instruction pointer   = 0x8:0xc01813ca
Jul 22 11:29:17 irc /kernel: stack pointer = 0x10:0xc9599b84
Jul 22 11:29:17 irc /kernel: frame pointer = 0x10:0xc9599bf4
Jul 22 11:29:17 irc /kernel: code segment  = base 0x0, limit 0xf, 
type 0x1b
Jul 22 11:29:17 irc /kernel: = DPL 0, pres 

Re: IDE breakage

1999-07-22 Thread Jos Backus
Fwiw, I sometimes (mostly after a warm reboot) see:

mmm dd hh:mm:ss hal /kernel: ata1: unwanted interrupt 1 status = ff

immediately followed by a similar Fatal trap 12: page fault while in kernel
mode. Last time, the current process was swapper. Next time it happens I'll
write down the details.

Power-cycling works around the problem. A kernel built on July 7th does not
exhibit this behavior afaIct.

-- 
Jos Backus  _/ _/_/_/  Reliability means never
   _/ _/   _/   having to say you're sorry.
  _/ _/_/_/ -- D. J. Bernstein
 _/  _/ _/_/
jos.bac...@nl.origin-it.com  _/_/  _/_/_/  use Std::Disclaimer;


To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-hackers in the body of the message



Re: IDE breakage

1999-07-22 Thread sthaug
 I'm experiencing serious problems with DMA (even normal DMA, not UDMA)
 on recent versions of -STABLE. Here's an excerpt from messages; kernel
 #3 is a recent -STABLE (yesterday's sources), while kernel #2 is
 3.2-RELEASE. The config file for both is identical.

I can confirm problems with DMA from IDE disks in -STABLE. The problems
seem to have been introduced in

$Id: ide_pci.c,v 1.28.2.1 1999/07/20 22:58:20 julian Exp $

And the effect for me is that the system stops in singleuser mode, with
a DMA failure message. This is on a 440BX/PII-350 system.

Reverting to 1.28 (from 17. January 1999) fixes the problems.

Please back out 1.28.2.1, at least in -STABLE.

Steinar Haug, Nethelp consulting, sth...@nethelp.no


To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-hackers in the body of the message



Re: IDE breakage

1999-07-22 Thread Julian Elischer
My fault

I accidentally replaced a PAGE_MASK  with a PAGE_SIZE.
the resulting bug only changes teh behaviour on unaligned pages
which are only possible on the raw device.
(e.g. fsck)

the Cyrix 5530 we used to test has a bug where we cannot do unalligned
transfers by DMA anyhow, so we never hit this bug..

fixed in -current 
will be fixxed in -stable when I reintroduce the patch...

julian


On Thu, 22 Jul 1999 sth...@nethelp.no wrote:

  I'm experiencing serious problems with DMA (even normal DMA, not UDMA)
  on recent versions of -STABLE. Here's an excerpt from messages; kernel
  #3 is a recent -STABLE (yesterday's sources), while kernel #2 is
  3.2-RELEASE. The config file for both is identical.
 
 I can confirm problems with DMA from IDE disks in -STABLE. The problems
 seem to have been introduced in
 
   $Id: ide_pci.c,v 1.28.2.1 1999/07/20 22:58:20 julian Exp $
 
 And the effect for me is that the system stops in singleuser mode, with
 a DMA failure message. This is on a 440BX/PII-350 system.
 
 Reverting to 1.28 (from 17. January 1999) fixes the problems.
 
 Please back out 1.28.2.1, at least in -STABLE.
 
 Steinar Haug, Nethelp consulting, sth...@nethelp.no
 
 
 To Unsubscribe: send mail to majord...@freebsd.org
 with unsubscribe freebsd-hackers in the body of the message
 



To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-hackers in the body of the message



Re: IDE breakage

1999-07-22 Thread Wes Peters
Julian Elischer wrote:
 
 My fault
 
 I accidentally replaced a PAGE_MASK  with a PAGE_SIZE.
 the resulting bug only changes teh behaviour on unaligned pages
 which are only possible on the raw device.
 (e.g. fsck)
 
 the Cyrix 5530 we used to test has a bug where we cannot do unalligned
 transfers by DMA anyhow, so we never hit this bug..
 
 fixed in -current 
 will be fixxed in -stable when I reintroduce the patch...

Bad Programmer!  No doughnuts!

;^)

-- 
Where am I, and what am I doing in this handbasket?

Wes Peters Softweyr LLC
http://softweyr.com/   w...@softweyr.com


To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-hackers in the body of the message