[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20081117120246K.fujita.tomonori@lab.ntt.co.jp>
Date: Mon, 17 Nov 2008 12:48:51 +0900
From: FUJITA Tomonori <fujita.tomonori@....ntt.co.jp>
To: jeremy@...p.org
Cc: mingo@...e.hu, linux-kernel@...r.kernel.org,
xen-devel@...ts.xensource.com, x86@...nel.org,
ian.campbell@...rix.com
Subject: Re: [PATCH 04 of 38] swiotlb: move some definitions to header
On Thu, 13 Nov 2008 11:10:02 -0800
Jeremy Fitzhardinge <jeremy@...p.org> wrote:
> From: Ian Campbell <ian.campbell@...rix.com>
>
> Signed-off-by: Ian Campbell <ian.campbell@...rix.com>
> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@...rix.com>
> ---
> include/linux/swiotlb.h | 14 ++++++++++++++
> lib/swiotlb.c | 14 +-------------
> 2 files changed, 15 insertions(+), 13 deletions(-)
>
> diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h
> --- a/include/linux/swiotlb.h
> +++ b/include/linux/swiotlb.h
> @@ -7,6 +7,20 @@
> struct dma_attrs;
> struct scatterlist;
>
> +/*
> + * Maximum allowable number of contiguous slabs to map,
> + * must be a power of 2. What is the appropriate value ?
> + * The complexity of {map,unmap}_single is linearly dependent on this value.
> + */
> +#define IO_TLB_SEGSIZE 128
> +
> +
> +/*
> + * log of the size of each IO TLB slab. The number of slabs is command line
> + * controllable.
> + */
> +#define IO_TLB_SHIFT 11
> +
Why do we need to export IO_TLB_SEGSIZE and IO_TLB_SHIFT to everyone
in include/linux?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists