Zhihui Zhang wrote:
> I believe that message is from ata_dmasetup():
>
> if (((uintptr_t)data & scp->alignment) || (count & scp->alignment)) {
> ata_printf(scp, device, "non aligned DMA transfer attempted\n");
> return -1;
> }
>
> The user address obtained by static allocation is not 16-byte aligned. The
> kernel routine physio() grabs a physical buffer to do DMA, but it still
> uses the user's address. The KVA associated with the buffer is not used.
>
> -Zhihui
the physical address of a buffer will have the same allignment as the KVA
address.
--
+------------------------------------+ ______ _ __
| __--_|\ Julian Elischer | \ U \/ / hard at work in
| / \ [EMAIL PROTECTED] +------>x USA \ a very strange
| ( OZ ) \___ ___ | country !
+- X_.---._/ presently in San Francisco \_/ \\
v
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message