Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2001 09:43:54 -0700
From:      Julian Elischer <julian@elischer.org>
To:        Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: ata0-master: non aligned DMA transfer attempted
Message-ID:  <3B8A78CA.A888C9BC@elischer.org>
References:  <Pine.SOL.4.21.0108271015520.14303-100000@onyx>

next in thread | previous in thread | raw e-mail | index | archive | help
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 
|  /       \ julian@elischer.org     +------>x   USA    \ a very strange
| (   OZ    )                                \___   ___ | country !
+- X_.---._/    presently in San Francisco       \_/   \\
          v

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B8A78CA.A888C9BC>