* [PATCH] kexec/ppc64: move to device tree version 17
@ 2014-06-16 12:42 Laurent Dufour
2014-06-16 23:23 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Laurent Dufour @ 2014-06-16 12:42 UTC (permalink / raw)
To: Simon Horman, kexec
Kernel commit e6a6928c3ea1d0195ed75a091e345696b916c09b changed the way the
device tree is processed in the kernel. Now version 2 is no more supported.
This patch move the version of the device tree generated in ppc64
environment from 2 to 17, allowing to kexec kernel 3.16.
In addition, automates the define of NEED_STRUCTURE_BLOCK_EXTRA_PAD which
should not be set for DT version 16 and above.
Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
---
kexec/arch/ppc64/kexec-ppc64.h | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/kexec/arch/ppc64/kexec-ppc64.h b/kexec/arch/ppc64/kexec-ppc64.h
index 9a0aecf..89ee942 100644
--- a/kexec/arch/ppc64/kexec-ppc64.h
+++ b/kexec/arch/ppc64/kexec-ppc64.h
@@ -6,9 +6,11 @@
#define CORE_TYPE_ELF32 1
#define CORE_TYPE_ELF64 2
-#define BOOT_BLOCK_VERSION 2
-#define BOOT_BLOCK_LAST_COMP_VERSION 2
-#define NEED_STRUCTURE_BLOCK_EXTRA_PAD
+#define BOOT_BLOCK_VERSION 17
+#define BOOT_BLOCK_LAST_COMP_VERSION 17
+#if (BOOT_BLOCK_VERSION < 16)
+# define NEED_STRUCTURE_BLOCK_EXTRA_PAD
+#endif
#define HAVE_DYNAMIC_MEMORY
#define NEED_RESERVE_DTB
_______________________________________________
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] kexec/ppc64: move to device tree version 17
2014-06-16 12:42 [PATCH] kexec/ppc64: move to device tree version 17 Laurent Dufour
@ 2014-06-16 23:23 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2014-06-16 23:23 UTC (permalink / raw)
To: Laurent Dufour; +Cc: kexec
On Mon, Jun 16, 2014 at 02:42:43PM +0200, Laurent Dufour wrote:
> Kernel commit e6a6928c3ea1d0195ed75a091e345696b916c09b changed the way the
> device tree is processed in the kernel. Now version 2 is no more supported.
>
> This patch move the version of the device tree generated in ppc64
> environment from 2 to 17, allowing to kexec kernel 3.16.
>
> In addition, automates the define of NEED_STRUCTURE_BLOCK_EXTRA_PAD which
> should not be set for DT version 16 and above.
>
> Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Thanks, applied.
> ---
> kexec/arch/ppc64/kexec-ppc64.h | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/kexec/arch/ppc64/kexec-ppc64.h b/kexec/arch/ppc64/kexec-ppc64.h
> index 9a0aecf..89ee942 100644
> --- a/kexec/arch/ppc64/kexec-ppc64.h
> +++ b/kexec/arch/ppc64/kexec-ppc64.h
> @@ -6,9 +6,11 @@
> #define CORE_TYPE_ELF32 1
> #define CORE_TYPE_ELF64 2
>
> -#define BOOT_BLOCK_VERSION 2
> -#define BOOT_BLOCK_LAST_COMP_VERSION 2
> -#define NEED_STRUCTURE_BLOCK_EXTRA_PAD
> +#define BOOT_BLOCK_VERSION 17
> +#define BOOT_BLOCK_LAST_COMP_VERSION 17
> +#if (BOOT_BLOCK_VERSION < 16)
> +# define NEED_STRUCTURE_BLOCK_EXTRA_PAD
> +#endif
> #define HAVE_DYNAMIC_MEMORY
> #define NEED_RESERVE_DTB
>
>
_______________________________________________
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:[~2014-06-16 23:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-16 12:42 [PATCH] kexec/ppc64: move to device tree version 17 Laurent Dufour
2014-06-16 23:23 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox