Re: [PATCH v2 3/3] swiotlb: Add swiotlb=noforce debug option

From: Catalin Marinas
Date: Wed Jan 04 2017 - 13:11:47 EST


On Fri, Dec 16, 2016 at 02:28:42PM +0100, Geert Uytterhoeven wrote:
> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> index 21e2d88637050b7a..24fb691b2da5f78d 100644
> --- a/Documentation/admin-guide/kernel-parameters.txt
> +++ b/Documentation/admin-guide/kernel-parameters.txt
> @@ -3811,10 +3811,11 @@
> it if 0 is given (See Documentation/cgroup-v1/memory.txt)
>
> swiotlb= [ARM,IA-64,PPC,MIPS,X86]
> - Format: { <int> | force }
> + Format: { <int> | force | noforce }
> <int> -- Number of I/O TLB slabs
> force -- force using of bounce buffers even if they
> wouldn't be automatically used by the kernel
> + noforce -- Never use bounce buffers (for debugging)

Nitpick (bikeshedding, feel free to ignore): "noforce" looks to me like
the current default behaviour if swiotlb= argument is passed. I would
have preferred "never" or "disable" instead, it has a clearer intent.

--
Catalin