On Tue, Aug 10, 2021 at 10:26:31AM +0200, Alex Ghiti wrote:
Hi Greg,
Le 9/08/2021 à 12:42, gregkh@linuxfoundation.org a écrit :
The patch below does not apply to the 5.13-stable tree.
I don't know when stable was cc on this patch, this fixes something introduced in 5.14-rc1, so this is not normal it can't be applied.
Sorry for the noise,
Alex
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to stable@vger.kernel.org.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 6d7f91d914bc90a15ebc426440c26081337ceaa1 Mon Sep 17 00:00:00 2001 From: Alexandre Ghiti alex@ghiti.fr Date: Wed, 21 Jul 2021 09:59:35 +0200 Subject: [PATCH] riscv: Get rid of CONFIG_PHYS_RAM_BASE in kernel physical address conversion
The usage of CONFIG_PHYS_RAM_BASE for all kernel types was a mistake: this value is implementation-specific and this breaks the genericity of the RISC-V kernel.
Fix this by introducing a new variable phys_ram_base that holds this value at runtime and use it in the kernel physical address conversion macro. Since this value is used only for XIP kernels, evaluate it only if CONFIG_XIP_KERNEL is set which in addition optimizes this macro for standard kernels at compile-time.
Signed-off-by: Alexandre Ghiti alex@ghiti.fr Tested-by: Emil Renner Berthing kernel@esmil.dk Reviewed-by: Jisheng Zhang jszhang@kernel.org Fixes: 44c922572952 ("RISC-V: enable XIP")
But this commit id is in 5.13, is that incorrect?
Just verifying,
greg k-h