Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1524521ybp; Fri, 11 Oct 2019 15:57:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIrEDOuZLkfAcwHbISZmeBcDW3qQF0iLTVFqSnb8/AWZKtRNXK0M0x8jV9/RQk0FiyEXKX X-Received: by 2002:a17:906:fca8:: with SMTP id qw8mr16793789ejb.188.1570834653282; Fri, 11 Oct 2019 15:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570834653; cv=none; d=google.com; s=arc-20160816; b=U2e/bBLhSV1zWNiv/DQ1dEGZE7z04bvwgTCk1QEsXCcQA4XW/jald0ltDgKPFtgQF2 4DLVjbyWt1UknKUnDc9pJ7oR+TEO0QOkZ8zEm4kyX7arnTmKDosBnedKAtZ4KAt9ni3A R9OLg/3ZXHQ2CviM0EAdt7U4uT647HEbQcU2c0aKVuLfWv0LXrldStPfhJBZVl/XdP6I qLAZIZbh1NjbOxYNIyYmR4xuW7AuXGm1dyOzCqsncmYygvfTvYFNZtgYYwCF1tC3k373 jKUzSGyWkVaTTX0pIGo8EfAS9ssTTH5c4eYjaIqDz6M/X+mjL5iZMTiB0HFkuarmobEr ypyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=SOKIN9Nyp1JbsZ7BUkjibIlWkzxw3BXcx3Hv1FQA6jE=; b=zFk1fTHMI/uv7e6jgRqndkMBm+PpkxsqejAwkfQ/+TG58NL6vmrcUF6pEQ2fSgKsEL 4+ZJlmzSzfpEJCgb6BNQvnCA4ToaySIK6N/J9pA6YooOhG17VBs2J3Z3XfNW/SVNo4ea 1/ZvKhbusnM3XmgyExb3qGmferL8EyZSYvt0aaoEgDv3icTkCgtkYKw8uxtkm1zQm5tl H9CaPfYgw/9viPdH9jv2LjuOjYI4qEYnzDeY4TBRi0wnmz7dG5BxjUrhuj6N5+5IvFnb Ois4TLAvzhL4juoRNkkUNTTkzTbB5Ej47Mfsf3tUJQ1i5ZuVbbp87sVyejxhELTWnx5g Y0DQ== 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 4si6869437ejc.382.2019.10.11.15.57.10; Fri, 11 Oct 2019 15:57:33 -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 S1727833AbfJKWsD (ORCPT + 99 others); Fri, 11 Oct 2019 18:48:03 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:34698 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726827AbfJKWsD (ORCPT ); Fri, 11 Oct 2019 18:48:03 -0400 Received: by mail-qk1-f194.google.com with SMTP id q203so10395159qke.1 for ; Fri, 11 Oct 2019 15:48:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SOKIN9Nyp1JbsZ7BUkjibIlWkzxw3BXcx3Hv1FQA6jE=; b=KualsdexNgkQX8jeKWQwszOWaakiOl4IrKR9HozgZCubunWStkVpW8jIOpgMLaxAfH mydk7pGzQ3vo2wEtsmNvxdLRMz6Txm0JafpMbHKQhYsorT0zgrfxy/Kbpbiiwg/R8JRl jiRZwKOifim1CjNEh9uTcAf+QyBjusMVugXB6XiObkpo5O0sgW/BO4tOIwEp5opSCZDz Z+9OHgLjzyjOAIkZU3cT+oAlXHi4hqXky2DL0ODpf29ba4aPJ6pOviEgvoLWszB0Rc14 bMtddVZP1a8Ldn+T+6vv9xZHLqGX4h+pUutlFmkq6bl35feGXQpTkwuCRHlI2w/SDDUm V+8w== X-Gm-Message-State: APjAAAX2+tmQUQhc0ERmNwrN3XLduJaAx5ALxQ44xcT8mFuEbYbEDPDl g9uKe2V1TFadyeFrmLX5hPgk4zGjU4tH74Lc4aA= X-Received: by 2002:a05:620a:218f:: with SMTP id g15mr17971150qka.3.1570834081941; Fri, 11 Oct 2019 15:48:01 -0700 (PDT) MIME-Version: 1.0 References: <20190926193030.5843-1-anders.roxell@linaro.org> <20190926193030.5843-5-anders.roxell@linaro.org> <20191011102747.lpbaur2e4nqyf7sw@willie-the-truck> <20191011103342.GL25745@shell.armlinux.org.uk> In-Reply-To: <20191011103342.GL25745@shell.armlinux.org.uk> From: Arnd Bergmann Date: Sat, 12 Oct 2019 00:47:45 +0200 Message-ID: Subject: Re: [PATCH 3/3] arm64: configs: unset CPU_BIG_ENDIAN To: Russell King - ARM Linux admin Cc: Will Deacon , Anders Roxell , Catalin Marinas , John Garry , Linux Kernel Mailing List , Olof Johansson , Linux ARM , Chunrong Guo Content-Type: text/plain; charset="UTF-8" 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:33 PM Russell King - ARM Linux admin wrote: > > On Fri, Oct 11, 2019 at 11:27:48AM +0100, Will Deacon wrote: > > 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. So far, all 'allmodconfig' builds are big-endian and have been that way since the option was first added, so build coverage is something we have plenty of. It's also covered by randconfig testing, regardless of the default endianess. > 32-bit ARM experience is that telco class users really like big > endian. Right, basically anyone with a large code base migrated over from a big-endian MIPS or PowerPC legacy that found it cheaper to change the rest of the world than to fix their own code. The only other example of this I heard of besides networking was from banking, where they looked at moving from AIX on PowerPC to Linux on something cheaper, but IIRC they ended up going with LE after all because of the lack of distro support. Whether any users remain in use at this time, I don't know. As most of the larger machines require UEFI to boot, they are currently limited to little-endian for all practical purposes, and smaller embedded machines tend to have a smaller amount of legacy code and are easier to move over to little-endian. One recent reference I could find is specifically for the NXP Layerscape LS1043 in https://www.nxp.com/docs/en/application-note/AN5129.pdf which apparently has some support in their codewarrior tools for big-endian binaries. There are also some recent openembedded bugfixes for big-endian arm64 from NXP: https://www.mail-archive.com/meta-freescale@yoctoproject.org/msg22378.html Adding Chungrong Guo to Cc for additional insight on whether they expect any notable big-endian users in the future. Arnd