From owner-freebsd-ppc@FreeBSD.ORG Sun Oct 26 15:57:54 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D523A106566B for ; Sun, 26 Oct 2008 15:57:54 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.175]) by mx1.freebsd.org (Postfix) with ESMTP id A87E48FC0C for ; Sun, 26 Oct 2008 15:57:54 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1632273wfg.7 for ; Sun, 26 Oct 2008 08:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Iz5UlRVhx/f4BhztPKT2EM7scWxKNWUm1F4+DJZCYD8=; b=jXoThy4dG7RA8b4DfjhHlE7MzP3niErl9GMmT2ungJQkCDoOyGnuMEDkCieUWJDKCw RzYXNY+ktinEl+XnaM/kywN49gmd2u+TpiTPWA3zcOf2lDl8tlPME+8IGkgdevh7wW3n xJwXDq7YkSW9R/SjBSvbbdFzoZ1CnU99vdKF0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=KBtZZv2ChH/mMyZrJ/Jd8bbL4bNDvgEFfHSpXvJO5riW8OPhFo2Kk04cbj9n88NhGi wZUW8J04pATanMusAbpbAHauWWB5rrxQf6VNxytVhy2GWuKZiwAUtkCLfdh3YQcdQ9cj yLXE4XTzqduri8LLi+nMh81Z1C4L3bnVdqxFQ= Received: by 10.143.18.16 with SMTP id v16mr2137830wfi.41.1225036674128; Sun, 26 Oct 2008 08:57:54 -0700 (PDT) Received: by 10.142.89.18 with HTTP; Sun, 26 Oct 2008 08:57:54 -0700 (PDT) Message-ID: Date: Sun, 26 Oct 2008 16:57:54 +0100 From: "Marco Trillo" To: "Nathan Whitehorn" In-Reply-To: <49048D19.7070309@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <49048D19.7070309@freebsd.org> Cc: FreeBSD PowerPC ML Subject: Re: ATA DMA problems with recent -current X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2008 15:57:54 -0000 Hi, On Sun, Oct 26, 2008 at 4:30 PM, Nathan Whitehorn wrote: >> Hi all, >> >> I just updated my -current kernel to today sources -- the previous >> kernel was from Oct 11. With the new kernel I'm getting ad0 ATA DMA >> timeouts, which get worse when I stress the drive. >> > > The only thing that changed since 11 Oct was that I redid the PCI handling > by importing sparc64's architecture. This *should* have changed nothing, > since I just reshuffled some code, but apparently it didn't. One of the few > actual changes was that ata_kauai now attaches only to the first IRQ (39) > instead of both OF IRQs (39 and 1). However, it never used the second one, > so it should have changed nothing. Things to try: > > - Make ata_kauai add IRQ 1 to its resource list again, just like it > hardcodes 39. > - IRQ 1 is shared with the i2s controller. Try disabling it? > > I'm pretty confused about how it is that things have broken, though. I removed the i2s driver, but got the same results. However I think I have located the source of the problem. I diffed the 'ident' output on both kernels and noticed something which seemed related: - $FreeBSD: src/sys/dev/ata/ata-dma.c,v 1.157 2008/10/09 12:56:57 sos Exp $ + $FreeBSD: src/sys/dev/ata/ata-dma.c,v 1.158 2008/10/21 18:51:55 jhb Exp $ Then I reverted ata-dma.c to revision 1.157. It works! I get no more timeouts. Currently it's untarring the ports.tar.gz file quite happily! Thanks, Marco