Re: [PATCH 11/11] swiotlb: allow initialisation with pre-allocatedbounce-buffer

From: FUJITA Tomonori
Date: Tue Jun 02 2009 - 00:08:53 EST


On Mon, 1 Jun 2009 16:33:03 +0100
Ian Campbell <ian.campbell@xxxxxxxxxx> wrote:

> This allows the generic swiotlb code to be used by users with unusual
> requirements for the buffer allocation by allowing them to provide
> their own swiotlb buffer.
>
> Also:
> - swiotlb_init_with_default_size is unused so collapse into
> swiotlb_init.
> - move declarations of swiotlb_late_init_with_default_size out of *.c
> into linux/swiotlb.h where they belong
> - Make io_tlb_nslabs and io_tlb_overflow non-static since callers of the
> new interface will want to access them.
>
> Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
> Cc: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx>
> Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
> Cc: Olaf Kirch <okir@xxxxxxx>
> Cc: Greg KH <gregkh@xxxxxxx>
> Cc: Ingo Molnar <mingo@xxxxxxx>
> ---
> arch/ia64/hp/common/hwsw_iommu.c | 3 --
> arch/ia64/hp/common/sba_iommu.c | 2 -
> include/linux/swiotlb.h | 14 ++++++++
> lib/swiotlb.c | 64 +++++++++++++++++++++----------------
> 4 files changed, 50 insertions(+), 33 deletions(-)

Please tell me a pointer to Xen code to use this patch. I think that
we could have more clean interfaces.
--
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/