From owner-freebsd-embedded@FreeBSD.ORG Thu Aug 28 14:39:39 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32AD61065671 for ; Thu, 28 Aug 2008 14:39:39 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from smtp.ht-systems.ru (mr0.ht-systems.ru [78.110.50.55]) by mx1.freebsd.org (Postfix) with ESMTP id DE1718FC19 for ; Thu, 28 Aug 2008 14:39:38 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from [78.110.49.49] (helo=quasar.ht-systems.ru) by smtp.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1KYiL9-00075r-2Y; Thu, 28 Aug 2008 18:19:11 +0400 Received: by quasar.ht-systems.ru (Postfix, from userid 1024) id E21DF73C90; Thu, 28 Aug 2008 18:19:10 +0400 (MSD) Date: Thu, 28 Aug 2008 18:19:05 +0400 From: Stanislav Sedov To: "Marauder" Message-Id: <20080828181905.51458f1b.stas@FreeBSD.org> In-Reply-To: <48B4461C.5689.0089.0@pi.avalonnetworks.us> References: <48B4461C.5689.0089.0@pi.avalonnetworks.us> Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Thu__28_Aug_2008_18_19_05_+0400_YRxs78LrET=H//pi" Cc: freebsd-embedded@freebsd.org Subject: Re: DMA to ATA drive failure X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2008 14:39:39 -0000 --Signature=_Thu__28_Aug_2008_18_19_05_+0400_YRxs78LrET=H//pi Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, 26 Aug 2008 18:08:09 -0600 "Marauder" mentioned: > Hi, >=20 > I have a system that needs to directly access the local storage device in= are machine (In this case it is a ATA hard disk). To do that we are use co= de similar to this >=20 > storageFD =3D open("/dev/ad4", O_RDWR); > if (write(storageFD, configBlock, 512) =3D=3D -1) { > cout << "Error" << endl; > } >=20 > We currently make sure we are writing to the disk in full sector sizes (5= 12 in this case) and im sure we have the disk open for write. >=20 > But for some reason on some machines that we do this on we get the follow= ing error displayed from the kernel. "Aligned DMA transfer attempted. ad4: = Setting up DMA failed" We have tried adding "SET hw.ata.ata_dma=3D0" in are= loader.rc file with no luck. >=20 > Any help would be greatly appreciated > Thanx What does atacontrol displays for the disk attached? And what hardware do you use? --=20 Stanislav Sedov ST4096-RIPE --Signature=_Thu__28_Aug_2008_18_19_05_+0400_YRxs78LrET=H//pi Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAki2s94ACgkQK/VZk+smlYH6sQCeIG/FAJr/MViRPwl0GmJIlVd0 hOoAn3kMRys0s1DtO/2KiSt3UsrpNqmM =qZ9f -----END PGP SIGNATURE----- --Signature=_Thu__28_Aug_2008_18_19_05_+0400_YRxs78LrET=H//pi--