Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp364269ybe; Mon, 2 Sep 2019 02:54:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVTFoZ3esi5CsukZiJerT6G4L/WQJ0AnvgFwXGtiFaQcxfvig2p5j6uydS+yiitw3XvF/I X-Received: by 2002:a63:4f1f:: with SMTP id d31mr2518135pgb.265.1567418087782; Mon, 02 Sep 2019 02:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567418087; cv=none; d=google.com; s=arc-20160816; b=AUeVZTju3KHn6rC3LyZzHr+07Ovd2t/sRJQsatS7mNSp0MJqp/lE8JrDq68zktfxfn G8xjiKEcOg5gusQGwvzOdMKl8RYwapEzAJkMtr0q2MTWWYVtNrhaPZbj3NXaFODYQeoq 49PSJ6BtR5UkYLF7RL7mk/CFd5L6KedQHpee5O1jSBSkZdv6B59WswPKU1eNVIV3DRuS VILZypJeLTyZE7OYiuDNOBouKtXaC2ooD/7L50XHif7eDKuBOrIoeL/dcTJTk6VVzcVF c9KBxGJo7AdfMIcCFC0RoWaxpGf4MGG7HNtqFf3xiiRP3XtJ/PDhamVCds8k16AkpRos Pvwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :followup-to:references:in-reply-to:message-id:subject:cc:to:from :date; bh=Hz3IKV/A8mMI41Qr3jRW7nWIRJsNOvbqAAaUCXVGXEU=; b=U/4RZwSbuk2MDPYG5LhfvWFyEWKrN6tu/Dc0tLuDU7JKNIUVhFaH5zuVt/hr6hhTLe gvPRK5u1ogVAzSO5hlbiadmTbODKB26uQP4VV38cE+Vg9TQS7moD/8r+XK+aE5XPpsCj AqN3GOJYEz63e1wGjxD5Hsox3JTOkLawywmutRAdGR35BWsjEzRmw0jX9gnN28dSLQBG Cz2xXzM0/FJrM1iBA3iJdPDLxsNgj+87kKSHvUuLjDasxq3D1TA8l0GelKoq/3kvNDq9 LCCv2NDIdtsz4ovKwZq7D5A5avNJrQXAuHSepRjp46JPbixT8VVYAdK/zYLHFd9Srqpt DlAA== 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 y12si11303880pgg.585.2019.09.02.02.54.29; Mon, 02 Sep 2019 02:54:47 -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 S1731341AbfIBJmp (ORCPT + 99 others); Mon, 2 Sep 2019 05:42:45 -0400 Received: from mx2.suse.de ([195.135.220.15]:48178 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730680AbfIBJmp (ORCPT ); Mon, 2 Sep 2019 05:42:45 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3AA39ABBE; Mon, 2 Sep 2019 09:42:43 +0000 (UTC) Date: Mon, 2 Sep 2019 11:42:39 +0200 From: Michal =?UTF-8?B?U3VjaMOhbmVr?= To: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, Madhavan Srinivasan , David Hildenbrand , Heiko Carstens , Paul Mackerras , Breno Leitao , Michael Neuling , Diana Craciun , Firoz Khan , Hari Bathini , Joel Stanley , Arnd Bergmann , Nicholas Piggin , Alexander Viro , Thomas Gleixner , Allison Randal , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, "Eric W. Biederman" , Andrew Donnellan , Andrew Morton Subject: Re: [PATCH v7 5/6] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default. Message-ID: <20190902114239.32bd81f4@naga> In-Reply-To: <87ftlftpy7.fsf@mpe.ellerman.id.au> References: <87ftlftpy7.fsf@mpe.ellerman.id.au> Followup-To: linux-fsdevel@vger.kernel.org X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 02 Sep 2019 12:03:12 +1000 Michael Ellerman wrote: > Michal Suchanek writes: > > On bigendian ppc64 it is common to have 32bit legacy binaries but much > > less so on littleendian. > > I think the toolchain people will tell you that there is no 32-bit > little endian ABI defined at all, if anything works it's by accident. I have seen a piece of software that workarounds code issues on 64bit by always compiling 32bit code. So it does work in some way. Also it has been pointed out that you can still switch to BE even with the 'fast-switch' removed. > > So I think we should not make this selectable, unless someone puts their > hand up to say they want it and are willing to test it and keep it > working. I don't really care either way. Thanks Michal > > cheers > > > v3: make configurable > > --- > > arch/powerpc/Kconfig | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > > index 5bab0bb6b833..b0339e892329 100644 > > --- a/arch/powerpc/Kconfig > > +++ b/arch/powerpc/Kconfig > > @@ -264,8 +264,9 @@ config PANIC_TIMEOUT > > default 180 > > > > config COMPAT > > - bool > > - default y if PPC64 > > + bool "Enable support for 32bit binaries" > > + depends on PPC64 > > + default y if !CPU_LITTLE_ENDIAN > > select COMPAT_BINFMT_ELF > > select ARCH_WANT_OLD_COMPAT_IPC > > select COMPAT_OLD_SIGACTION > > -- > > 2.22.0