linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Revert "init/Kconfig: add option to disable kernel compression"
@ 2013-11-15  5:43 H. Peter Anvin
  2013-11-15 16:51 ` [PATCH] [FIX] init/Kconfig: fix option to disable kernel compression Christian Ruppert
  0 siblings, 1 reply; 15+ messages in thread
From: H. Peter Anvin @ 2013-11-15  5:43 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Linux Kernel Mailing List, Pavel Roskin, Ingo Molnar,
	Thomas Gleixner, H. Peter Anvin, Christian Ruppert, Andrew Morton

From: "H. Peter Anvin" <hpa@zytor.com>

This reverts commit 69f0554ec261fd686ac7fa1c598cc9eb27b83a80.

This patch breaks randconfig on at least the x86-64 architecture, and
most likely on others.  There is work underway to support uncompressed
kernels in a generic way, but it looks like it will amount to
rewriting the support from scratch; see the LKML thread in the Link:
for info.

Therefore, revert this change and wait for the fix.

Reported-by: Pavel Roskin <proski@gnu.org>
Cc: Christian Ruppert <christian.ruppert@abilis.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20131113113418.167b8ffd@IRBT4585
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
---
 init/Kconfig | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/init/Kconfig b/init/Kconfig
index 5496f307988e..bc8911fab28e 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -118,6 +118,7 @@ config HAVE_KERNEL_LZ4
 choice
 	prompt "Kernel compression mode"
 	default KERNEL_GZIP
+	depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4
 	help
 	  The linux kernel is a kind of self-extracting executable.
 	  Several compression algorithms are available, which differ
@@ -136,13 +137,6 @@ choice
 
 	  If in doubt, select 'gzip'
 
-config KERNEL_UNCOMPRESSED
-	bool "No compression"
-	help
-	  No compression at all. The kernel is huge but the compression and
-	  decompression times are zero.
-	  This is usually not what you want.
-
 config KERNEL_GZIP
 	bool "Gzip"
 	depends on HAVE_KERNEL_GZIP
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 15+ messages in thread
* Re: Uncompressed kernel doesn't build on x86_64
@ 2013-11-14  8:32 Christian Ruppert
  2013-11-14  8:38 ` [PATCH 2/2] x86: Add support for uncompressed kernel images Christian Ruppert
  0 siblings, 1 reply; 15+ messages in thread
From: Christian Ruppert @ 2013-11-14  8:32 UTC (permalink / raw)
  To: Pavel Roskin
  Cc: linux-kernel, Andrew Morton, H. Peter Anvin, Vineet Gupta,
	Noam Camus

On Wed, Nov 13, 2013 at 11:34:18AM -0500, Pavel Roskin wrote:
> Hi Christian,
> 
> Your recent patch enables uncompressed kernels, but selecting that
> option (CONFIG_KERNEL_UNCOMPRESSED) fails on x86_86:
> [...]
> arch/x86/boot/compressed/Makefile has no provision for uncompressed
> files.  There is no definition for suffix-$(CONFIG_KERNEL_UNCOMPRESSED)
> so $(suffix-y) evaluates to an empty string and there is no rule to
> make vmlinuz.bin.$(suffix-y)
> 
> I think the patch should be either reverted or fixed as soon as
> possible.

This is an interesting observation, thanks. Although this patch is
rather intended for embedded architectures than x86, it highlights
potential issues with self-decompressing images of all sorts. I have no
way of testing all architectures and so I'm sending two patches in the
follow-up:
1. A conservative version of the original patch which requires
   architectures to explicitly enable uncompresed kernel images if they
   support compression as well and falls back to previous behaviour if
   nothing is specified. I have copied Vineet Gupta (maintainer of the
   ARC platform) since I enabled GZIP and uncompressed kernels for ARC
   by default.
2. A patch to enable uncompressed x86 kernels. As stated above, I don't
   think this makes a lot of sense in itself but it might serve as an
   example for people working on other platforms with self-extracting
   kernels and the nozip not-decompression algorithm might be useful on
   those platforms as well. I only had a single x86-64 machine available
   to test this, however, so some more testing might be required.

> Any suggestions for uncompressed suffix?  I'd go with "copy".  Then the
> "compression" could be a symlink.  Alternatively, the "." could be
> included in other suffixes, the uncompressed suffix would be empty and
> the compression would be an empty statement.

I followed H. Peter's suggestion and chose option 2 in patch 2.

Greetings,
  Christian

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2013-12-16  9:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-15  5:43 [PATCH] Revert "init/Kconfig: add option to disable kernel compression" H. Peter Anvin
2013-11-15 16:51 ` [PATCH] [FIX] init/Kconfig: fix option to disable kernel compression Christian Ruppert
2013-11-16  9:42   ` Vineet Gupta
2013-11-18  9:48     ` Christian Ruppert
2013-11-18  9:51       ` [PATCH 1/2] init/Kconfig: add " Christian Ruppert
2013-11-18  9:51       ` [PATCH 2/2] x86: Add support for uncompressed kernel images Christian Ruppert
2013-11-18 11:25         ` Borislav Petkov
2013-11-18 13:48           ` [PATCH 2/2 v2] " Christian Ruppert
2013-12-16  8:59             ` Christian Ruppert
  -- strict thread matches above, loose matches on Subject: below --
2013-11-14  8:32 Uncompressed kernel doesn't build on x86_64 Christian Ruppert
2013-11-14  8:38 ` [PATCH 2/2] x86: Add support for uncompressed kernel images Christian Ruppert
2013-11-14 17:31   ` H. Peter Anvin
2013-11-15  9:31     ` Christian Ruppert
2013-11-14 17:45   ` H. Peter Anvin
2013-11-15  9:49     ` Christian Ruppert
2013-11-15 10:06       ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).