From owner-freebsd-bugs@FreeBSD.ORG Mon Sep 6 11:50:24 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA5C516A4CE for ; Mon, 6 Sep 2004 11:50:24 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CC6F43D46 for ; Mon, 6 Sep 2004 11:50:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i86BoOoD003982 for ; Mon, 6 Sep 2004 11:50:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i86BoO2p003981; Mon, 6 Sep 2004 11:50:24 GMT (envelope-from gnats) Resent-Date: Mon, 6 Sep 2004 11:50:24 GMT Resent-Message-Id: <200409061150.i86BoO2p003981@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Daan Goedkoop Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A503616A4CE for ; Mon, 6 Sep 2004 11:43:12 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FD5D43D55 for ; Mon, 6 Sep 2004 11:43:12 +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 i86BhC0s044680 for ; Mon, 6 Sep 2004 11:43:12 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i86BhCB9044679; Mon, 6 Sep 2004 11:43:12 GMT (envelope-from nobody) Message-Id: <200409061143.i86BhCB9044679@www.freebsd.org> Date: Mon, 6 Sep 2004 11:43:12 GMT From: Daan Goedkoop To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: kern/71428: DMA does not work on VIA 82C586 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2004 11:50:24 -0000 >Number: 71428 >Category: kern >Synopsis: DMA does not work on VIA 82C586 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 06 11:50:24 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Daan Goedkoop >Release: 4.10-RELEASE (generic kernel; i386) >Organization: >Environment: Unfortunately I do not have access to my box right now, so I can not give you the uname -a output, but I have secured the dmesg output. Please use that, thank you. >Description: I think the problem is apparent from the dmesg output below, e.g. when I forget to disable DMA on my VIA 82C586, which is according to the Hardware Notes supported since at least FreeBSD 4.4, I constantly get DMA write timeout messages and during these timeouts any application that uses the harddisk freezes for a short while. The problem occured with generic kernels of FreeBSD 4.8, 4.9, 4.10, 5.0, 5.1 and 5.2. It does not seem to be a problem with the harddisk or the controller, as I tried two harddisks from different manufacturers, and DMA works fine on at least Windows, Linux, NetBSD and OpenBSD. After disabling DMA everything works fine, but as you can probably understand that doesn't really satisfy me. Copyright (c) 1992-2004 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 4.10-RELEASE #0: Tue May 25 22:47:12 GMT 2004 root@perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (350.80-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x652 Stepping = 2 Features=0x183f9ff real memory = 134217728 (131072K bytes) avail memory = 125165568 (122232K bytes) Preloaded elf kernel "kernel" at 0xc0551000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 6 entries at 0xc00f85c0 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xe0000000-0xe7ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xde00-0xde1f irq 10 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: (vendor=0x1106, dev=0x3040) at 7.3 vr0: port 0xdc00-0xdcff mem 0xefffff00-0xefffffff irq 10 at device 8.0 on pci0 vr0: Ethernet address: 00:40:f4:8c:63:fb miibus0: on vr0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: (vendor=0x1057, dev=0x5600) at 10.0 irq 10 orm0: