Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7033976ybi; Thu, 13 Jun 2019 08:28:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyisOHfGmEby4EWEr68FlX20hfU7sDHLdvifb6Iyzlj0xGuxqHeFlmJ5Fm/e0mKiCzFmPnx X-Received: by 2002:a17:902:ab83:: with SMTP id f3mr40708133plr.146.1560439696818; Thu, 13 Jun 2019 08:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560439696; cv=none; d=google.com; s=arc-20160816; b=fjD3vD0H/rVXbiEywBzG4XShbEu7y7HN3cuiB90Gd9KI/J8LAdMSIIk3v5cX+YNavA 0HaCJiAI27vCghG4cjQP++vVG2bEOshbNHQexJ+3f7t8yY1mt9HlBO8QU2+tsEasckng KOjWeqXsaGQNgLocoANgjRrjCn4WRaSSptpVI/qtiTCttnYEwTj2Nupl6wRso3awcs9X ODIHSCTu7PILT+CtuFiIFk/6UmwNMUC3YmGWHDQ2HEK07DsQdE846knsay1RhIqmEc4P WM6ZgMrFwkBPMxe0/4za1c4lm8ODRZfgwFAn8gwjemvvyKYbKVfm7kXtV1u8cC6NFlTC 1nNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=0R4c4aJCIlhL9jOF5+Tu52HamgH9gLCuZwSGrV0tNKQ=; b=L7N1f5kJLLKCJnM/+ratV6aJ9ZLmawef2WzYf3tqKpDE9V+mMdj3hJEWgHtYKQQ0u5 wkxlpukykW+0gVwKWxciov7atnJWsw01W2UyWD8fq2vs70huNUS+uZIyIb9x2fd8P73t ES4FtfhHlchCyYkPM8hwMyYhrevhw49Z+kkASJ/1ca0B7CkJXtx3ZgCqC4i8FRQqCIRY fzpVQzt2H5KaOs60XvY8nX+HV4g+Bl2sYAO7+bbSFyATA7lLRO+ed1K67Jlmg+RjjlQs b/K+PUZqgIvxakMSkLc08r1PZj6VxspwKBl/vysfb7q2rqEfsvf1IzjXTcnSb/Hr/+dT oukQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si50980pgh.69.2019.06.13.08.28.01; Thu, 13 Jun 2019 08:28:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727374AbfFMP1G (ORCPT + 99 others); Thu, 13 Jun 2019 11:27:06 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:47389 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729079AbfFMLmQ (ORCPT ); Thu, 13 Jun 2019 07:42:16 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 45Phfr3V7Tz9s5c; Thu, 13 Jun 2019 21:42:11 +1000 (AEST) From: Michael Ellerman To: Daniel Axtens , Pawel Dembicki Cc: Pawel Dembicki , Christian Lamparter , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: Enable kernel XZ compression option on PPC_85xx In-Reply-To: <877e9qp3ou.fsf@dja-thinkpad.axtens.net> References: <20190603164115.27471-1-paweldembicki@gmail.com> <877e9qp3ou.fsf@dja-thinkpad.axtens.net> Date: Thu, 13 Jun 2019 21:42:09 +1000 Message-ID: <87ftodempa.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Daniel Axtens writes: > Pawel Dembicki writes: > >> Enable kernel XZ compression option on PPC_85xx. Tested with >> simpleImage on TP-Link TL-WDR4900 (Freescale P1014 processor). >> >> Suggested-by: Christian Lamparter >> Signed-off-by: Pawel Dembicki >> --- >> arch/powerpc/Kconfig | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig >> index 8c1c636308c8..daf4cb968922 100644 >> --- a/arch/powerpc/Kconfig >> +++ b/arch/powerpc/Kconfig >> @@ -196,7 +196,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 || 44x >> + select HAVE_KERNEL_XZ if PPC_BOOK3S || 44x || PPC_85xx > > (I'm not super well versed in the compression stuff, so apologies if > this is a dumb question.) If it's this simple, is there any reason we > can't turn it on generally, or convert it to a blacklist of platforms > known not to work? For some platforms enabling XZ requires that your u-boot has XZ support, and I'm not very clear on when that support landed in u-boot and what boards have it. And there are boards out there with old/custom u-boots that effectively can't be updated. But as a server guy I don't really know the details of all that very well. So if someone tells me that we should enable XZ for everything, or as you say just black list some platforms, then that's fine by me. cheers