Re: [PATCH] swiotlb: Use page alignment for early buffer allocation

From: FUJITA Tomonori
Date: Mon Oct 11 2010 - 15:47:09 EST


On Mon, 11 Oct 2010 14:55:52 -0400
Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> wrote:

> On Mon, Oct 11, 2010 at 10:40:25AM -0700, Yinghai Lu wrote:
> >
> > We could call free_bootmem_late() if swiotlb is not used, and
> > it will shrink to page alignment.
> >
> > So alloc them with page alignment at first, to avoid lose two pages
>
> Looks good to me.

Acked-by: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx>

I'm not a big fun of using PAGE_ALING for size (not address) though.

> Fujita, you OK if I queue this up along with your other patch
> (swiotlb: make io_tlb_overflow static)

Fine by me.

Thanks,
--
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/