Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp729860ybp; Fri, 11 Oct 2019 03:29:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgckt029Ry4w8P8L17gl9/s67Rg5XIEazcUCQ7+HEOYR5N00CUZV1qw7imTGBivXodsXyX X-Received: by 2002:a17:906:6087:: with SMTP id t7mr13111511ejj.58.1570789795870; Fri, 11 Oct 2019 03:29:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570789795; cv=none; d=google.com; s=arc-20160816; b=Ry4eOaMcUcubuZez90ntLHZy5ywH1OGU13G/twZphdC4Gmh8MFaVMJZ9XNw8zBmg4p dOzpDhtHSllcnbcY/9pb7QyPENYCj0wZ/ctYznraRUNNfN2UohShpTS4R+cPQnyjoVUT 18owf/ylnGT3i0+sDNilme62kEkkWo4aHyiQHaBeVKoAUdflub+vQSFXPNpTixe33aux I1HpXyY7WIJGoDA5hLcidcmg+0oUI/Mb2m7eXkDUEj0yRPIqyHNA2OB63XmhpDEtnuVc lkx08cVWbc9pV2TntFK3HBNwtbppfo7/sTgeM+b4N6kYupNS93yCe5rdzSc7Mgb8D6XH pbaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OBi2/4BXvi19ZAcroHdOH+gOoTAD4BfmI+B0YKv2/Ks=; b=fS/GEH4zImmvGYK43AcW38mOx2C/V5hMjIFIIa1oiPRbAGSfKoDjxxYJOWvaU5kNyb 0JQupDQS1pPJqmKUTfj8xPwbJbSx7oBJ1ZokG3k1B0J3MnGW1zWBGopNh71iR69awO3l pixZUMF9ziMwY5j5MQj9LKMvnN3rLqwN1UdV/+CjtPaHAJ8E2DUvu5l31ilU6S9l62RP V3WuMnL3UskY6KNFPoQsxhELQOAxJ5o26VhLaDby6/bkw5a0+gosb9vy5J+9mNHFfa6H H0lck2TJOjrUGWuq2TsrCJeKmL0oTsPIpSu6exaIzP867BTQs6JoKbzES1hl2ecxQz15 e5Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T3ay+jtb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y54si5506096edb.217.2019.10.11.03.29.32; Fri, 11 Oct 2019 03:29:55 -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; dkim=pass header.i=@kernel.org header.s=default header.b=T3ay+jtb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727678AbfJKK1x (ORCPT + 99 others); Fri, 11 Oct 2019 06:27:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:45076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726710AbfJKK1x (ORCPT ); Fri, 11 Oct 2019 06:27:53 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 417E6206A1; Fri, 11 Oct 2019 10:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570789672; bh=NQlnfIHW0EyL5zquV/IDum9zTq17av5hd0+OwZ2iZ3g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T3ay+jtbVCRXmgIEMybB6E5txuRy3CnRaUOe0Vo51V06zC2zzDwIz9EGM4i+qVdZR mSKxOv597APEHVo9GByDJaYZZwLvXPZ5kBVvqHDZock28bMWjQGMtph23aBanY0xkz VT5Ov8XezzwDotIsBuP6VqpkkBeEoI4p0IvmPfSY= Date: Fri, 11 Oct 2019 11:27:48 +0100 From: Will Deacon To: Arnd Bergmann Cc: John Garry , Anders Roxell , Catalin Marinas , Linux Kernel Mailing List , Linux ARM , Olof Johansson Subject: Re: [PATCH 3/3] arm64: configs: unset CPU_BIG_ENDIAN Message-ID: <20191011102747.lpbaur2e4nqyf7sw@willie-the-truck> References: <20190926193030.5843-1-anders.roxell@linaro.org> <20190926193030.5843-5-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 11, 2019 at 12:25:29PM +0200, Arnd Bergmann wrote: > On Thu, Oct 3, 2019 at 1:15 PM John Garry wrote: > > On 03/10/2019 08:40, Anders Roxell wrote: > > > On Tue, 1 Oct 2019 at 16:04, John Garry wrote: > > >> On 26/09/2019 20:30, Anders Roxell wrote: > > >>> it doesn't get enabled when building allmodconfig kernels. When doing a > > >>> 'make savedefconfig' CONFIG_CPU_BIG_ENDIAN will be dropped. > > >> > > >> So without having to pass KCONFIG_ALLCONFIG or do anything else, what > > >> about a config for CONFIG_CPU_LITTLE_ENDIAN instead? I'm not sure if > > >> that was omitted for a specific reason. > > > > > > Oh, I tried to elaborate on the idea in the cover letter, that using > > > the defconfig > > > as base and then configure the rest as modules is to get a bootable kernel > > > that have as many features turned on as possible. That will make it possible > > > to run as wide a range of testsuites as possible on a single kernel. > > > > > > Does that make it clearer ? > > > > Hi Anders, > > > > Yeah, I got the idea. > > > > So when you say "'make savedefconfig' CONFIG_CPU_BIG_ENDIAN will be > > dropped", I don't know what the rules are in terms of resyncing the > > common defconfig (I was under the impression that it's done per release > > cycle by the arm soc maintainers, but can't find evidence as such), but > > your change may be easily lost in this way. > > We don't do it every release, but occasionally someone sends a patch > with a refresh, and this might easily get missed. > > We could force the allmodconfig kernel to be little-endian by default, > using a choice statement to pick endianess like arch/mips and arch/sh > do, the effect would be that an allmodconfig kernel gains a few more > options that depend on !BIG_ENDIAN, but we would no longer catch > a class of endianess bugs in drivers that we otherwise get warnings > for. No idea what is better here. Does anybody use BIG_ENDIAN? If we're not even building it then maybe we should get rid of it altogether on arm64. I don't know of any supported userspace that supports it or any CPUs that are unable to run little-endian binaries. Will