Bug 48967

Summary: CURRENT atat driver, ad0: UDMA ICRC error
Product: Base System Reporter: dirk.meyer <dirk.meyer>
Component: kernAssignee: Søren Schmidt <sos>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   

Description dirk.meyer 2003-03-06 05:20:01 UTC
might be some changes in the ata code?

# grep FreeBSD: /usr/src/sys/dev/ata/ata*
/usr/src/sys/dev/ata/ata-all.c: * $FreeBSD: src/sys/dev/ata/ata-all.c,v 1.169 2003/03/03 12:15:41 phk Exp $
/usr/src/sys/dev/ata/ata-all.h: * $FreeBSD: src/sys/dev/ata/ata-all.h,v 1.59 2003/02/20 20:01:01 sos Exp $
/usr/src/sys/dev/ata/ata-card.c: * $FreeBSD: src/sys/dev/ata/ata-card.c,v 1.9 2003/03/03 11:15:32 sos Exp $
/usr/src/sys/dev/ata/ata-cbus.c: * $FreeBSD: src/sys/dev/ata/ata-cbus.c,v 1.4 2003/02/20 20:01:01 sos Exp $
/usr/src/sys/dev/ata/ata-chipset.c: * $FreeBSD: src/sys/dev/ata/ata-chipset.c,v 1.11 2003/03/03 11:51:08 sos Exp $
/usr/src/sys/dev/ata/ata-disk.c: * $FreeBSD: src/sys/dev/ata/ata-disk.c,v 1.146 2003/02/25 15:33:36 sos Exp $
/usr/src/sys/dev/ata/ata-disk.h: * $FreeBSD: src/sys/dev/ata/ata-disk.h,v 1.44 2003/02/25 15:33:36 sos Exp $
/usr/src/sys/dev/ata/ata-dma.c: * $FreeBSD: src/sys/dev/ata/ata-dma.c,v 1.113 2003/02/20 20:01:01 sos Exp $
/usr/src/sys/dev/ata/ata-isa.c: * $FreeBSD: src/sys/dev/ata/ata-isa.c,v 1.13 2003/03/03 11:15:32 sos Exp $
/usr/src/sys/dev/ata/ata-pci.c: * $FreeBSD: src/sys/dev/ata/ata-pci.c,v 1.57 2003/02/25 14:46:30 sos Exp $
/usr/src/sys/dev/ata/ata-pci.h: * $FreeBSD: src/sys/dev/ata/ata-pci.h,v 1.4 2003/03/03 11:51:08 sos Exp $
/usr/src/sys/dev/ata/ata-raid.c: * $FreeBSD: src/sys/dev/ata/ata-raid.c,v 1.55 2003/02/25 15:33:36 sos Exp $
/usr/src/sys/dev/ata/ata-raid.h: * $FreeBSD: src/sys/dev/ata/ata-raid.h,v 1.21 2003/02/25 15:33:36 sos Exp $
/usr/src/sys/dev/ata/atapi-all.c: * $FreeBSD: src/sys/dev/ata/atapi-all.c,v 1.98 2003/03/03 11:15:32 sos Exp $
/usr/src/sys/dev/ata/atapi-all.h: * $FreeBSD: src/sys/dev/ata/atapi-all.h,v 1.48 2003/02/20 20:01:01 sos Exp $
/usr/src/sys/dev/ata/atapi-cam.c: * $FreeBSD: src/sys/dev/ata/atapi-cam.c,v 1.14 2003/02/27 20:56:56 njl Exp $
/usr/src/sys/dev/ata/atapi-cd.c: * $FreeBSD: src/sys/dev/ata/atapi-cd.c,v 1.132 2003/03/03 12:15:41 phk Exp $
/usr/src/sys/dev/ata/atapi-cd.h: * $FreeBSD: src/sys/dev/ata/atapi-cd.h,v 1.35 2003/02/20 20:01:01 sos Exp $
/usr/src/sys/dev/ata/atapi-fd.c: * $FreeBSD: src/sys/dev/ata/atapi-fd.c,v 1.83 2003/02/28 09:53:35 phk Exp $
/usr/src/sys/dev/ata/atapi-fd.h: * $FreeBSD: src/sys/dev/ata/atapi-fd.h,v 1.19 2003/02/28 09:53:35 phk Exp $
/usr/src/sys/dev/ata/atapi-tape.c: * $FreeBSD: src/sys/dev/ata/atapi-tape.c,v 1.74 2003/03/03 12:15:41 phk Exp $
/usr/src/sys/dev/ata/atapi-tape.h: * $FreeBSD: src/sys/dev/ata/atapi-tape.h,v 1.18 2003/02/20 20:01:01 sos Exp $

How-To-Repeat: 
working:
	FreeBSD 5.0-CURRENT #0: Fri Jan 31 13:42:19 CET 2003
hanging:
	FreeBSD 5.0=CURRENT #0: Wed Mar  5 20:31:18 CET 2003
	FreeBSD 5.0-CURRENT #1: Thu Mar  6 00:26:09 CET 2003
Comment 1 Johan Karlsson freebsd_committer freebsd_triage 2003-03-06 19:40:53 UTC
Responsible Changed
From-To: freebsd-bugs->sos

Over to ATA maintainer.
Comment 2 dirk.meyer 2003-04-02 05:33:31 UTC
hi,
The problem of this PR was persistent, even after rebuild.
tonight I cvsupped, and rebuild with current sources.

Now the fallback to PIP mode works fine.
and the bad bits in the kernel output have ceased.

kind regards Dirk

- Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
- [dirk.meyer@dinoex.sub.org],[dirk.meyer@guug.de],[dinoex@FreeBSD.org]

Copyright (c) 1992-2003 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 #0: Wed Apr  2 01:13:00 CEST 2003
    root@dip.dinoex.sub.de:/home/obj/usr/src/sys/GENERIC
Preloaded elf kernel "/boot/kernel/kernel" at 0xc06cf000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc06cf0a8.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06cf0f8.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 897752829 Hz
CPU: Intel Celeron (897.75-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 234815488 (223 MB)
avail memory = 220712960 (210 MB)
Allocating major#253 to "net"
Allocating major#252 to "g_ctl"
Allocating major#251 to "pci"
Pentium Pro MTRR support enabled
    ACPI-1287: *** Error: Method execution failed, AE_AML_INTERNAL
    ACPI-0204: *** Error: AcpiLoadTables: Could not load namespace: AE_AML_INTERNAL
    ACPI-0213: *** Error: AcpiLoadTables: Could not load tables: AE_AML_INTERNAL
ACPI: table load failed: AE_AML_INTERNAL
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 1 entries at 0xc00fe840
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
agp0: <SIS Generic host to PCI bridge> mem 0x30000000-0x33ffffff at device 0.0 on pci0
atapci0: <SiS 630S UDMA100 controller> port 0x1100-0x110f,0x374-0x377,0x170-0x173,0x3f4-0x3f7,0x1f0-0x1f3 at device 0.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
ohci0: <SiS 5571 USB controller> mem 0x34001000-0x34001fff irq 10 at device 1.2 on pci0
usb0: OHCI version 1.0, legacy support
usb0: <SiS 5571 USB controller> on ohci0
usb0: USB revision 1.0
uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: <SiS 5571 USB controller> mem 0x34002000-0x34002fff irq 10 at device 1.3 on pci0
usb1: OHCI version 1.0, legacy support
usb1: <SiS 5571 USB controller> on ohci1
usb1: USB revision 1.0
uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pci0: <multimedia, audio> at device 1.4 (no driver attached)
pci0: <simple comms> at device 1.6 (no driver attached)
pcib1: <PCIBIOS PCI-PCI bridge> at device 2.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
rl0: <RealTek 8139 10/100BaseTX> port 0x3400-0x34ff mem 0x34004000-0x340040ff irq 11 at device 11.0 on pci0
rl0: Realtek 8139B detected. Warning, this may be unstable in autoselect mode
rl0: Ethernet address: 00:e0:4a:39:00:a9
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
orm0: <Option ROMs> at iomem 0xcd000-0xcdfff,0xcc000-0xccfff,0xc0000-0xcbfff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
Allocating major#250 to "devstat"
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0400> can't assign resources (port)
Timecounters tick every 10.000 msec
ad0: DMA limited to UDMA33, non-ATA66 cable or device
ad0: 9590MB <HITACHI_DK23BA-10E> [19485/16/63] at ata0-master UDMA33
acd0: CD-RW <CD-W24E> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a

diffs:

@@ -1,22 +1,23 @@
 Copyright (c) 1992-2003 The FreeBSD Project.
-Copyright (c) 1979, 1980, 1983, 1986, 1\^Y88, 1989, 1991, 1992, 1993, 1994
-	The Regents of the University of Cqlifornia. All rights reserved.
-FreeBSD 5.0=CURRENT #0: Wed Mar  5 20:31:18 CET 2003
+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 #0: Wed Apr  2 01:13:00 CEST 2003
     root@dip.dinoex.sub.de:/home/obj/usr/src/sys/GENERIC
-Pveloaded elf kernel "/boot/kernel/kernel" at 0xc06c4000.
-Preloaded userconfig_script "/boot/kernel.conf" at 0xc06c40a8.
-Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06c40f8.
+Preloaded elf kernel "/boot/kernel/kernel" at 0xc06cf000.
+Preloaded userconfig_script "/boot/kernel.conf" at 0xc06cf0a8.
+Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06cf0f8.
 Timecounter "i8254"  frequency 1193182 Hz
-Timecounter "TSC"  frequency 897754289 Hz
+Timecounter "TSC"  frequency 897752829 Hz
 CPU: Intel Celeron (897.75-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
-  Features=0x383f9ff<FPU,VME,DE,PSM,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PÃE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
-real memory 0= 234815488 (223 MB)
-avail memory = 220758016 (210 MB)
+  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
+real memory  = 234815488 (223 MB)
+avail memory = 220712960 (210 MB)
 Allocating major#253 to "net"
-Allocating major#252 to "pci"
+Allocating major#252 to "g_ctl"
+Allocating major#251 to "pci"
 Pentium Pro MTRR support enabled
-    ACPI-1287: *** Error: Method execution failed, AE_AML_InTERNAL
+    ACPI-1287: *** Error: Method execution failed, AE_AML_INTERNAL
     ACPI-0204: *** Error: AcpiLoadTables: Could not load namespace: AE_AML_INTERNAL
     ACPI-0213: *** Error: AcpiLoadTables: Could not load tables: AE_AML_INTERNAL
 ACPI: table load failed: AE_AML_INTERNAL
@@ -24,92 +25,70 @@
 npx0: INT 16 interface
 pcibios: BIOS version 2.10
 Using $PIR table, 1 entries at 0xc00fe840
-pcib0: <Host to PCI bridge> qt pcibus 0 on motherboard
+pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
 pci0: <PCI bus> on pcib0
-agp0: <SIS Generic host to PCI bridge> mem 0x30000000-0x33ffffff at device 0.0 oj pci0
+agp0: <SIS Generic host to PCI bridge> mem 0x30000000-0x33ffffff at device 0.0 on pci0
 atapci0: <SiS 630S UDMA100 controller> port 0x1100-0x110f,0x374-0x377,0x170-0x173,0x3f4-0x3f7,0x1f0-0x1f3 at device 0.1 on pci0
 ata0: at 0x1f0 irq 14 on atapci0
 ata1: at 0x170 irq 15 on atapci0
 isab0: <PCI-ISA bridge> at device 1.0 on pci0
 isa0: <ISA bus> on isab0
 ohci0: <SiS 5571 USB controller> mem 0x34001000-0x34001fff irq 10 at device 1.2 on pci0
-usb0: OHCI tersion 1.0, legacy support
-usb0: <SiË 5571 USB controller> on ohci0
+usb0: OHCI version 1.0, legacy support
+usb0: <SiS 5571 USB controller> on ohci0
 usb0: USB revision 1.0
 uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 3 ports with 3 removable, self powered
-ohci1: <SiS 5571 USB controller> mem 0x34002000-0x34102fff irq 10 at device 1.3 on pci0
+ohci1: <SiS 5571 USB controller> mem 0x34002000-0x34002fff irq 10 at device 1.3 on pci0
 usb1: OHCI version 1.0, legacy support
 usb1: <SiS 5571 USB controller> on ohci1
-usb1: USB reöision 1.0
-uhub1: SiS OHCI root hub¼ class 9/0, rev 1.00/1.00, addr 1
+usb1: USB revision 1.0
+uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub1: 3 ports with 3 removable, self powered
-pci0: <multimedia, audio> at devIce 1.4 (no driver att`ched)
+pci0: <multimedia, audio> at device 1.4 (no driver attached)
 pci0: <simple comms> at device 1.6 (no driver attached)
 pcib1: <PCIBIOS PCI-PCI bridge> at device 2.0 on pci0
 pci1: <PCI bus> on pcib1
 pci1: <display, VGA> at device 0.0 (no driver attached)
-rl0: <RealTek 8139 10/100BaseTX> port 0x3400-0x34ff mem 0x34004040-0x340040ff irq 11 at device 11.0 on pci0
+rl0: <RealTek 8139 10/100BaseTX> port 0x3400-0x34ff mem 0x34004000-0x340040ff irq 11 at device 11.0 on pci0
 rl0: Realtek 8139B detected. Warning, this may be unstable in autoselect mode
-rl0: Ethernet address: 00:e0:4a:39>00:a9
-maibus0: <MII bus> on rl0
+rl0: Ethernet address: 00:e0:4a:39:00:a9
+miibus0: <MII bus> on rl0
 rlphy0: <RealTek internal media interface> on miibus0
-rdphy0:  10baseT,10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
-orm0: <Option ROMs> at iomem 0xcd00\^P-0xcdfff,0xcc000-0xccffµ,0xc0000-0xcbfff on isa0
+rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
+orm0: <Option ROMs> at iomem 0xcd000-0xcdfff,0xcc000-0xccfff,0xc0000-0xcbfff on isa0
 pmtimer0 on isa0
 atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
-atkbd0: <AT Keyboard> flags 0x1 irq q on atk"dc0
-kbdp at atkbd0
+atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
+kbd0 at atkbd0
 psm0: <PS/2 Mouse> irq 12 on atkbdc0
 psm0: model Generic PS/2 mouse, device ID 0
 fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
-fdc0: FIFO enabled, 8 "ytes threshold
-fd0: <144 -KB 3.5" drive> on fdc0 drive 4
+fdc0: FIFO enabled, 8 bytes threshold
+fd0: <1440-KB 3.5" drive> on fdc0 drive 0
+Allocating major#250 to "devstat"
 ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
-plip0: <PLIP network interface> on ppbus4
+ppbus0: <Parallel port bus> on ppc0
+plip0: <PLIP network interface> on ppbus0
 lpt0: <Printer> on ppbus0
 lpt0: Interrupt-driven port
 ppi0: <Parallel I/O> on ppbus0
-sc0: <Sys¶em console> at flags 0x100 on isa0
-sc0: VGA <16 virtual consoles, f|ags=0x300>
-sio0: configured irq 4 not in bivmap of probed irqs 0
-sim0: port may not be enabled
-sio0 at port 0x3f8-0p3ff irq 4 flags 0x10 on isa0
+sc0: <System console> at flags 0x100 on isa0
+sc0: VGA <16 virtual consoles, flags=0x300>
+sio0: configured irq 4 not in bitmap of probed irqs 0
+sio0: port may not be enabled
+sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
 sio0: type 8250 or not responding
 sio1: configured irq 3 not in bitmap of probed irqs 0
-sio1: port may not be enab,ed
+sio1: port may not be enabled
 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
-unknown: <PNP0303> can't assign resoqrces (port9
-unknown: <PNP2f13> can't assign resources (ir±)
+unknown: <PNP0303> can't assign resources (port)
+unknown: <PNP0f13> can't assign resources (irq)
 unknown: <PNP0700> can't assign resources (port)
 unknown: <PNP0400> can't assign resources (port)
 Timecounters tick every 10.000 msec
 ad0: DMA limited to UDMA33, non-ATA66 cable or device
 ad0: 9590MB <HITACHI_DK23BA-10E> [19485/16/63] at ata0-master UDMA33
-ata1-master: DMA limited to UDMA33, non-ATA66 cable or device
-acd0: CD-RW <CD-W24E> at ata1-master UDMA33
+acd0: CD-RW <CD-W24E> at ata1-master PIO4
 Mounting root from ufs:/dev/ad0s1a
-,118> point_to_point
-ad0: UDMA ICRC error cmd=write fsbn 2103870 of 1051935-1051938
- retrying
-ad0: UDMA ICRC error cmd=write fsbn 2103870 of 1051935-1051938
- retrying
-ad0: UDMA ICRC error cmd=write fcbn 2103870 of 1051935-1051938
- retrying
-ad0: UDMA ICRC error35-1051938
-ad0: DMA limited to UDMA33, non-ATA66 cable or device
- falling back to PIO mode
-ad0: UDMA ICRC error amd=write fsbn 2md=write fsbn 2103850 of 1051935-1051938
-ad0: DMA limited to UDMfalling back to PIO mode
-ad0: UDMA ICRC Õrror cmd=write µsbn 2103870 of 10u1935-1051938
-ßd0: DMA limited to UDMA33, non-ATA66 cable or device
- falling back to PIO mode
-ad0: UDMA ICRC error cmd=write fsbo 2103870 of 1051935-1051938
-ad0: DMA limited to UDMA3 ICRC error cmd=write fsbn 2103870 of 1051935-1051938
-ad0: DMA l\^B mode
-ad0:0UDMA ICRC error cmd=write fsbn 2103870 of 1051935-1051938
-ad0: DMA limited to"UDMA33, non-ATA66 cable or device
- falling back to PIO mode
-ad0: UDMA ICRC error cmd=write fsbn 2103870\^D\^For device
- falling back to PIO mode
Comment 3 Søren Schmidt freebsd_committer freebsd_triage 2003-04-28 19:17:11 UTC
State Changed
From-To: open->closed

Problem solved.