From nobody@FreeBSD.org  Wed Jun 30 07:36:35 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8DF8416A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Jun 2004 07:36:35 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8763143D46
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Jun 2004 07:36:35 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i5U7a5UQ044486
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Jun 2004 07:36:05 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i5U7a5qq044485;
	Wed, 30 Jun 2004 07:36:05 GMT
	(envelope-from nobody)
Message-Id: <200406300736.i5U7a5qq044485@www.freebsd.org>
Date: Wed, 30 Jun 2004 07:36:05 GMT
From: Alexei Khalimov <lesha@intercaf.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ATA panics in UDMA33 mode (worked OK in 5.2.1-R)
X-Send-Pr-Version: www-2.3

>Number:         68502
>Category:       i386
>Synopsis:       ATA panics in UDMA33 mode (worked OK in 5.2.1-R)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 30 07:40:28 GMT 2004
>Closed-Date:    Mon Aug 16 12:04:32 GMT 2004
>Last-Modified:  Mon Aug 16 12:04:32 GMT 2004
>Originator:     Alexei Khalimov
>Release:        5.2-CURRENT (Jun 30)
>Organization:
InterCAF
>Environment:
FreeBSD urri.intercaf.ru 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Wed Jun 30 10:36:24 MSD 2004  urri@urri.intercaf.ru:/usr/src/sys/i386/compile/URRI i386
>Description:
ATA driver panics system if run in DMA mode
hw.ata.ata_dma="0" works fine, but PIO4 is so slow.
Everything worked just fine with 5.2.1-RELEASE

atapci0: <SiS 961 UDMA100 controller> port
 0x110b-0x111a,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 2.5 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0-master: DMA limited to UDMA33, non-ATA66 cable or device
ad0: 19077MB <IC25N020ATMR04-0> [38760/16/63] at ata0-master UDMA33
ad0: TIMEOUT - READ_DMA retrying (2 retries left) LBA=39070017
ad0: DMA limited to UDMA33, non-ATA66 cable or device
kernel trap 12 with interrupts disabled

Fatal trap 12: page fault while in kernel mode
fault virtual address        = 0x74
fault code 			   = supervisor read, page not present
instruction pointer          = 0x8:0xc050f615
stack pointer                 = 0x10:0xc7683c48
frame pointer                 = 0x10:0xc7683c4c
code segment               = base 0x0, limit 0xfffff, type 0x1b
                                  = DPL 0, pres 1, def32 1, gran 1
processor eflags           = resume, IOPL = 0
current process            = 5 (taskqueue)
trap number                 = 12
panic: page fault

syncing disks, buffers remaining...
done
Uptime: 6s
>How-To-Repeat:
Install 5.2-CURRENT on loosy laptop with UDMA33 disk.
Boot and enjoy immediate panic.

>Fix:
Currently unknown.
>Release-Note:
>Audit-Trail:

From: Alex K <lesha@intercaf.ru>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: i386/68502: ATA panics in UDMA33 mode (worked OK in 5.2.1-R)
Date: Wed, 30 Jun 2004 11:55:27 +0400

 Seems like problem is with incorrect detection of ATA controller.
 
 5.2.1-release:
 atapci0: <SiS 5513 UDMA33 controller> port 0x1100-0x110f at device 2.5 on pci0
 ata0: at 0x1f0 irq 14 on atapci0
 ata0: [MPSAFE]
 
 5.2-current:
 atapci0: <SiS 961 UDMA100 controller> port
  0x110b-0x111a,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 2.5 on pci0
 ata0: at 0x1f0 irq 14 on atapci0
 
Responsible-Changed-From-To: freebsd-i386->sos 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Jul 15 08:41:39 GMT 2004 
Responsible-Changed-Why:  
This sounds very particular to the ATA driver. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68502 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Mon Aug 16 12:03:52 GMT 2004 
State-Changed-Why:  
THis should be fixed in -current 

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