Re: [PATCH] iuu_phoenix new driver proposal for review and comments

Pete Zaitcev <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization Red Hat, Inc.
Message-ID <[email protected]>
On Wed, 18 Jul 2007 20:58:45 +0200, Oliver Neukum <[email protected]> wrote:
> Am Mittwoch 18 Juli 2007 schrieb eczema:

> > +struct iuu_buffers {
> > +       u8 buf[256];
> > +       u8 finalbuf[256];
> > +       u8 dbgbuf[512];
> > +       u8 len;
> > +};
> > +
> 
> Is that safe? Kmalloc will give out chunks of memory safe for DMA, but will
> they be aligned?

Yes, they are aligned for the longest integral type a system
possesses, although there may be issues. They are NOT aligned for
the next power of two though. It only happens as long as SLAB
debugging is not enabled. If you want alignment to 256, either
grab pages or realign by hand like ymfpci did.

-- Pete

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.