From owner-freebsd-ppc@FreeBSD.ORG Sun Mar 26 16:01:50 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0427416A41F for ; Sun, 26 Mar 2006 16:01:50 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A11A43D45 for ; Sun, 26 Mar 2006 16:01:49 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IWQ00FS6SJ0IND0@osl1smout1.broadpark.no> for freebsd-ppc@freebsd.org; Sun, 26 Mar 2006 18:01:48 +0200 (CEST) Received: from kg-work.kg4.no ([80.202.172.162]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0IWQ00G09SJ03W60@osl1sminn1.broadpark.no> for freebsd-ppc@freebsd.org; Sun, 26 Mar 2006 18:01:48 +0200 (CEST) Date: Sun, 26 Mar 2006 18:01:48 +0200 From: Torfinn Ingolfsen X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH To: freebsd-ppc@freebsd.org Message-id: <20060326180148.010f5789.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Enable ata DMA on a PowerMac G4? 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 Mar 2006 16:01:50 -0000 hello, how do I enable DMA for my ata drives on a PMac G4? root@kg-g4# uname -a FreeBSD kg-g4.kg4.no 7.0-20051105-SNAP FreeBSD 7.0-20051105-SNAP #0: Sat Nov 5 04:33:52 UTC 2005 root@macmini.ptree32.com.au:/usr/obj/usr/src/sys/GENERIC powerpc root@kg-g4# dmesg | grep ata ata0 mem 0x1f000-0x1ffff,0x8a00-0x8aff irq 19 on macio0 ata1 mem 0x20000-0x20fff,0x8b00-0x8bff irq 20 on macio0 ata2 mem 0x21000-0x21fff,0x8c00-0x8cff irq 21 on macio0 ad0: 58644MB at ata0-master BIOSPIO ad1: 156334MB at ata0-slave BIOSPIO acd0: CDRW at ata1-master BIOSPIO root@kg-g4# sysctl hw.ata hw.ata.ata_dma: 1 hw.ata.atapi_dma: 1 hw.ata.wc: 1 It seems that DMA is enabled, but the drives still reports as BIOSPIO? I even tried with atacontrol: root@kg-g4# atacontrol list ATA channel 0: Master: ad0 ATA/ATAPI revision 5 Slave: ad1 ATA/ATAPI revision 7 ATA channel 1: Master: acd0 ATA/ATAPI revision 0 Slave: no device present ATA channel 2: Master: no device present Slave: no device present root@kg-g4# atacontrol info ata0 Master: ad0 ATA/ATAPI revision 5 Slave: ad1 ATA/ATAPI revision 7 root@kg-g4# atacontrol mode ad1 UDMA5 current mode = BIOSPIO root@kg-g4# atacontrol mode ad1 UDMA100 current mode = BIOSPIO root@kg-g4# atacontrol mode ad0 UDMA100 current mode = BIOSPIO root@kg-g4# atacontrol mode ad0 UDMA5 current mode = BIOSPIO I have searched the 'net, but haven't turned up anything useful so far. -- Regards, Torfinn Ingolfsen, Norway