[PATCH] arm64/fixmap: make notes of fixed_addresses more precisely

Catalin Marinas catalin.marinas at arm.com
Thu Jul 30 07:09:38 EDT 2020


On Fri, Jul 10, 2020 at 09:43:22PM +0800, Pingfan Liu wrote:
> These 'compile-time allocated' memory buffers can occupy more than one
> page. So improve the note about it.
> 
> Signed-off-by: Pingfan Liu <kernelfans at gmail.com>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Will Deacon <will at kernel.org>
> To: linux-arm-kernel at lists.infradead.org
> ---
>  arch/arm64/include/asm/fixmap.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/include/asm/fixmap.h b/arch/arm64/include/asm/fixmap.h
> index f987b8a..318aee1 100644
> --- a/arch/arm64/include/asm/fixmap.h
> +++ b/arch/arm64/include/asm/fixmap.h
> @@ -29,7 +29,8 @@
>   * in the boot process.
>   *
>   * These 'compile-time allocated' memory buffers are
> - * page-sized. Use set_fixmap(idx,phys) to associate
> + * page-sized (or larger if used with an increment
> + * higher than 1). Use set_fixmap(idx,phys) to associate
>   * physical memory with fixmap indices.

I don't get this. set_fixmap() only maps a page. Also, what's
"increment" in this context?

-- 
Catalin



More information about the linux-arm-kernel mailing list