* [PATCH] makedumpfile/ppc64: Increase the VA range
@ 2018-06-19 14:45 Hari Bathini
2018-06-25 19:41 ` Kazuhito Hagio
0 siblings, 1 reply; 2+ messages in thread
From: Hari Bathini @ 2018-06-19 14:45 UTC (permalink / raw)
To: Masaki Tachibana, Daisuke Nishimura, Takuya Nakayama
Cc: Dave Young, ptesarik, Kexec-ml, piliu, andrej.skvortzov
* Required for kernel 4.17
Since kernel commit c2b4d8b7417a ("powerpc/mm/hash64: Increase the VA
range"), the max virtual (effective) address value has been increased
to 4PB. Update page table index values accordingly.
Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
---
arch/ppc64.c | 5 ++++-
makedumpfile.h | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/ppc64.c b/arch/ppc64.c
index 8bdbcc5..8b6f7d5 100644
--- a/arch/ppc64.c
+++ b/arch/ppc64.c
@@ -248,7 +248,10 @@ ppc64_vmalloc_init(void)
if (info->kernel_version >= KERNEL_VERSION(4, 12, 0)) {
info->l2_index_size = PMD_INDEX_SIZE_L4_64K_4_12;
- info->l3_index_size = PUD_INDEX_SIZE_L4_64K_4_12;
+ if (info->kernel_version >= KERNEL_VERSION(4, 17, 0))
+ info->l3_index_size = PUD_INDEX_SIZE_L4_64K_4_17;
+ else
+ info->l3_index_size = PUD_INDEX_SIZE_L4_64K_4_12;
info->l4_index_size = PGD_INDEX_SIZE_L4_64K_4_12;
} else {
info->l2_index_size = PMD_INDEX_SIZE_L4_64K_4_6;
diff --git a/makedumpfile.h b/makedumpfile.h
index 121eab2..4960e43 100644
--- a/makedumpfile.h
+++ b/makedumpfile.h
@@ -703,6 +703,7 @@ unsigned long get_kvbase_arm64(void);
#define PMD_INDEX_SIZE_L4_64K_4_12 10
#define PUD_INDEX_SIZE_L4_64K_4_12 7
#define PGD_INDEX_SIZE_L4_64K_4_12 8
+#define PUD_INDEX_SIZE_L4_64K_4_17 10
#define PTE_INDEX_SIZE_RADIX_64K 5
#define PMD_INDEX_SIZE_RADIX_64K 9
#define PUD_INDEX_SIZE_RADIX_64K 9
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] makedumpfile/ppc64: Increase the VA range
2018-06-19 14:45 [PATCH] makedumpfile/ppc64: Increase the VA range Hari Bathini
@ 2018-06-25 19:41 ` Kazuhito Hagio
0 siblings, 0 replies; 2+ messages in thread
From: Kazuhito Hagio @ 2018-06-25 19:41 UTC (permalink / raw)
To: Hari Bathini
Cc: Masaki Tachibana, Daisuke Nishimura, piliu, ptesarik, Kexec-ml,
andrej.skvortzov, Takuya Nakayama, Dave Young
Hi Hari,
Sorry for the late response.
I'm taking over the maintainer role of makedumpfile from Tachibana-san.
This patch is queued for v1.6.4.
Thanks,
Kazu
On 6/19/2018 10:45 AM, Hari Bathini wrote:
> * Required for kernel 4.17
>
> Since kernel commit c2b4d8b7417a ("powerpc/mm/hash64: Increase the VA
> range"), the max virtual (effective) address value has been increased
> to 4PB. Update page table index values accordingly.
>
> Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
> ---
> arch/ppc64.c | 5 ++++-
> makedumpfile.h | 1 +
> 2 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/arch/ppc64.c b/arch/ppc64.c
> index 8bdbcc5..8b6f7d5 100644
> --- a/arch/ppc64.c
> +++ b/arch/ppc64.c
> @@ -248,7 +248,10 @@ ppc64_vmalloc_init(void)
>
> if (info->kernel_version >= KERNEL_VERSION(4, 12, 0)) {
> info->l2_index_size = PMD_INDEX_SIZE_L4_64K_4_12;
> - info->l3_index_size = PUD_INDEX_SIZE_L4_64K_4_12;
> + if (info->kernel_version >= KERNEL_VERSION(4, 17, 0))
> + info->l3_index_size = PUD_INDEX_SIZE_L4_64K_4_17;
> + else
> + info->l3_index_size = PUD_INDEX_SIZE_L4_64K_4_12;
> info->l4_index_size = PGD_INDEX_SIZE_L4_64K_4_12;
> } else {
> info->l2_index_size = PMD_INDEX_SIZE_L4_64K_4_6;
> diff --git a/makedumpfile.h b/makedumpfile.h
> index 121eab2..4960e43 100644
> --- a/makedumpfile.h
> +++ b/makedumpfile.h
> @@ -703,6 +703,7 @@ unsigned long get_kvbase_arm64(void);
> #define PMD_INDEX_SIZE_L4_64K_4_12 10
> #define PUD_INDEX_SIZE_L4_64K_4_12 7
> #define PGD_INDEX_SIZE_L4_64K_4_12 8
> +#define PUD_INDEX_SIZE_L4_64K_4_17 10
> #define PTE_INDEX_SIZE_RADIX_64K 5
> #define PMD_INDEX_SIZE_RADIX_64K 9
> #define PUD_INDEX_SIZE_RADIX_64K 9
>
>
> _______________________________________________
> kexec mailing list
> kexec@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec
>
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-06-25 19:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-19 14:45 [PATCH] makedumpfile/ppc64: Increase the VA range Hari Bathini
2018-06-25 19:41 ` Kazuhito Hagio
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.