From nobody@FreeBSD.org  Thu Oct 14 09:00:48 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id AFF321065670
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Oct 2010 09:00:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 9F6978FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Oct 2010 09:00:48 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o9E90mt4025689
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Oct 2010 09:00:48 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o9E90mZm025688;
	Thu, 14 Oct 2010 09:00:48 GMT
	(envelope-from nobody)
Message-Id: <201010140900.o9E90mZm025688@www.freebsd.org>
Date: Thu, 14 Oct 2010 09:00:48 GMT
From: Darern Reed <darrenr@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: FAILURE - READ_DMA48 timed out LBA=3907029167
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         151447
>Category:       kern
>Synopsis:       [ata] FAILURE - READ_DMA48 timed out LBA=3907029167
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 14 09:10:09 UTC 2010
>Closed-Date:    Fri Oct 29 10:11:47 UTC 2010
>Last-Modified:  Fri Oct 29 10:11:47 UTC 2010
>Originator:     Darern Reed
>Release:        8.0
>Organization:
FreeBSD
>Environment:
>Description:
After connecting a 2TB HDD (not 2TiB) to my freebsd system, FreeBSD generates kernel error messages involving "READ_DMA48" when it tries to access sectors at the end of the 'd' partition.

I've tried the hard drive connected via eSATA as well as directly into the SATA bus and no joy - same error on both buses.

When used under NetBSD 5.1 or Windows 7, no such error message is seen.

FreeBSD is able to update the MBR (I've done so with fdisk) and read data from the start of the partition without any trouble.

There are others in the FreeBSD forums encountering this issue with hard drives made by different manufacturers on different systems. Mine is a Hitachi drive in a Dell.
>How-To-Repeat:
Boot FreeBSD 8 with a current model 2TB HDD connected to a SATA/eSATA bus.
>Fix:


>Release-Note:
>Audit-Trail:

From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: Darern Reed <darrenr@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/151447: FAILURE - READ_DMA48 timed out LBA=3907029167
Date: Thu, 14 Oct 2010 13:56:58 +0400

 On 14.10.2010 13:00, Darern Reed wrote:
 > After connecting a 2TB HDD (not 2TiB) to my freebsd system, FreeBSD generates kernel error
 > messages involving "READ_DMA48" when it tries to access sectors at the end of the 'd' partition.
 
 Can you show your /var/run/dmesg.boot after booting in verbose mode?
 Also can you show some information about this disk from NetBSD?
 How many sectors? Did you try to boot 9.0-CURRENT?
 
 -- 
 WBR, Andrey V. Elsukov
State-Changed-From-To: open->feedback 
State-Changed-By: ae 
State-Changed-When: Fri Oct 15 06:08:09 UTC 2010 
State-Changed-Why:  
additional information was requested. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151447 

From: Darren Reed <darernr@freebsd.org>
To: bug-followup@FreeBSD.org, darrenr@FreeBSD.org
Cc:  
Subject: Re: kern/151447: [ata] FAILURE - READ_DMA48 timed out LBA=3907029167
Date: Thu, 14 Oct 2010 23:18:05 +0000

 Copyright (c) 1992-2009 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 is a registered trademark of The FreeBSD Foundation.
 FreeBSD 8.0-BETA4 #0: Sun Sep  6 05:51:03 UTC 2009
     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC 
 <mailto:root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC>
 WARNING: WITNESS option enabled, expect reduced performance.
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz (2667.97-MHz 
 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x106a5  Stepping = 5
   
 Features=0xfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CM
 OV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS>
   Features2=0x80982201<SSE3,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,<b31>>
   AMD Features=0x28100000<NX,RDTSCP,LM>
   AMD Features2=0x1<LAHF>
   TSC: P-state invariant
 real memory  = 1073741824 (1024 MB)
 avail memory = 1031798784 (984 MB)
 ACPI APIC Table: <PTLTD          APIC  >
 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 FreeBSD/SMP: 1 package(s) x 1 core(s) x 2 SMT threads
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
 MADT: Forcing active-low polarity and level trigger for SCI
 ioapic0 <Version 1.1> irqs 0-23 on motherboard
 kbd1 at kbdmux0
 acpi0: <INTEL 440BX> on motherboard
 acpi0: [ITHREAD]
 acpi0: Power Button (fixed)
 Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
 pci0: <ACPI PCI bus> on pcib0
 pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
 pci1: <ACPI PCI bus> on pcib1
 isab0: <PCI-ISA bridge> at device 7.0 on pci0
 isa0: <ISA bus> on isab0
 atapci0: <Intel PIIX4 UDMA33 controller> port 
 0x1f0-0x1f7,0x3f6,0x170-0x177,0x37
 6,0x10c0-0x10cf at device 7.1 on pci0
 ata0: <ATA channel 0> on atapci0
 ata0: [ITHREAD]
 ata1: <ATA channel 1> on atapci0
 ata1: [ITHREAD]
 pci0: <bridge> at device 7.3 (no driver attached)
 pci0: <base peripheral> at device 7.7 (no driver attached)
 vgapci0: <VGA-compatible display> port 0x10d0-0x10df mem 
 0xd0000000-0xd7ffffff,0
 xd8000000-0xd87fffff irq 16 at device 15.0 on pci0
 mpt0: <LSILogic 1030 Ultra4 Adapter> port 0x1400-0x14ff mem 
 0xd8820000-0xd883fff
 f,0xd8800000-0xd881ffff irq 17 at device 16.0 on pci0
 mpt0: [ITHREAD]
 mpt0: MPI Version=1.2.0.0
 pcib2: <ACPI PCI-PCI bridge> at device 17.0 on pci0
 pci2: <ACPI PCI bus> on pcib2
 uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x20c0-0x20df irq 
 18 at de
 vice 0.0 on pci2
 uhci0: [ITHREAD]
 usbus0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
 em0: <Intel(R) PRO/1000 Network Connection 6.9.14> port 0x2000-0x203f 
 mem 0xd894
 0000-0xd895ffff,0xd8900000-0xd890ffff irq 19 at device 1.0 on pci2
 em0: Memory Access and/or Bus Master bits were not set!
 em0: [FILTER]
 em0: Ethernet address: 00:0c:29:2d:fc:09
 ehci0: <EHCI (generic) USB 2.0 controller> mem 0xd8930000-0xd8930fff irq 
 16 at d
 evice 2.0 on pci2
 ehci0: [ITHREAD]
 usbus1: EHCI version 1.0
 usbus1: <EHCI (generic) USB 2.0 controller> on ehci0
 em1: <Intel(R) PRO/1000 Network Connection 6.9.14> port 0x2040-0x207f 
 mem 0xd896
 0000-0xd897ffff,0xd8910000-0xd891ffff irq 18 at device 4.0 on pci2
 em1: Memory Access and/or Bus Master bits were not set!
 em1: [FILTER]
 em1: Ethernet address: 00:0c:29:2d:fc:13
 em2: <Intel(R) PRO/1000 Network Connection 6.9.14> port 0x2080-0x20bf 
 mem 0xd898
 0000-0xd899ffff,0xd8920000-0xd892ffff irq 19 at device 5.0 on pci2
 em2: Memory Access and/or Bus Master bits were not set!
 em2: [FILTER]
 em2: Ethernet address: 00:0c:29:2d:fc:1d
 pcib3: <ACPI PCI-PCI bridge> at device 21.0 on pci0
 pci3: <ACPI PCI bus> on pcib3
 pcib4: <ACPI PCI-PCI bridge> at device 21.1 on pci0
 pci4: <ACPI PCI bus> on pcib4
 pcib5: <ACPI PCI-PCI bridge> at device 21.2 on pci0
 pci5: <ACPI PCI bus> on pcib5
 pcib6: <ACPI PCI-PCI bridge> at device 21.3 on pci0
 pci6: <ACPI PCI bus> on pcib6
 pcib7: <ACPI PCI-PCI bridge> at device 21.4 on pci0
 pci7: <ACPI PCI bus> on pcib7
 pcib8: <ACPI PCI-PCI bridge> at device 21.5 on pci0
 pci8: <ACPI PCI bus> on pcib8
 pcib9: <ACPI PCI-PCI bridge> at device 21.6 on pci0
 pci9: <ACPI PCI bus> on pcib9
 pcib10: <ACPI PCI-PCI bridge> at device 21.7 on pci0
 pci10: <ACPI PCI bus> on pcib10
 pcib11: <ACPI PCI-PCI bridge> at device 22.0 on pci0
 pci11: <ACPI PCI bus> on pcib11
 pcib12: <ACPI PCI-PCI bridge> at device 22.1 on pci0
 pci12: <ACPI PCI bus> on pcib12
 pcib13: <ACPI PCI-PCI bridge> at device 22.2 on pci0
 pci13: <ACPI PCI bus> on pcib13
 pcib14: <ACPI PCI-PCI bridge> at device 22.3 on pci0
 pci14: <ACPI PCI bus> on pcib14
 pcib15: <ACPI PCI-PCI bridge> at device 22.4 on pci0
 pci15: <ACPI PCI bus> on pcib15
 pcib16: <ACPI PCI-PCI bridge> at device 22.5 on pci0
 pci16: <ACPI PCI bus> on pcib16
 pcib17: <ACPI PCI-PCI bridge> at device 22.6 on pci0
 pci17: <ACPI PCI bus> on pcib17
 pcib18: <ACPI PCI-PCI bridge> at device 22.7 on pci0
 pci18: <ACPI PCI bus> on pcib18
 pcib19: <ACPI PCI-PCI bridge> at device 23.0 on pci0
 pci19: <ACPI PCI bus> on pcib19
 pcib20: <ACPI PCI-PCI bridge> at device 23.1 on pci0
 pci20: <ACPI PCI bus> on pcib20
 pcib21: <ACPI PCI-PCI bridge> at device 23.2 on pci0
 pci21: <ACPI PCI bus> on pcib21
 pcib22: <ACPI PCI-PCI bridge> at device 23.3 on pci0
 pci22: <ACPI PCI bus> on pcib22
 pcib23: <ACPI PCI-PCI bridge> at device 23.4 on pci0
 pci23: <ACPI PCI bus> on pcib23
 pcib24: <ACPI PCI-PCI bridge> at device 23.5 on pci0
 pci24: <ACPI PCI bus> on pcib24
 pcib25: <ACPI PCI-PCI bridge> at device 23.6 on pci0
 pci25: <ACPI PCI bus> on pcib25
 pcib26: <ACPI PCI-PCI bridge> at device 23.7 on pci0
 pci26: <ACPI PCI bus> on pcib26
 pcib27: <ACPI PCI-PCI bridge> at device 24.0 on pci0
 pci27: <ACPI PCI bus> on pcib27
 pcib28: <ACPI PCI-PCI bridge> at device 24.1 on pci0
 pci28: <ACPI PCI bus> on pcib28
 pcib29: <ACPI PCI-PCI bridge> at device 24.2 on pci0
 pci29: <ACPI PCI bus> on pcib29
 pcib30: <ACPI PCI-PCI bridge> at device 24.3 on pci0
 pci30: <ACPI PCI bus> on pcib30
 pcib31: <ACPI PCI-PCI bridge> at device 24.4 on pci0
 pci31: <ACPI PCI bus> on pcib31
 pcib32: <ACPI PCI-PCI bridge> at device 24.5 on pci0
 pci32: <ACPI PCI bus> on pcib32
 pcib33: <ACPI PCI-PCI bridge> at device 24.6 on pci0
 pci33: <ACPI PCI bus> on pcib33
 pcib34: <ACPI PCI-PCI bridge> at device 24.7 on pci0
 pci34: <ACPI PCI bus> on pcib34
 acpi_acad0: <AC Adapter> on acpi0
 acpi_button0: <Sleep Button> on acpi0
 atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
 atkbd0: <AT Keyboard> irq 1 on atkbdc0
 kbd0 at atkbd0
 atkbd0: [GIANT-LOCKED]
 atkbd0: [ITHREAD]
 psm0: <PS/2 Mouse> irq 12 on atkbdc0
 psm0: [GIANT-LOCKED]
 psm0: [ITHREAD]
 psm0: model IntelliMouse, device ID 3
 ppc0: <Parallel port> port 0x378-0x37f irq 7 on acpi0
 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
 ppc0: [ITHREAD]
 ppbus0: <Parallel port bus> on ppc0
 plip0: <PLIP network interface> on ppbus0
 plip0: [ITHREAD]
 lpt0: <Printer> on ppbus0
 lpt0: [ITHREAD]
 lpt0: Interrupt-driven port
 ppi0: <Parallel I/O> on ppbus0
 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
 uart0: [FILTER]
 uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
 uart1: [FILTER]
 fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
 fdc0: [FILTER]
 cpu0: <ACPI CPU> on acpi0
 acpi_throttle0: <ACPI CPU Throttling> on cpu0
 smist0: <SpeedStep SMI> on cpu0
 device_attach: smist0 attach returned 6
 cpu1: <ACPI CPU> on acpi0
 acpi_throttle1: <ACPI CPU Throttling> on cpu1
 acpi_throttle1: failed to attach P_CNT
 device_attach: acpi_throttle1 attach returned 6
 smist1: <SpeedStep SMI> on cpu1
 device_attach: smist1 attach returned 6
 pmtimer0 on isa0
 orm0: <ISA Option ROMs> at iomem 
 0xc0000-0xc7fff,0xc8000-0xc8fff,0xc9000-0xc9fff
 ,0xca000-0xcafff,0xdc000-0xdffff,0xe4000-0xe7fff pnpid ORM0000 on isa0
 sc0: <System console> at flags 0x100 on isa0
 sc0: VGA <16 virtual consoles, flags=0x300>
 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
 Timecounters tick every 10.000 msec
 usbus0: 12Mbps Full Speed USB v1.0
 usbus1: 480Mbps High Speed USB v2.0
 ad0: 610480MB <VMware Virtual IDE Hard Drive 00000001> at ata0-master UDMA33
 ugen0.1: <Intel> at usbus0
 uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
 ugen1.1: <(0x15ad)> at usbus1
 uhub1: <(0x15ad) EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
 GEOM: ad0: partition 3 does not start on a track boundary.
 GEOM: ad0: partition 3 does not end on a track boundary.
 GEOM: ad0: partition 2 does not start on a track boundary.
 GEOM: ad0: partition 2 does not end on a track boundary.
 ad1: 1907729MB <VMware Virtual IDE Hard Drive 00000001> at ata0-slave UDMA33
 uhub0: 2 ports with 2 removable, self powered
 fdc0: ready for output in input
 fdc0: ready for output in input
 fdc0: ready for output in input
 fdc0: ready for output in input
 fdc0: ready for output in input
 fdc0: ready for output in input
 fdc0: ready for output in input
 fdc0: ready for output in input
 uhub1: 6 ports with 6 removable, self powered
 ad1: FAILURE - READ_DMA48 timed out LBA=3907029165
 ad1: FAILURE - READ_DMA48 timed out LBA=3907029151
 ad1: FAILURE - READ_DMA48 timed out LBA=3907029164
 ad1: FAILURE - READ_DMA48 timed out LBA=3907029167
 ad1: FAILURE - READ_DMA48 timed out LBA=3907029167
 ad1: FAILURE - READ_DMA48 timed out LBA=3907028727
 acd0: CDROM <VMware Virtual IDE CDROM Drive/00000001> at ata1-master UDMA33
 Waiting 5 seconds for SCSI devices to settle
 SMP: AP CPU #1 Launched!
 WARNING: WITNESS option enabled, expect reduced performance.
 GEOM: ad0s4: geometry does not match label (255h,63s != 15h,63s).
 ad1: TIMEOUT - READ_DMA48 retrying (1 retry left) LBA=3907029167
 ad1: TIMEOUT - READ_DMA48 retrying (0 retries left) LBA=3907029167
 ad1: FAILURE - READ_DMA48 timed out LBA=3907029167
 GEOM: ad1: invalid disklabel.
 Trying to mount root from ufs:/dev/ad0s4a
 WARNING: ZFS is considered to be an experimental feature in FreeBSD.
 ZFS NOTICE: prefetch is disabled by default on i386 - add enable to 
 tunable to c
 hange.
 ZFS filesystem version 13
 ZFS storage pool version 13
 pid 871 (ps), uid 0: exited on signal 11 (core dumped)
 pid 888 (fstat), uid 0: exited on signal 11

From: Darren Reed <darernr@freebsd.org>
To: bug-followup@FreeBSD.org, darrenr@FreeBSD.org
Cc:  
Subject: Re: kern/151447: [ata] FAILURE - READ_DMA48 timed out LBA=3907029167
Date: Fri, 15 Oct 2010 09:50:56 +0000

 This problem was solved by upgrading VMWare Workstation from 6.5.3 to 7.1.2.
 
 The "hardware problem" would appear to be being introduced by VMWware.
 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Fri Oct 29 10:11:46 UTC 2010 
State-Changed-Why:  
Apparently a VMWare problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=151447 
>Unformatted:
