Re: [PATCH 02/11] powerpc/kexec_file: mark PPC64 specific code
From: Hari Bathini
Date: Mon Jun 29 2020 - 14:43:34 EST
Hi Christophe
Thanks for the review...
On 27/06/20 12:12 pm, Christophe Leroy wrote:
>
>
> Le 26/06/2020 Ã 21:04, Hari Bathini a ÃcritÂ:
>> Some of the kexec_file_load code isn't PPC64 specific. Move PPC64
>> specific code from kexec/file_load.c to kexec/file_load_64.c. Also,
>> rename purgatory/trampoline.S to purgatory/trampoline_64.S in the
>> same spirit.
>
> At the time being, CONFIG_KEXEC_FILE depends on PPC64.
Right.
> Are you planning to make it work on PPC32 as well ?
No.
> Otherwise I don't understand the purpose of this patch.
But I want to make sure the changes I am adding in this series do not
get in the way of adding PPC32 changes whenever they are submitted as there
is common code currently and some more of it in the changes I am adding
in this series...
> Also, what is being done in this patch seems to go far beyond what you describe above.> It is propably worth splitting in several patches with proper explanation.
Hmmm.. I don't see any other reason beyond what I mentioned above.
Will try to split the patch but the changelog would still be the same, afaics.
> Christophe
>
>>
>> Signed-off-by: Hari Bathini <hbathini@xxxxxxxxxxxxx>
>> ---
>> Â arch/powerpc/include/asm/kexec.hÂÂÂÂÂÂ |ÂÂ 11 +++
>> Â arch/powerpc/kexec/MakefileÂÂÂÂÂÂÂÂÂÂÂ |ÂÂÂ 2 -
>> Â arch/powerpc/kexec/elf_64.cÂÂÂÂÂÂÂÂÂÂÂ |ÂÂÂ 7 +-
>> Â arch/powerpc/kexec/file_load.cÂÂÂÂÂÂÂÂ |ÂÂ 37 ++--------
>> Â arch/powerpc/kexec/file_load_64.cÂÂÂÂÂ |Â 108 ++++++++++++++++++++++++++++++
>> Â arch/powerpc/purgatory/MakefileÂÂÂÂÂÂÂ |ÂÂÂ 4 +
>> Â arch/powerpc/purgatory/trampoline.SÂÂÂ |Â 117 --------------------------------
>> Â arch/powerpc/purgatory/trampoline_64.S |Â 117 ++++++++++++++++++++++++++++++++
>> Â 8 files changed, 248 insertions(+), 155 deletions(-)
>> Â create mode 100644 arch/powerpc/kexec/file_load_64.c
>> Â delete mode 100644 arch/powerpc/purgatory/trampoline.S
>> Â create mode 100644 arch/powerpc/purgatory/trampoline_64.S
Thanks
Hari