Re: usb_get_status(): what a weird implementation !

From: Oliver Neukum
Date: Mon Jun 30 2008 - 10:11:25 EST


Am Montag 30 Juni 2008 16:03:52 schrieb Francis Moreau:
> On Mon, Jun 30, 2008 at 3:51 PM, Oliver Neukum <oliver@xxxxxxxxxx> wrote:
> >
> > If your buffer is smaller than CACHE_LINE_SIZE it should work.
> > However, this needs input from people who understand DMA in and out.
>
> yeah, that's the reason why it's a hack.
>
> Maybe adding a new helper in the dma API would be better...
>
> > But how large is 2 * CACHE_LINE_SIZE compared to the kernel stack?
>
> CACHE_LINE_SIZE = 32 bytes is common for embedded systems I guess.
> For big system, I dunno.
>
> Kernel stack size is usually 4KiB.
>

Well, we have:
asm-mips/mach-ip32/kmalloc.h:#define ARCH_KMALLOC_MINALIGN 128
That's 256 bytes, that is 1/16 of the stack.

Regards
Oliver

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/