From owner-freebsd-current@FreeBSD.ORG Tue Jun 17 14:46:47 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 32E1D37B401 for ; Tue, 17 Jun 2003 14:46:47 -0700 (PDT) Received: from spider.deepcore.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE3AE43FBF for ; Tue, 17 Jun 2003 14:46:43 -0700 (PDT) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.8p1/8.12.8) id h5HLkYcg060768; Tue, 17 Jun 2003 23:46:34 +0200 (CEST) (envelope-from sos) From: Soeren Schmidt Message-Id: <200306172146.h5HLkYcg060768@spider.deepcore.dk> In-Reply-To: <16111.34597.145917.481769@amonsul.esperi.net> To: Nicolai E M Plum Date: Tue, 17 Jun 2003 23:46:32 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL98b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 cc: freebsd-current@FreeBSD.ORG Subject: Re: ATA DMA broken/kernel panic with 5.1-R/5.1-C and VIA 82C586B X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2003 21:46:47 -0000 It seems Nicolai E M Plum wrote: > Hi > > I installed 5.1-RELEASE from the CD images, and have problems using DMA > on my ATA discs. I get the same problem on several discs, both several > years old and brand new, across several vendors. 4.6-RELEASE handles the > discs fine. Relevant excepts from the boot messages are below, the > entire thing can be seen at http://www.esperi.org/nicolai/misc/dmesg.eriador > > FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003 > root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC > ... > atapci0: port 0xfcd0-0xfcdf mem 0xfbffe000-0xfbffffff at device 7.1 on pci0 > ata0: at 0x1f0 irq 14 on atapci0 > ata1: at 0x170 irq 15 on atapci0 > ... > Timecounters tick every 10.000 msec > ad0: 114473MB [232581/16/63] at ata0-master UDMA33 > ad0: READ command timeout tag=0 serv=0 - resetting > ata0: resetting devices .. > done > ... [ this repeats ] > ad1: trying fallback to PIO mode > ata0: resetting devices .. > done > Mounting root from ufs:/dev/ad0s1a > > I noticed some ATA problems solved in -current recently, so I tried > compiling a kernel from sources about 2 days ago. Booting from that > (GENERIC) kernel, I do not get "Mounting root..", instead I get > (approximately, can't cut/paste that console): > > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0xdeadc0de > fault code = supervisor read, page not present > instruction pointer = 0x8:0xdeadcode > stack pointer = 0x10:0xc736bc38 > frame pointer = 0x19:0xc736bc50 > .... > current process = 21 (irc14: ata0) > kernel: type 12 trap, code=0 > > Is this a known problem, perhaps specific to the 82C586B ATA controller? This looks strange, I dont have semilar HW here to verify the problem so I'm a bit in the dark. Is it possible you can build a kernel with ddb in it so we can get a traceback of the panic ? -Søren