[PATCH] powerpc: Enable kernel XZ compression option on 44x

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE2804d

3 messages, 2 authors, 2019-02-08 · open the first message on its own page

[PATCH] powerpc: Enable kernel XZ compression option on 44x

From: Christian Lamparter <hidden>
Date: 2019-01-31 21:00:59

Enable kernel XZ compression option on 44x.
Tested on a Western Digital - MyBook Live NAS.
It takes 22 seconds for the 800 MHz CPU to decompress
and boot a 2.63 MiB XZ-compressed kernel simpleImage.

Signed-off-by: Christian Lamparter <redacted>
---
 arch/powerpc/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 2890d36eb531..58b6ad3555e0 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -201,7 +201,7 @@ config PPC
 	select HAVE_IOREMAP_PROT
 	select HAVE_IRQ_EXIT_ON_IRQ_STACK
 	select HAVE_KERNEL_GZIP
-	select HAVE_KERNEL_XZ			if PPC_BOOK3S
+	select HAVE_KERNEL_XZ			if PPC_BOOK3S || 44x
 	select HAVE_KPROBES
 	select HAVE_KPROBES_ON_FTRACE
 	select HAVE_KRETPROBES
-- 
2.20.1

Re: powerpc: Enable kernel XZ compression option on 44x

From: Michael Ellerman <hidden>
Date: 2019-02-08 14:14:35

On Thu, 2019-01-31 at 20:59:04 UTC, Christian Lamparter wrote:
Enable kernel XZ compression option on 44x.
Tested on a Western Digital - MyBook Live NAS.
It takes 22 seconds for the 800 MHz CPU to decompress
and boot a 2.63 MiB XZ-compressed kernel simpleImage.

Signed-off-by: Christian Lamparter <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/423bfc69d7f491c47fc35921f7d460be

cheers

Re: powerpc: Enable kernel XZ compression option on 44x

From: Christian Lamparter <hidden>
Date: 2019-02-08 15:20:02

On Friday, February 8, 2019 2:02:41 PM CET Michael Ellerman wrote:
On Thu, 2019-01-31 at 20:59:04 UTC, Christian Lamparter wrote:
quoted
Enable kernel XZ compression option on 44x.
Tested on a Western Digital - MyBook Live NAS.
It takes 22 seconds for the 800 MHz CPU to decompress
and boot a 2.63 MiB XZ-compressed kernel simpleImage.

Signed-off-by: Christian Lamparter <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/423bfc69d7f491c47fc35921f7d460be

cheers
Hello,

I'm happy to report that a xz compressed kernel (as simpleImage)
also booted on a TP-Link WDR4900-v1 (Freescale P1014):
<https://github.com/openwrt/openwrt/pull/1773#issuecomment-461082045>

Hence, I'm inclined to also add PPC_85xx to list in /arch/powerpc/KConfig

|select HAVE_KERNEL_XZ			if PPC_BOOK3S || 44x || PPC_85xx

But on the other hand, it could very well be that more or all? PPC
would benifit from having HAVE_KERNEL_XZ available. What do you think?
(If you know of any interesting ARCHs, I could ask around too.)

Regards,
Christian

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help