From owner-freebsd-ppc@FreeBSD.ORG Mon Sep 8 02:22:25 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 DCC36106566B for ; Mon, 8 Sep 2008 02:22:25 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CAF518FC0A for ; Mon, 8 Sep 2008 02:22:25 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m882MPnW006777 for ; Mon, 8 Sep 2008 02:22:25 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m882MPwY006773 for freebsd-ppc@FreeBSD.org; Mon, 8 Sep 2008 02:22:25 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 8 Sep 2008 02:22:25 GMT Message-Id: <200809080222.m882MPwY006773@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ppc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-ppc@FreeBSD.org 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: Mon, 08 Sep 2008 02:22:25 -0000 The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- a power/121407 ppc [panic] Won't boot up; strange error message. o power/112435 ppc [nexus] [patch] Update nexus children to use ofw_bus f o power/111296 ppc [kernel] [patch] [request] Support IMISS, DLMISS an DS o power/93203 ppc FreeBSD PPC Can't Write to Partitions. 4 problems total. Bugs can be in one of several states: o - open A problem report has been submitted, no sanity checking performed. a - analyzed The problem is understood and a solution is being sought. f - feedback Further work requires additional information from the originator or the community - possibly confirmation of the effectiveness of a proposed solution. p - patched A patch has been committed, but some issues (MFC and / or confirmation from originator) are still open. r - repocopy The resolution of the problem report is dependent on a repocopy operation within the CVS repository which is awaiting completion. s - suspended The problem is not being worked on, due to lack of information or resources. This is a prime candidate for somebody who is looking for a project to do. If the problem cannot be solved at all, it will be closed, rather than suspended. c - closed A problem report is closed when any changes have been integrated, documented, and tested -- or when fixing the problem is abandoned. From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 9 16:34:34 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EA591065683 for ; Tue, 9 Sep 2008 16:34:34 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id 75BED8FC18 for ; Tue, 9 Sep 2008 16:34:34 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) id <0K6X00J24PXC5S00@smtpauth2.wiscmail.wisc.edu> for powerpc@freebsd.org; Tue, 09 Sep 2008 10:34:24 -0500 (CDT) Received: from trantor.tachypleus.net (ppp-70-226-169-118.dsl.mdsnwi.ameritech.net [70.226.169.118]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K6X00D4UPX7L560@smtpauth2.wiscmail.wisc.edu> for powerpc@freebsd.org; Tue, 09 Sep 2008 10:34:20 -0500 (CDT) Date: Tue, 09 Sep 2008 10:38:12 -0500 From: Nathan Whitehorn To: powerpc@freebsd.org Message-id: <48C69864.3010208@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=70.226.169.118 X-Spam-PmxInfo: Server=avs-14, Version=5.4.2.344556, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.9.9.151617, SenderIP=70.226.169.118 User-Agent: Thunderbird 2.0.0.16 (X11/20080814) Cc: Subject: 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, 09 Sep 2008 16:34:34 -0000 I just finished a patch to the Apple built-in ATA drivers (ata_macio and ata_kauai) that adds DMA support. Due to lack of Kauai hardware (G4 machines), it has had only minimal testing, so I'd appreciate some more. WARNING: THIS MAY DO HORRIBLE THINGS LIKE ERASE YOUR HARD DRIVE The patch can be found here: http://people.freebsd.org/~nwhitehorn/apple-ata-dma.patch DMA modes on Kauai are currently slower than they should be because of an interrupt handling problem. DBDMA completion interrupts arrive on a different interrupt vector than the regular ATA interrupts, so we need to bind to the second vector as well. However, attaching a PCI device to more than one IRQ makes the PCI bus driver think the second interrupt is an MSI. Since it isn't, the PCI bus module then helpfully panics. This should be fixed somehow. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 9 18:08:23 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5024A106569B for ; Tue, 9 Sep 2008 18:08:23 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (ice.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id 295E08FC19 for ; Tue, 9 Sep 2008 18:08:23 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 46AAD86D59; Tue, 9 Sep 2008 12:43:06 -0500 (CDT) Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (ice.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 12707-10; Tue, 9 Sep 2008 12:43:05 -0500 (CDT) Received: from wanderer.tachypleus.net (i3-dhcp-172-16-55-165.icecube.wisc.edu [172.16.55.165]) by mail.icecube.wisc.edu (Postfix) with ESMTP id C00EB86B19; Tue, 9 Sep 2008 12:43:05 -0500 (CDT) Message-ID: <48C6B5A5.8070509@freebsd.org> Date: Tue, 09 Sep 2008 12:43:01 -0500 From: Nathan Whitehorn User-Agent: Thunderbird 2.0.0.16 (X11/20080804) MIME-Version: 1.0 To: Marcel Moolenaar References: <48C69864.3010208@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ice.icecube.wisc.edu Cc: powerpc@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, 09 Sep 2008 18:08:23 -0000 Marcel Moolenaar wrote: > > On Sep 9, 2008, at 8:38 AM, Nathan Whitehorn wrote: > >> I just finished a patch to the Apple built-in ATA drivers (ata_macio >> and ata_kauai) that adds DMA support. > > Sweet! I'll give it a spin... > Thanks! If you downloaded the patch earlier (before 18:42 UTC), you should grab it again -- I missed two files. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 9 18:29:50 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75BE31065671 for ; Tue, 9 Sep 2008 18:29:50 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout018.mac.com (asmtpout018.mac.com [17.148.16.93]) by mx1.freebsd.org (Postfix) with ESMTP id 66ACD8FC21 for ; Tue, 9 Sep 2008 18:29:50 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp018.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K6X003YQV9IXIN7@asmtp018.mac.com>; Tue, 09 Sep 2008 10:29:44 -0700 (PDT) Message-id: From: Marcel Moolenaar To: Nathan Whitehorn In-reply-to: <48C69864.3010208@freebsd.org> Date: Tue, 09 Sep 2008 10:29:42 -0700 References: <48C69864.3010208@freebsd.org> X-Mailer: Apple Mail (2.928.1) Cc: powerpc@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, 09 Sep 2008 18:29:50 -0000 On Sep 9, 2008, at 8:38 AM, Nathan Whitehorn wrote: > I just finished a patch to the Apple built-in ATA drivers (ata_macio > and ata_kauai) that adds DMA support. Sweet! I'll give it a spin... -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Wed Sep 10 10:49:04 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 689D41065675 for ; Wed, 10 Sep 2008 10:49:04 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id 1F42C8FC4B for ; Wed, 10 Sep 2008 10:49:04 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: by py-out-1112.google.com with SMTP id p76so1592123pyb.10 for ; Wed, 10 Sep 2008 03:49:03 -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=fIcAXZU0/iPyb0cF6rmb8Nuk1/17v7xPxW/jp9LStHQ=; b=EYyNJtEBOnsfr7rzi0ocib9XxYCZe2w1tUVLbpSUMS7hRZhw4Xj7QTORICI2EZNjmI Pp2OgrHeJTQgrzer8H0ozt9oy0sFqcUMNheGaFJOZ3X1jlNgEe1s9c08FzM9dNBsblhV kezXSU51OHnX4VLA7F2CuoGS5Qobl2bxphITU= 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=of+tsrNysImi0xcFhCk1WzJj5Q1BBe6H6DxUefS3pOhz+a0JOOQA3lMe8qDaka3xFR JR27AqeGdeY05cc0exGBWdT7DCJy/pCaWtPtTGMh1VS6oTXMtatU0nnUAMrc2MkD+wSJ GScofbhf18SNuI3HesMHVjOXNgyiEXYwn7ONU= Received: by 10.143.37.20 with SMTP id p20mr363953wfj.236.1221042134716; Wed, 10 Sep 2008 03:22:14 -0700 (PDT) Received: by 10.142.89.18 with HTTP; Wed, 10 Sep 2008 03:22:14 -0700 (PDT) Message-ID: Date: Wed, 10 Sep 2008 12:22:14 +0200 From: "Marco Trillo" To: "Nathan Whitehorn" In-Reply-To: <48C69864.3010208@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48C69864.3010208@freebsd.org> Cc: powerpc@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: Wed, 10 Sep 2008 10:49:04 -0000 Hello, On Tue, Sep 9, 2008 at 5:38 PM, Nathan Whitehorn wrote: > I just finished a patch to the Apple built-in ATA drivers (ata_macio and > ata_kauai) that adds DMA support. Due to lack of Kauai hardware (G4 > machines), it has had only minimal testing, so I'd appreciate some more. > > The patch can be found here: > http://people.freebsd.org/~nwhitehorn/apple-ata-dma.patch Regarding the Kauai mode setting: > +static const u_int udma_timing_kauai[] = { /* 0x0000ffff */ > + 0x000070c0, /* UDMA0 */ > + 0x00005d80, /* UDMA1 */ > + 0x00004a60, /* UDMA2 */ > + 0x00003a50, /* UDMA3 */ > + 0x00002a30, /* UDMA4 */ > + 0x00002921 /* UDMA5 */ > +}; > + > static void > ata_kauai_setmode(device_t parent, device_t dev) > { > struct ata_device *atadev = device_get_softc(dev); > + struct ata_kauai_softc *sc = device_get_softc(parent); > + uint32_t dmaconf = 0; > + uint32_t mode; > > - /* TODO bang kauai speed register */ > - atadev->mode = ATA_PIO; > + mode = atadev->mode = ata_limit_mode(dev,atadev->mode,ATA_UDMA5); > + > + if ((mode & ATA_DMA_MASK) == ATA_UDMA0) { > + dmaconf = udma_timing_kauai[mode & ATA_MODE_MASK]; > + > + bus_write_4(sc->sc_memr, DMA_CONFIG_REG, dmaconf); > + } else if ((mode & ATA_DMA_MASK) == ATA_WDMA0) { > + dmaconf = dma_timing_kauai[mode & ATA_MODE_MASK]; > + > + bus_write_4(sc->sc_memr, DMA_CONFIG_REG, dmaconf); > + } else { > + dmaconf = pio_timing_kauai[(mode & ATA_MODE_MASK) - ATA_PIO0]; > + > + bus_write_4(sc->sc_memr, PIO_CONFIG_REG, dmaconf); > + } > } > + The "DMA_CONFIG_REG" register is actually only for UDMA timings, not for DMA+UDMA. DMA mode timings are ORed with PIO mode timings in the "PIO_CONFIG_REG" register; as indicated with the masks: 0x00fff000 for DMA and 0xff000fff for PIO. This can be verified by looking at Mac OS X's AppleKauaiATA.cpp driver, in lines 985 and 986 and others [1] . Note that the NetBSD driver also contains this error, and there is a patch for it on NetBSD PR 39176. OpenBSD driver doesn't have this problem. In addition, to enable UDMA, you need to OR 1 to the UDMA timing mode. So for example for UDMA2, you need to write 0x00004a61 and not simply 0x00004a60 . Hope that helps. Regards, Marco. From owner-freebsd-ppc@FreeBSD.ORG Wed Sep 10 16:18:03 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBF57106566B for ; Wed, 10 Sep 2008 16:18:03 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (ice.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id C073A8FC16 for ; Wed, 10 Sep 2008 16:18:03 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 0A8D186CB1; Wed, 10 Sep 2008 11:18:03 -0500 (CDT) Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (ice.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 03180-08; Wed, 10 Sep 2008 11:18:02 -0500 (CDT) Received: from wanderer.tachypleus.net (i3-dhcp-172-16-55-165.icecube.wisc.edu [172.16.55.165]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 7851586D61; Wed, 10 Sep 2008 11:18:02 -0500 (CDT) Message-ID: <48C7F336.6060003@freebsd.org> Date: Wed, 10 Sep 2008 11:17:58 -0500 From: Nathan Whitehorn User-Agent: Thunderbird 2.0.0.16 (X11/20080804) MIME-Version: 1.0 To: Marco Trillo References: <48C69864.3010208@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ice.icecube.wisc.edu Cc: powerpc@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: Wed, 10 Sep 2008 16:18:04 -0000 Marco Trillo wrote: > Hello, > > On Tue, Sep 9, 2008 at 5:38 PM, Nathan Whitehorn wrote: > >> I just finished a patch to the Apple built-in ATA drivers (ata_macio and >> ata_kauai) that adds DMA support. Due to lack of Kauai hardware (G4 >> machines), it has had only minimal testing, so I'd appreciate some more. >> >> The patch can be found here: >> http://people.freebsd.org/~nwhitehorn/apple-ata-dma.patch >> > > Regarding the Kauai mode setting: > > [snip] > > > The "DMA_CONFIG_REG" register is actually only for UDMA timings, not > for DMA+UDMA. DMA mode timings are ORed with PIO mode timings in the > "PIO_CONFIG_REG" register; as indicated with the masks: 0x00fff000 for > DMA and 0xff000fff for PIO. > > This can be verified by looking at Mac OS X's AppleKauaiATA.cpp > driver, in lines 985 and 986 and others [1] . > > Note that the NetBSD driver also contains this error, and there is a > patch for it on NetBSD PR 39176. OpenBSD driver doesn't have this > problem. > > In addition, to enable UDMA, you need to OR 1 to the UDMA timing mode. > So for example for UDMA2, you need to write 0x00004a61 and not simply > 0x00004a60 . > Thanks! I had just assumed that the NetBSD driver did the right thing, and only have a CD drive attached to a Shasta controller on which to test the Kauai driver. I'll change it to do things the right way. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Wed Sep 10 17:03:53 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B0BB106567E for ; Wed, 10 Sep 2008 17:03:53 +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 221AC8FC17 for ; Wed, 10 Sep 2008 17:03:52 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: by rn-out-0910.google.com with SMTP id j71so1040760rne.12 for ; Wed, 10 Sep 2008 10:03:52 -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=z4j2lyay5YxPRztvANvDT1JSCIdEu2153khu2iAgxP0=; b=l7lemHLVjcgDYEev7Zn+g4TycN2W1F9c/6+XTSvb3bMtZyOG3Q5PghHUkJxMRGQK4Z qtmB7SXqf3Ufh0Ce2SCxrN/da5lInujVF6DgtlzwI4cc0sdfbRdqoVuVYt5X5qJsRBfE YE3/Dmq243wcQBbQ4OZE5WI7IwwMJ/vR5iIAE= 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=rCJSQ1SycMRoxKRFDQCdcXCtrN55XKTd+ItU+BCtQvAbH1wy4axMj2r1lEiCpLcgxj 1W/1bYqnP/6BNHjpP/u2GVTE2oKewE/zX/B6O2RdZOfSuq1gTxFWWlRx6/RR6fNvyWxN pHa/Ap9bAUP7NFx9kx1MCe6zGkN+XDsI+o6NM= Received: by 10.142.211.1 with SMTP id j1mr125530wfg.313.1221065755465; Wed, 10 Sep 2008 09:55:55 -0700 (PDT) Received: by 10.142.89.18 with HTTP; Wed, 10 Sep 2008 09:55:55 -0700 (PDT) Message-ID: Date: Wed, 10 Sep 2008 18:55:55 +0200 From: "Marco Trillo" To: "Nathan Whitehorn" In-Reply-To: <48C7F336.6060003@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48C69864.3010208@freebsd.org> <48C7F336.6060003@freebsd.org> Cc: powerpc@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: Wed, 10 Sep 2008 17:03:53 -0000 Hi, On Wed, Sep 10, 2008 at 6:17 PM, Nathan Whitehorn > Thanks! I had just assumed that the NetBSD driver did the right thing, and > only have a CD drive attached to a Shasta controller on which to test the > Kauai driver. I'll change it to do things the right way. Thank you for your work on this! If I'm not mistaken the Shasta does ATA/133 - UDMA6, while the Kauai only does ATA/100 - UDMA5. Mac OS X uses a different set of timing values for the Shasta controller than it uses for Kauai; these new timing values include the UDMA6 mode. The following are the timing values for the Shasta straight from the Mac OS X AppleKauaiATA.cpp driver available at [1]. static const u_int pio_timing_shasta[] = { 0x0A000C97, /* Mode 0 */ 0x07000712, /* 1 */ 0x040003CD, /* 2 */ 0x0400028B, /* 3 */ 0x0400010A /* 4 */ }; static const u_int dma_timing_shasta[] = { 0x00820800, /* Mode 0 */ 0x0028B000, /* 1 */ 0x001CA000 /* 2 */ }; static const u_int udma_timing_shasta[] = { 0x00035901, /* Mode 0 */ 0x000348b1, /* 1 */ 0x00033881, /* 2 */ 0x00033861, /* 3 */ 0x00033841, /* 4 */ 0x00033031, /* 5 */ 0x00033021 /* 6 */ }; Hope you find it useful! [1] http://www.opensource.apple.com/darwinsource/10.4.11.ppc/AppleKauaiATA-121.3.4/AppleKauaiATA.cpp Regards, Marco. From owner-freebsd-ppc@FreeBSD.ORG Wed Sep 10 20:52:28 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FAE41065687; Wed, 10 Sep 2008 20:52:28 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout019.mac.com (asmtpout019.mac.com [17.148.16.94]) by mx1.freebsd.org (Postfix) with ESMTP id 25B5E8FC13; Wed, 10 Sep 2008 20:52:28 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp019.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K6Z00M4BZANFV94@asmtp019.mac.com>; Wed, 10 Sep 2008 13:52:00 -0700 (PDT) Message-id: <1C883A32-8D01-4775-B027-20DB1DF4B4D3@mac.com> From: Marcel Moolenaar To: Nathan Whitehorn In-reply-to: <48C7F336.6060003@freebsd.org> Date: Wed, 10 Sep 2008 13:51:59 -0700 References: <48C69864.3010208@freebsd.org> <48C7F336.6060003@freebsd.org> X-Mailer: Apple Mail (2.928.1) Cc: powerpc@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: Wed, 10 Sep 2008 20:52:28 -0000 On Sep 10, 2008, at 9:17 AM, Nathan Whitehorn wrote: [snip -- great explanation by Marco] >> In addition, to enable UDMA, you need to OR 1 to the UDMA timing >> mode. >> So for example for UDMA2, you need to write 0x00004a61 and not simply >> 0x00004a60 . >> > Thanks! I had just assumed that the NetBSD driver did the right > thing, and only have a CD drive attached to a Shasta controller on > which to test the Kauai driver. I'll change it to do things the > right way. Let me know when you have it. Your patch didn't work for me and caused a hard (enough) hang. It was right at the time ad0 is normally found (and configured): ... FreeBSD 8.0-CURRENT #5 r182738: Thu Sep 4 02:11:48 PDT 2008 marcelm@mini-g4:/usr/obj/nfs/freebsd/base/head/sys/MINI-G4 WARNING: WITNESS option enabled, expect reduced performance. cpu0: Motorola PowerPC 7447A revision 1.5, 1500.00 MHz cpu0: HID0 8450c0bc real memory = 1059041280 (1009 MB) avail memory = 1027227648 (979 MB) nexus0: ... pcib2: on nexus0 pci2: on pcib2 ata1: mem 0xf5004000-0xf5007fff irq 39 at device 13.0 on pci2 ata1: [ITHREAD] ... ad0: 76319MB at ata1-master BIOSPIO acd0: DVDR at ata1-slave BIOSPIO acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x64 ascq=0x00 GEOM_LABEL: Label for provider acd0 is iso9660/CDROM. WARNING: WITNESS option enabled, expect reduced performance. ... BTW: I noticed with the patched kernel that the IRQ changed to 1 (from 39). I guess this is related to the multiple IRQs for a PCI device problem (IRQ 1 being the DBDMA interrupt): Node 0xff9b6298: ata-6 vendor-id: 00 00 10 6b device-id: 00 00 00 3b revision-id: 00 00 00 00 class-code: 00 ff 00 00 min-grant: 00 00 00 00 max-latency: 00 00 00 00 devsel-speed: 00 00 00 01 name: 61 74 61 2d 36 00 'ata-6' model: 61 74 61 2d 36 00 'ata-6' device_type: 61 74 61 00 'ata' AAPL,connector: 61 74 61 00 'ata' AAPL,bus-id: 00 00 00 03 cable-type: 38 30 2d 63 6f 6e 64 75 63 74 6f 72 00 '80-conductor' #address-cells: 00 00 00 01 #size-cells: 00 00 00 00 AAPL,pio-timing: 00 00 05 26 00 00 00 85 00 00 00 25 00 00 00 25 00 00 00 25 00 00 00 00 00 00 00 00 00 00 00 00 lba-48: interrupts: 00 00 00 01 00 00 00 00 AAPL,requested-priorities: 00 00 00 02 00 00 00 04 compatible: 6b 61 75 61 69 2d 61 74 61 00 'kauai-ata' reg: 00 00 68 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 68 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 assigned-addresses: 82 00 68 10 00 00 00 00 f5 00 40 00 00 00 00 00 00 00 40 00 mini-g4% sudo atacontrol list ATA channel 0: Master: no device present Slave: no device present ATA channel 1: Master: ad0 ATA/ATAPI revision 6 Slave: acd0 ATA/ATAPI revision 6 mini-g4% sudo atacontrol mode ad0 current mode = BIOSPIO mini-g4% sudo atacontrol cap ad0 Protocol ATA/ATAPI revision 6 device model ST9808211A serial number 3LF2PW9F firmware revision 3.07 cylinders 16383 heads 16 sectors/track 63 lba supported 156301488 sectors lba48 not supported 156301488 sectors dma supported overlap not supported Feature Support Enable Value Vendor write cache yes yes read ahead yes yes Tagged Command Queuing (TCQ) no no 0/0x00 SMART yes yes microcode download yes yes security yes no power management yes yes advanced power management yes yes 32896/0x8080 automatic acoustic management no no 0/0x00 254/0xFE FYI, -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 11 05:56:38 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 808CF106567A for ; Thu, 11 Sep 2008 05:56:38 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id 4FCD78FC18 for ; Thu, 11 Sep 2008 05:56:38 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) id <0K7000A00OIDFP00@smtpauth2.wiscmail.wisc.edu> for powerpc@freebsd.org; Thu, 11 Sep 2008 00:56:37 -0500 (CDT) Received: from trantor.tachypleus.net (ppp-70-226-169-118.dsl.mdsnwi.ameritech.net [70.226.169.118]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K700097VOICXI00@smtpauth2.wiscmail.wisc.edu>; Thu, 11 Sep 2008 00:56:37 -0500 (CDT) Date: Thu, 11 Sep 2008 01:00:32 -0500 From: Nathan Whitehorn In-reply-to: <1C883A32-8D01-4775-B027-20DB1DF4B4D3@mac.com> To: Marcel Moolenaar Message-id: <48C8B400.7060604@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=70.226.169.118 X-Spam-PmxInfo: Server=avs-14, Version=5.4.2.344556, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.9.11.54006, SenderIP=70.226.169.118 References: <48C69864.3010208@freebsd.org> <48C7F336.6060003@freebsd.org> <1C883A32-8D01-4775-B027-20DB1DF4B4D3@mac.com> User-Agent: Thunderbird 2.0.0.16 (X11/20080814) Cc: powerpc@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: Thu, 11 Sep 2008 05:56:38 -0000 Marcel Moolenaar wrote: > > On Sep 10, 2008, at 9:17 AM, Nathan Whitehorn wrote: > > [snip -- great explanation by Marco] > >>> In addition, to enable UDMA, you need to OR 1 to the UDMA timing mode. >>> So for example for UDMA2, you need to write 0x00004a61 and not simply >>> 0x00004a60 . >>> >> Thanks! I had just assumed that the NetBSD driver did the right thing, >> and only have a CD drive attached to a Shasta controller on which to >> test the Kauai driver. I'll change it to do things the right way. > > Let me know when you have it. Your patch didn't work for me > and caused a hard (enough) hang. It was right at the time ad0 > is normally found (and configured): > BTW: I noticed with the patched kernel that the IRQ changed to 1 > (from 39). I guess this is related to the multiple IRQs for a PCI > device problem (IRQ 1 being the DBDMA interrupt): > interrupts: > 00 00 00 01 00 00 00 00 I've put somewhat-fixed versions at http://people.freebsd.org/~nwhitehorn/ata_dbdma.c and http://people.freebsd.org/~nwhitehorn/ata_kauai.c. This should work up to WDMA2. The UDMA modes seem to require the DBDMA interrupt to work, and we can't allocate it right now because of this issue with the PCI bus driver. Any thoughts on how to fix it? Also, am I to understand that your Kauai controller doesn't export its interrupt either in the OF tree *or* in its PCI registers? I've hacked around this, assuming this is true, but it is pretty messed up... -Nathan From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 11 07:21:06 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93A0F1065670; Thu, 11 Sep 2008 07:21:06 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 4D3068FC16; Thu, 11 Sep 2008 07:21:06 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTP id C7B82119C1; Thu, 11 Sep 2008 17:21:03 +1000 (EST) Received: from peter-grehans-power-mac-g5.local (dsl-63-249-90-35.cruzio.com [63.249.90.35]) by dommail.onthenet.com.au (MOS 3.8.6-GA) with ESMTP id EHZ24006 (AUTH peterg@ptree32.com.au); Thu, 11 Sep 2008 17:20:22 +1000 (EST) Message-ID: <48C8C82D.90207@freebsd.org> Date: Thu, 11 Sep 2008 00:26:37 -0700 From: Peter Grehan User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Nathan Whitehorn References: <48C69864.3010208@freebsd.org> <48C7F336.6060003@freebsd.org> <1C883A32-8D01-4775-B027-20DB1DF4B4D3@mac.com> <48C8B400.7060604@freebsd.org> In-Reply-To: <48C8B400.7060604@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: powerpc@freebsd.org Subject: Re: Call for testers: Apple ATA DMA X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grehan@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2008 07:21:06 -0000 On an old iMac (macio 0x0025106b), I get a panic if ATA DMA isn't disabled: Memory modified after free 0xda6c00(508) val=0 @ 0xda6c00 panic: Most recently used by GEOM This is after the ad0/acd0 disk messages are displayed. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 11 16:00:10 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1223E1065679; Thu, 11 Sep 2008 16:00:10 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id 4ED358FC0C; Thu, 11 Sep 2008 16:00:04 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) id <0K7100G0IGG3G600@smtpauth2.wiscmail.wisc.edu>; Thu, 11 Sep 2008 11:00:03 -0500 (CDT) Received: from trantor.tachypleus.net (adsl-76-204-100-161.dsl.mdsnwi.sbcglobal.net [76.204.100.161]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K7100B7JGFW0R50@smtpauth2.wiscmail.wisc.edu>; Thu, 11 Sep 2008 10:59:57 -0500 (CDT) Date: Thu, 11 Sep 2008 11:03:54 -0500 From: Nathan Whitehorn In-reply-to: <48C8C82D.90207@freebsd.org> To: grehan@freebsd.org Message-id: <48C9416A.8030608@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.204.100.161 X-Spam-PmxInfo: Server=avs-14, Version=5.4.2.344556, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.9.11.154604, SenderIP=76.204.100.161 References: <48C69864.3010208@freebsd.org> <48C7F336.6060003@freebsd.org> <1C883A32-8D01-4775-B027-20DB1DF4B4D3@mac.com> <48C8B400.7060604@freebsd.org> <48C8C82D.90207@freebsd.org> User-Agent: Thunderbird 2.0.0.16 (X11/20080814) Cc: powerpc@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: Thu, 11 Sep 2008 16:00:10 -0000 Peter Grehan wrote: > On an old iMac (macio 0x0025106b), I get a panic if ATA DMA isn't disabled: > > Memory modified after free 0xda6c00(508) val=0 @ 0xda6c00 > panic: Most recently used by GEOM > > This is after the ad0/acd0 disk messages are displayed. This is with one of the ATA - macio parts, I assume? Could you tell me whether (a) the two are on the same ATA bus, (b) the name of the ATA controller in OF (i.e. ata-3 or ata-4), and (c) which modes the driver wants to configure for both devices? I wish I had more hardware to test this on... -Nathan From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 11 16:14:18 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 482791065675; Thu, 11 Sep 2008 16:14:18 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 065CA8FC22; Thu, 11 Sep 2008 16:14:17 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTP id 0256411574; Fri, 12 Sep 2008 02:14:16 +1000 (EST) Received: from peter-grehans-power-mac-g5.local (dsl-63-249-90-35.cruzio.com [63.249.90.35]) by dommail.onthenet.com.au (MOS 3.8.6-GA) with ESMTP id EIA00959 (AUTH peterg@ptree32.com.au); Fri, 12 Sep 2008 02:13:33 +1000 (EST) Message-ID: <48C94537.6020109@freebsd.org> Date: Thu, 11 Sep 2008 09:20:07 -0700 From: Peter Grehan User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Nathan Whitehorn References: <48C69864.3010208@freebsd.org> <48C7F336.6060003@freebsd.org> <1C883A32-8D01-4775-B027-20DB1DF4B4D3@mac.com> <48C8B400.7060604@freebsd.org> <48C8C82D.90207@freebsd.org> <48C9416A.8030608@freebsd.org> In-Reply-To: <48C9416A.8030608@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: powerpc@freebsd.org Subject: Re: Call for testers: Apple ATA DMA X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grehan@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2008 16:14:18 -0000 Hi Nathan, > This is with one of the ATA - macio parts, I assume? Could you tell me > whether (a) the two are on the same ATA bus, (b) the name of the ATA > controller in OF (i.e. ata-3 or ata-4), and (c) which modes the driver > wants to configure for both devices? Info appended; later, Peter. 0 > dev ata-4 ok 0 > .properties name ata-4 device_type ata AAPL,connector 61746100 compatible keylargo-ata AAPL,bus-id 00000002 reg 0001f000 00001000 00008a00 00000100 #address-cells 00000001 #size-cells 00000000 AAPL,pio-timing 00000526 00000085 00000025 00000025 00000025 00000000 00000000 00000000 model ata-4 interrupts 00000013 00000001 0000000b 00000000 interrupt-parent ff90fa00 cable-type 34302d63 6f6e6475 63746f72 00 AAPL,clock-id 75617461 61743636 AAPL,clock-data 03ef1480 00000000 00000000 00000000 00000000 00000044 00000100 00000044 00000080 6e756c6c 6e756c6c 00000000 AAPL,clock-aux-data 00000010 0000003c 20000000 00000000 ad0: 38166MB at ata0-master UDMA66 acd0: CDRW at ata0-slave PIO4 From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 11 17:20:11 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C32CC106567A; Thu, 11 Sep 2008 17:20:11 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id 970A28FC1A; Thu, 11 Sep 2008 17:20:11 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) id <0K710081CK5M7D00@smtpauth1.wiscmail.wisc.edu>; Thu, 11 Sep 2008 12:20:10 -0500 (CDT) Received: from trantor.tachypleus.net (adsl-76-204-100-161.dsl.mdsnwi.sbcglobal.net [76.204.100.161]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K71005YFK5L6O20@smtpauth1.wiscmail.wisc.edu>; Thu, 11 Sep 2008 12:20:10 -0500 (CDT) Date: Thu, 11 Sep 2008 12:24:06 -0500 From: Nathan Whitehorn In-reply-to: <48C94537.6020109@freebsd.org> To: grehan@freebsd.org Message-id: <48C95436.8010204@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.204.100.161 X-Spam-PmxInfo: Server=avs-12, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.9.11.170124, SenderIP=76.204.100.161 References: <48C69864.3010208@freebsd.org> <48C7F336.6060003@freebsd.org> <1C883A32-8D01-4775-B027-20DB1DF4B4D3@mac.com> <48C8B400.7060604@freebsd.org> <48C8C82D.90207@freebsd.org> <48C9416A.8030608@freebsd.org> <48C94537.6020109@freebsd.org> User-Agent: Thunderbird 2.0.0.16 (X11/20080814) Cc: powerpc@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: Thu, 11 Sep 2008 17:20:11 -0000 Peter Grehan wrote: > Hi Nathan, > >> This is with one of the ATA - macio parts, I assume? Could you tell me >> whether (a) the two are on the same ATA bus, (b) the name of the ATA >> controller in OF (i.e. ata-3 or ata-4), and (c) which modes the driver >> wants to configure for both devices? > > Info appended; > Could you try the new ata_macio.c at http://people.freebsd.org/~nwhitehorn/ata_macio.c? If that fails, also try changing sc->max_mode to WDMA2. My hardware (ata-3) won't let me test the UDMA modes, but at least the WDMA ones should now work in this configuration. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 11 17:57:09 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 6FA4D106581F; Thu, 11 Sep 2008 17:57:09 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id CCD2C8FC0C; Thu, 11 Sep 2008 17:57:08 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m8BHuVYT035323; Thu, 11 Sep 2008 13:57:02 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Nathan Whitehorn Date: Thu, 11 Sep 2008 13:04:48 -0400 User-Agent: KMail/1.9.7 References: <48C69864.3010208@freebsd.org> <1C883A32-8D01-4775-B027-20DB1DF4B4D3@mac.com> <48C8B400.7060604@freebsd.org> In-Reply-To: <48C8B400.7060604@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809111304.48753.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Thu, 11 Sep 2008 13:57:02 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8219/Thu Sep 11 11:02:39 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx 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: Thu, 11 Sep 2008 17:57:09 -0000 On Thursday 11 September 2008 02:00:32 am Nathan Whitehorn wrote: > The UDMA modes seem to require the DBDMA interrupt to work, > and we can't allocate it right now because of this issue with the PCI > bus driver. Any thoughts on how to fix it? So when I did the MSI stuff I had assumed (apparently incorrectly), that PCI functions would only every have 1 non-MSI interrupt (since there is only a single INTLINE config register). Is the extra interrupt coming from OF? If so, does OF support MSI at all? You could always change the OF PCI bus driver to not do MSI and use rid 1 IRQ for the OF indicated IRQ for a PCI device by having custom alloc_resource/setup_intr/teardown_intr methods. -- John Baldwin From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 11 18:32:28 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 ADECC1065671; Thu, 11 Sep 2008 18:32:28 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from nagasaki.bogus.com (nagasaki.bogus.com [IPv6:2001:418:1::81]) by mx1.freebsd.org (Postfix) with ESMTP id 8FCDB8FC12; Thu, 11 Sep 2008 18:32:28 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dhcp-206.nokiaip.net ([192.103.16.206]) (authenticated bits=0) by nagasaki.bogus.com (8.14.3/8.14.3) with ESMTP id m8BIWG7w087391 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 11 Sep 2008 18:32:26 GMT (envelope-from grehan@freebsd.org) Message-ID: <48C9642A.5020801@freebsd.org> Date: Thu, 11 Sep 2008 11:32:10 -0700 From: Peter Grehan User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: John Baldwin References: <48C69864.3010208@freebsd.org> <1C883A32-8D01-4775-B027-20DB1DF4B4D3@mac.com> <48C8B400.7060604@freebsd.org> <200809111304.48753.jhb@freebsd.org> In-Reply-To: <200809111304.48753.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.93.3/8219/Thu Sep 11 15:02:39 2008 on nagasaki.bogus.com X-Virus-Status: Clean 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: Thu, 11 Sep 2008 18:32:28 -0000 Hi John, > So when I did the MSI stuff I had assumed (apparently incorrectly), that PCI > functions would only every have 1 non-MSI interrupt (since there is only a > single INTLINE config register). Is the extra interrupt coming from OF? If > so, does OF support MSI at all? You could always change the OF PCI bus > driver to not do MSI and use rid 1 IRQ for the OF indicated IRQ for a PCI > device by having custom alloc_resource/setup_intr/teardown_intr methods. Int lines on the Mac go directly into the OpenPIC, allowing as many int sources as desired. The intline config register isn't really used, though there is code that attempts to read the OFW interrupt properties and then program that register to avoid messing with the PCI common code. Unfortunately, some Mac devices ignore writes to that register :( The G5 does support MSI. I had sent a possible solution to Nathan (Nathan: check your junk :) that in pci_setup_intr did something like: if (dinfo->cfg.msi.msi_addr > 0) { ... } else if (dinfo->cfg.msi.msix_alloc > 0) { ... } else { #ifndef __powerpc__ KASSERT("No MSI or MSI-X interrupts allocated") #endif } There's probably a bunch of other places that need fixing but this was an obvious one. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 11 21:43:37 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 0BCBD10656C8; Thu, 11 Sep 2008 21:43:37 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 829D98FC13; Thu, 11 Sep 2008 21:43:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m8BLhA3n037663; Thu, 11 Sep 2008 17:43:30 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Peter Grehan Date: Thu, 11 Sep 2008 16:51:05 -0400 User-Agent: KMail/1.9.7 References: <48C69864.3010208@freebsd.org> <200809111304.48753.jhb@freebsd.org> <48C9642A.5020801@freebsd.org> In-Reply-To: <48C9642A.5020801@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809111651.05462.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Thu, 11 Sep 2008 17:43:30 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8220/Thu Sep 11 17:27:09 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx 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: Thu, 11 Sep 2008 21:43:37 -0000 On Thursday 11 September 2008 02:32:10 pm Peter Grehan wrote: > Hi John, > > > So when I did the MSI stuff I had assumed (apparently incorrectly), that PCI > > functions would only every have 1 non-MSI interrupt (since there is only a > > single INTLINE config register). Is the extra interrupt coming from OF? If > > so, does OF support MSI at all? You could always change the OF PCI bus > > driver to not do MSI and use rid 1 IRQ for the OF indicated IRQ for a PCI > > device by having custom alloc_resource/setup_intr/teardown_intr methods. > > Int lines on the Mac go directly into the OpenPIC, allowing as many > int sources as desired. The intline config register isn't really used, > though there is code that attempts to read the OFW interrupt properties > and then program that register to avoid messing with the PCI common > code. Unfortunately, some Mac devices ignore writes to that register :( > The G5 does support MSI. > > I had sent a possible solution to Nathan (Nathan: check your junk :) > that in pci_setup_intr did something like: > > if (dinfo->cfg.msi.msi_addr > 0) { > ... > } else if (dinfo->cfg.msi.msix_alloc > 0) { > ... > } else { > #ifndef __powerpc__ > KASSERT("No MSI or MSI-X interrupts allocated") > #endif > } > > There's probably a bunch of other places that need fixing but this was > an obvious one. OFW should already have its own PCI bus driver, so I'd rather you give it its own bus_setup_intr() method that DTRT for these interrupt resources (rid > 0 and !MSI) and then calls pci_setup_intr() for the rest. Then you don't have to add MD hacks to the generic PCI bus driver. -- John Baldwin From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 11 22:13: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 6567D1065674; Thu, 11 Sep 2008 22:13:54 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (ice.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id 290B98FC31; Thu, 11 Sep 2008 22:13:53 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id CAD8886CB1; Thu, 11 Sep 2008 17:13:52 -0500 (CDT) Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (ice.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 13214-03; Thu, 11 Sep 2008 17:13:52 -0500 (CDT) Received: from wanderer.tachypleus.net (i3-dhcp-172-16-55-165.icecube.wisc.edu [172.16.55.165]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 1CB8086B19; Thu, 11 Sep 2008 17:13:52 -0500 (CDT) Message-ID: <48C9981B.2020808@freebsd.org> Date: Thu, 11 Sep 2008 17:13:47 -0500 From: Nathan Whitehorn User-Agent: Thunderbird 2.0.0.16 (X11/20080804) MIME-Version: 1.0 To: John Baldwin References: <48C69864.3010208@freebsd.org> <200809111304.48753.jhb@freebsd.org> <48C9642A.5020801@freebsd.org> <200809111651.05462.jhb@freebsd.org> In-Reply-To: <200809111651.05462.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ice.icecube.wisc.edu Cc: Peter Grehan , 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: Thu, 11 Sep 2008 22:13:54 -0000 John Baldwin wrote: > On Thursday 11 September 2008 02:32:10 pm Peter Grehan wrote: > >> Hi John, >> >> >>> So when I did the MSI stuff I had assumed (apparently incorrectly), that >>> > PCI > >>> functions would only every have 1 non-MSI interrupt (since there is only a >>> single INTLINE config register). Is the extra interrupt coming from OF? >>> > If > >>> so, does OF support MSI at all? You could always change the OF PCI bus >>> driver to not do MSI and use rid 1 IRQ for the OF indicated IRQ for a PCI >>> device by having custom alloc_resource/setup_intr/teardown_intr methods. >>> >> Int lines on the Mac go directly into the OpenPIC, allowing as many >> int sources as desired. The intline config register isn't really used, >> though there is code that attempts to read the OFW interrupt properties >> and then program that register to avoid messing with the PCI common >> code. Unfortunately, some Mac devices ignore writes to that register :( >> The G5 does support MSI. >> >> I had sent a possible solution to Nathan (Nathan: check your junk :) >> that in pci_setup_intr did something like: >> >> if (dinfo->cfg.msi.msi_addr > 0) { >> ... >> } else if (dinfo->cfg.msi.msix_alloc > 0) { >> ... >> } else { >> #ifndef __powerpc__ >> KASSERT("No MSI or MSI-X interrupts allocated") >> #endif >> } >> >> There's probably a bunch of other places that need fixing but this was >> an obvious one. >> > > OFW should already have its own PCI bus driver, so I'd rather you give it its > own bus_setup_intr() method that DTRT for these interrupt resources (rid > 0 > and !MSI) and then calls pci_setup_intr() for the rest. Then you don't have > to add MD hacks to the generic PCI bus driver. > It doesn't on PowerPC. There are a bunch of hacks done at attach-time to compensate for this (see ofw_pci_fixup()). It might be nice to import sparc64's PCI OFW bus code, though. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 12 14:50: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 919B21065740; Fri, 12 Sep 2008 14:50:51 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 090708FC1A; Fri, 12 Sep 2008 14:50:50 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m8CEoWj4046477; Fri, 12 Sep 2008 10:50:44 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Nathan Whitehorn Date: Fri, 12 Sep 2008 10:33:24 -0400 User-Agent: KMail/1.9.7 References: <48C69864.3010208@freebsd.org> <200809111651.05462.jhb@freebsd.org> <48C9981B.2020808@freebsd.org> In-Reply-To: <48C9981B.2020808@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809121033.24809.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Fri, 12 Sep 2008 10:50:45 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8227/Fri Sep 12 07:48:22 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Peter Grehan , 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: Fri, 12 Sep 2008 14:50:54 -0000 On Thursday 11 September 2008 06:13:47 pm Nathan Whitehorn wrote: > John Baldwin wrote: > > On Thursday 11 September 2008 02:32:10 pm Peter Grehan wrote: > > > >> Hi John, > >> > >> > >>> So when I did the MSI stuff I had assumed (apparently incorrectly), that > >>> > > PCI > > > >>> functions would only every have 1 non-MSI interrupt (since there is only a > >>> single INTLINE config register). Is the extra interrupt coming from OF? > >>> > > If > > > >>> so, does OF support MSI at all? You could always change the OF PCI bus > >>> driver to not do MSI and use rid 1 IRQ for the OF indicated IRQ for a PCI > >>> device by having custom alloc_resource/setup_intr/teardown_intr methods. > >>> > >> Int lines on the Mac go directly into the OpenPIC, allowing as many > >> int sources as desired. The intline config register isn't really used, > >> though there is code that attempts to read the OFW interrupt properties > >> and then program that register to avoid messing with the PCI common > >> code. Unfortunately, some Mac devices ignore writes to that register :( > >> The G5 does support MSI. > >> > >> I had sent a possible solution to Nathan (Nathan: check your junk :) > >> that in pci_setup_intr did something like: > >> > >> if (dinfo->cfg.msi.msi_addr > 0) { > >> ... > >> } else if (dinfo->cfg.msi.msix_alloc > 0) { > >> ... > >> } else { > >> #ifndef __powerpc__ > >> KASSERT("No MSI or MSI-X interrupts allocated") > >> #endif > >> } > >> > >> There's probably a bunch of other places that need fixing but this was > >> an obvious one. > >> > > > > OFW should already have its own PCI bus driver, so I'd rather you give it its > > own bus_setup_intr() method that DTRT for these interrupt resources (rid > 0 > > and !MSI) and then calls pci_setup_intr() for the rest. Then you don't have > > to add MD hacks to the generic PCI bus driver. > > > It doesn't on PowerPC. There are a bunch of hacks done at attach-time to > compensate for this (see ofw_pci_fixup()). It might be nice to import > sparc64's PCI OFW bus code, though. Ah, yeah, it certainly might be. Having separate PCI bus drivers for ACPI vs. not (and all the various PCI bridge drivers) helped detangle a bunch of mess in PCI and made ACPI support a lot easier. -- John Baldwin From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 12 17:21:33 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B7911065673; Fri, 12 Sep 2008 17:21:33 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 27DEF8FC08; Fri, 12 Sep 2008 17:21:33 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTP id 42C1B11D0C; Sat, 13 Sep 2008 03:18:39 +1000 (EST) Received: from peter-grehans-power-mac-g5.local (dsl-63-249-90-35.cruzio.com [63.249.90.35]) by dommail.onthenet.com.au (MOS 3.8.6-GA) with ESMTP id EIC08654 (AUTH peterg@ptree32.com.au); Sat, 13 Sep 2008 03:17:58 +1000 (EST) Message-ID: <48CAA46D.50604@freebsd.org> Date: Fri, 12 Sep 2008 10:18:37 -0700 From: Peter Grehan User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Nathan Whitehorn References: <48C69864.3010208@freebsd.org> <48C7F336.6060003@freebsd.org> <1C883A32-8D01-4775-B027-20DB1DF4B4D3@mac.com> <48C8B400.7060604@freebsd.org> <48C8C82D.90207@freebsd.org> <48C9416A.8030608@freebsd.org> <48C94537.6020109@freebsd.org> <48C95436.8010204@freebsd.org> In-Reply-To: <48C95436.8010204@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: powerpc@freebsd.org Subject: Re: Call for testers: Apple ATA DMA X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grehan@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2008 17:21:33 -0000 Hi Nathan, > Could you try the new ata_macio.c at > http://people.freebsd.org/~nwhitehorn/ata_macio.c? If that fails, also > try changing sc->max_mode to WDMA2. My hardware (ata-3) won't let me > test the UDMA modes, but at least the WDMA ones should now work in this > configuration. Had to drop it to WDMA2 and then the DMA i/o's completed. However, the GEOM use-after-free panic persists. I'll see if I can get some more info about that. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 12 17:54:07 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C0D3106566C; Fri, 12 Sep 2008 17:54:07 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (ice.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id 203338FC17; Fri, 12 Sep 2008 17:54:06 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 2F65786CEB; Fri, 12 Sep 2008 12:54:06 -0500 (CDT) Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (ice.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 21353-06; Fri, 12 Sep 2008 12:54:05 -0500 (CDT) Received: from wanderer.tachypleus.net (i3-dhcp-172-16-55-165.icecube.wisc.edu [172.16.55.165]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 449F686B19; Fri, 12 Sep 2008 12:54:05 -0500 (CDT) Message-ID: <48CAACB8.90104@freebsd.org> Date: Fri, 12 Sep 2008 12:54:00 -0500 From: Nathan Whitehorn User-Agent: Thunderbird 2.0.0.16 (X11/20080804) MIME-Version: 1.0 To: grehan@freebsd.org References: <48C69864.3010208@freebsd.org> <48C7F336.6060003@freebsd.org> <1C883A32-8D01-4775-B027-20DB1DF4B4D3@mac.com> <48C8B400.7060604@freebsd.org> <48C8C82D.90207@freebsd.org> <48C9416A.8030608@freebsd.org> <48C94537.6020109@freebsd.org> <48C95436.8010204@freebsd.org> <48CAA46D.50604@freebsd.org> In-Reply-To: <48CAA46D.50604@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ice.icecube.wisc.edu Cc: powerpc@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: Fri, 12 Sep 2008 17:54:07 -0000 Peter Grehan wrote: > Hi Nathan, > >> Could you try the new ata_macio.c at >> http://people.freebsd.org/~nwhitehorn/ata_macio.c? If that fails, >> also try changing sc->max_mode to WDMA2. My hardware (ata-3) won't >> let me test the UDMA modes, but at least the WDMA ones should now >> work in this configuration. > > Had to drop it to WDMA2 and then the DMA i/o's completed. However, > the GEOM use-after-free panic persists. I'll see if I can get some > more info about that. Interesting. I don't know what the panic is about, but it seems like programming the UDMA modes fails on the macio, Kauai, and Shasta controllers. I spent entirely too much time smashing my head against the UDMA stuff on Shasta last night with no success. Maybe there is some MI problem where requests interact poorly with these controllers? As far as I know, there have never been non-PCI UDMA ATA controllers in the tree before. -Nathan