From owner-freebsd-current@FreeBSD.ORG Tue Jan 6 11:47:56 2004 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 C903816A4CE for ; Tue, 6 Jan 2004 11:47:56 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 214F143D2F for ; Tue, 6 Jan 2004 11:47:52 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.10/8.12.10) with ESMTP id i06JkVUd088644; Tue, 6 Jan 2004 14:46:31 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i06JkVKS088641; Tue, 6 Jan 2004 14:46:31 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Tue, 6 Jan 2004 14:46:31 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Kirk Strauser In-Reply-To: <87r7yut3gf.fsf@strauser.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: ATA + DMA still giving repeatable freezes 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, 06 Jan 2004 19:47:56 -0000 On Wed, 24 Dec 2003, Kirk Strauser wrote: > At 2003-12-20T00:17:00Z, Robert Watson writes: > > > FYI, I had this problem on a notebook and foudn that disabling "device > > apic" made things clear up. Try it and see if it helps, and if it does, > > post as much. I'm busy testing to make sure my observation is right on my > > system. I also saw fairly frequent hangs starting or leaving XWindows, > > and John Baldwin hypothesized there was an interaction between DRM and the > > interrupt code. > > Robert, I wanted to get in some more testing before reporting back. I > cvsup'ed again and built world and kernel. This time, I started with > plain GENERIC and made minor changes until I could reproduce the hangs. > Basically, commenting out "options WITNESS" and "options > WITNESS_SKIPSPIN" was enough to trigger the problem; I'm guessing that > these options slow down the system enough that timing issues disappear. > > After adding this to my /boot/loader.conf.local: > > hw.ata.ata_dma="0" > hint.acpi.0.disabled="1" > > I no longer get system hangs, although I do get these messages at random > intervals during heavy ATA IO: > > ad0: TIMEOUT - READ_MUL retrying (2 retries left) > ata0: resetting devices .. > done Not sure if you misread, but it looks like you're disabling ACPI rather than apic (confusing, eh? :-). I'm currently in a situation on my Dell Notebook where leaving the new ACPI enable but "device apic" disabled seems to get me to full functionality. I discovered a BIOS upgrade on the Dell web site, and need to try installing that to see if it helps. I also haven't tried plugging and playing DRI as yet. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research