From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 23 18:14:07 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 F41801065675 for ; Tue, 23 Sep 2008 18:14:06 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.185]) by mx1.freebsd.org (Postfix) with ESMTP id A3BAE8FC13 for ; Tue, 23 Sep 2008 18:14:06 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: by rn-out-0910.google.com with SMTP id j71so649446rne.12 for ; Tue, 23 Sep 2008 11:14:04 -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=LzX5esEwK7F72CveK9UTs7YCZCyDOa+m0gFs04hsAi0=; b=hSFn3FvRCoJb9xJy+A+IR9LqoUO9cFdSubE1JJVfIcOVwJdfppToIXA3vnB+R35kOK rnwR+BdcTq++zeojGHBRxcRMVCzgpMnveTGhfdc/Gy4Bmtjlv9jNWbai3p3KVX53fL/V NrmLc93lE8lWkSBYWKUgrIkpC0VgZ6tJAPKl0= 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=Gnyl8llc3Nvj1cfayHZwvBOege4znATjXzsYRiE3xJGeEsJ+niE+kpcUAA4T47g0xb TZLIHJLDjYuE7LSgehL4sZvFgLmGEaqmi81orJE52tqj1DGZ+LFYJNzaCTvs3eRA/qSi w+CCslTPhsrmqQalqNUOEj7jhnB//ztFYu4zE= Received: by 10.142.48.14 with SMTP id v14mr2126409wfv.133.1222193644336; Tue, 23 Sep 2008 11:14:04 -0700 (PDT) Received: by 10.142.101.13 with HTTP; Tue, 23 Sep 2008 11:14:04 -0700 (PDT) Message-ID: Date: Tue, 23 Sep 2008 20:14:04 +0200 From: "Marco Trillo" To: "Nathan Whitehorn" In-Reply-To: <48D92D44.6080807@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48D389EE.9000207@FreeBSD.org> <48D3AD50.8070505@freebsd.org> <48D69679.1080701@freebsd.org> <48D7F437.1040603@FreeBSD.org> <645CD2B8-11A0-42E8-B5F9-C04DCF21F763@mac.com> <48D84C12.7070207@freebsd.org> <0DD89065-9CF3-45E4-89A0-70D6BBB9621D@mac.com> <48D92D44.6080807@freebsd.org> Cc: freebsd-ppc@freebsd.org Subject: Re: Call for testers: Apple ATA DMA 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: Tue, 23 Sep 2008 18:14:07 -0000 Hi, On Tue, Sep 23, 2008 at 7:54 PM, Nathan Whitehorn wrote: >> It improves things, but it's still not good: > > [Smacking forehead] > > The Kauai/MacIO controller cannot support multiple modes of the same class > (DMA/PIO) simultaneously on the same bus for different devices. You have to > reprogram the timing register whenever you select a new device... > > Ways to check if this is the problem: > 1) Limit devices to UDMA33. > 2) Disable DMA on acd0. > > Our ATA stack doesn't seem to support a hook for doing things on a device > select, so I'm not sure how to fix this. The NetBSD driver seems to solve this by configuring the timing register when starting the DMA transfer, but I'm not sure if this is the correct fix... Regards, Marco.