[PATCH v3 0/2] simple optimizations for page_address and

From: Rongwei Wang
Date: Thu Nov 25 2021 - 12:08:08 EST


Hello

Patch 1/2 mainly to fix the bug when calling kexec_load() originally, but
because of ignored and link[1] also fixed this bug and had been applied
to arm64 (for-next/fixes) before us. Anyway, It's nice to unify the use of
'pmd_populate_kernel' under arm64.

Patch 2/2 just make a very simple optimization, reducing
calls to page_address() in kexec_page_alloc().

v2 -> v3:
- Patch "arm64: trans_pgd: unify the use of pmd_populate_kernel"
rename this patch.

v1 -> v2:
- Patch " arm64: trans_pgd: fix incorrect use of pmd_populate_kernel in
copy_pte()"
restore the usage of pmd_populate_kernel.

link1:
https://lore.kernel.org/linux-arm-kernel/20211111060316.12438-1-kernelfans@xxxxxxxxx/

v1:
https://lore.kernel.org/linux-arm-kernel/20211030183200.51295-1-rongwei.wang@xxxxxxxxxxxxxxxxx/
v2:
https://lore.kernel.org/linux-arm-kernel/20211114201650.5542-1-rongwei.wang@xxxxxxxxxxxxxxxxx/

Rongwei Wang (2):
arm64: trans_pgd: unify the use of pmd_populate_kernel
arm64: kexec: reduce calls to page_address()

arch/arm64/kernel/machine_kexec.c | 6 ++++--
arch/arm64/mm/trans_pgd.c | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)

--
1.8.3.1