Date: Thu, 28 Aug 2008 18:19:05 +0400 From: Stanislav Sedov <stas@FreeBSD.org> To: "Marauder" <marauder@pi.avalonnetworks.us> Cc: freebsd-embedded@freebsd.org Subject: Re: DMA to ATA drive failure 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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Tue, 26 Aug 2008 18:08:09 -0600
"Marauder" <marauder@pi.avalonnetworks.us> mentioned:
> Hi,
>
> 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 code similar to this
>
> storageFD = open("/dev/ad4", O_RDWR);
> if (write(storageFD, configBlock, 512) == -1) {
> cout << "Error" << endl;
> }
>
> We currently make sure we are writing to the disk in full sector sizes (512 in this case) and im sure we have the disk open for write.
>
> But for some reason on some machines that we do this on we get the following error displayed from the kernel. "Aligned DMA transfer attempted. ad4: Setting up DMA failed" We have tried adding "SET hw.ata.ata_dma=0" in are loader.rc file with no luck.
>
> Any help would be greatly appreciated
> Thanx
What does atacontrol displays for the disk attached? And what hardware do
you use?
--
Stanislav Sedov
ST4096-RIPE
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
iEYEARECAAYFAki2s94ACgkQK/VZk+smlYH6sQCeIG/FAJr/MViRPwl0GmJIlVd0
hOoAn3kMRys0s1DtO/2KiSt3UsrpNqmM
=qZ9f
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080828181905.51458f1b.stas>
