From hsn@netmag.cz  Sun Mar 28 09:52:33 2004
Return-Path: <hsn@netmag.cz>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 34BEC16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 28 Mar 2004 09:52:33 -0800 (PST)
Received: from mail.tiscali.cz (stateless3.tiscali.cz [213.235.135.72])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7063843D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 28 Mar 2004 09:52:32 -0800 (PST)
	(envelope-from hsn@netmag.cz)
Received: from asura.bsd (212.11.115.196) by mail.tiscali.cz (6.7.021)
        id 402AD1D200AE5B1E for FreeBSD-gnats-submit@freebsd.org; Sun, 28 Mar 2004 19:52:31 +0200
Received: from hsn@localhost
	by asura.bsd (Exim 4.30_2 FreeBSD) id 1B7ZG8-0000ST-Ck
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 28 Mar 2004 14:19:24 +0200
Message-Id: <E1B7ZG8-0000ST-Ck@asura.bsd>
Date: Sun, 28 Mar 2004 14:19:24 +0200
From: Radim Kolar <hsn@netmag.cz>
Reply-To: Radim Kolar <hsn@netmag.cz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: panic in IDE driver
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         64864
>Category:       kern
>Synopsis:       panic: panic in IDE driver with failing disks
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 28 10:00:39 PST 2004
>Closed-Date:    Sun Aug 22 20:23:14 GMT 2004
>Last-Modified:  Sun Aug 22 20:23:14 GMT 2004
>Originator:     Radim Kolar
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
Bhagavata Dharma
>Environment:
System: FreeBSD asura.bsd 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #5: Thu Mar 25 09:24:50 CET 2004 root@asura.bsd:/usr/src/sys/i386/compile/UP i386
>Description:
IDE driver panics when working with drive, which has some read problems.

panic: vm_fault: fault on nofault entry, addr: cbf28000
panic messages:
---
panic: vm_fault: fault on nofault entry, addr: cbf28000

syncing disks, buffers remaining... 2224 2224 2224 2224 2224 2224 2224 2224 2224
2224 2224 2224 2224 2224 2224 2224 2224 2224 2224 2224
giving up on 1510 buffers
Uptime: 5h12m7s
ad0: WARNING - READ interrupt was seen but timeout fired LBA=1
Dumping 256 MB
16 32 48[CTRL-C to abort]  64 80 96 112 128 144 160 176 192 208 224 240[CTRL-C
to abort]
  ---
(kgdb) bt
#0  doadump () at ../../../kern/kern_shutdown.c:240
#1  0xc04d2e54 in boot (howto=256) at ../../../kern/kern_shutdown.c:372
#2  0xc04d31f8 in panic () at ../../../kern/kern_shutdown.c:550
#3  0xc05b17d6 in vm_fault (map=0xc0c31000, vaddr=3421667328,
    fault_type=2 '\002', fault_flags=0) at ../../../vm/vm_fault.c:280
#4  0xc05fa9c3 in trap_pfault (frame=0xcdb5cc2c, usermode=0, eva=3421667328)
        at ../../../i386/i386/trap.c:723
#5  0xc05fa5cd in trap (frame=
	      {tf_fs = -1030750184, tf_es = -1066991600, tf_ds = -843775984, tf_edi = -8
	      73299968, tf_esi = -1030459904, tf_ebp = -843723616, tf_isp = -843723688, tf_ebx
	       = 0, tf_edx = 496, tf_ecx = 128, tf_eax = -873304064, tf_trapno = 12, tf_err =
	       2, tf_eip = -1069302223, tf_cs = 8, tf_eflags = 66054, tf_esp = -1030551040, tf_
	       ss = -1068654779}) at ../../../i386/i386/trap.c:420
#6  0xc05ec438 in calltrap () at {standard input}:94
#7  0xc04395ae in ata_interrupt (data=0xc2946e00)
	           at ../../../dev/ata/ata-lowlevel.c:349
#8  0xc04bd638 in ithread_loop (arg=0xc12b4700)
		       at ../../../kern/kern_intr.c:544
#9  0xc04bc2b0 in fork_exit (callout=0xc04bd460 <ithread_loop>, arg=0x0,
		           frame=0x0) at ../../../kern/kern_fork.c:793
>How-To-Repeat:
Any IDE drive with bad sectors causes this. I have tested several drives.
I have not verified if backtraces are the same.
>Fix:
>Release-Note:
>Audit-Trail:

From: Ceri Davies <ceri@FreeBSD.org>
To: FreeBSD Gnats Submit <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: kern/64864: panic in IDE driver
Date: Tue, 13 Apr 2004 19:08:27 +0100

 Adding to audit trail, from misfiled PR kern/65374:
 
 Date: Fri, 9 Apr 2004 00:05:25 +0200
 From: Radim Kolar <hsn@netmag.cz>
 Message-Id: <20040408220525.GA1329@asura.bsd>
 In-Reply-To: <4B9AC9314078C3439A95B260206437B401802572@mystery.evergreen.edu>
 
  On Thu, Apr 08, 2004 at 02:31:21AM -0700, Grundy, Harrison wrote:
  
  Wondering if this error occurs if you install without a swap
  +partition on the &quot;bad&quot; drive.
  
  I never had swap partition on bad drive.There are only on the same IDE channel.
  Today i have put bad drive in again, disabled dumps and swaps. via swapoff +
  dumpon.  and re/run sysutils/dt on the drive again. It do not panics on IDE
  errors, tryed several times.  I have now newer kernel, 5.2.1-RELEASE-p3. It has
  following files changed when compared with last revision:
  
  src/sys/dev/drm/drm_drv.h
  src/sys/netinet/tcp_input.c
  src/sys/netinet/tcp_subr.c
  src/sys/netinet/tcp_var.h
       
 

From: Radim Kolar <hsn@netmag.cz>
To: FreeBSD BUG followup <bug-followup@freebsd.org>
Cc:  
Subject: Re: kern/64864: panic in IDE driver
Date: Sun, 13 Jun 2004 17:50:47 +0200

 In my previous followup i wrote that IDE driver do not crashes. I have now
 discovered that I have disabled dma transfers. After enabling them IDE driver
 starts hanging whole system on drive read errors.

From: Radim Kolar <hsn@netmag.cz>
To: FreeBSD BUG followup <bug-followup@freebsd.org>
Cc:  
Subject: Re: kern/64864: panic in IDE driver
Date: Sun, 22 Aug 2004 17:40:02 +0200

 fixed in 5.2-current. close it.
State-Changed-From-To: open->closed 
State-Changed-By: simon 
State-Changed-When: Sun Aug 22 20:22:44 GMT 2004 
State-Changed-Why:  
Submitter reports that the problem has been fixed in -CURRENT. 

Thanks for letting us know. 

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