Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp726650ybp; Fri, 11 Oct 2019 03:26:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5O4Ygzu6kysQYICUmTDqyBn7o0PVUroGZlP1+blLtOOWDJU5/6sa375uY/9mNqvBttXYD X-Received: by 2002:a17:906:1911:: with SMTP id a17mr12870420eje.14.1570789576589; Fri, 11 Oct 2019 03:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570789576; cv=none; d=google.com; s=arc-20160816; b=xcs0KPVoixuPtmDAU7I+KO0uboanhPgwy7MfMHRjP+Jm2NBE03Iq2Hi4EXgFaY+FRB g6Qa1jGVJlmCooI34PU9Q3OFe7fRGgz6UJtCPCZkMqJzv0Yz6sHaozOV2di4HmAB/Xcr uRLLefHwN01tZ5IIVxR2QJfV6vxGvU9URhQ83N3dsU6B+kGNGRrtkyiPt9yFdJ9bsi3E d69TF/gz1iowqxg166oFUYaJ8o5JWK5u3D9eol0GlJeQImu2sgIZ8FAD8zW4IRUTF7LH 04bZo2oMRJvFP7Yh7GmDCXYTvTySdTh/oWLi97gJ8eKa96lL4UB2kHWpyy1XzSjXvxcr KNlQ== 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=t/rs8Xp1pdPpdAkD8nGvsvdxNs69qOBQmbpI4r5piqI=; b=Rc9WEYI5ll9BzGZukNmyWT+CL+m8OfajiYVHn27SVgDTj9DmhPbYf3f9x4q7UlYoxZ 6tTTC3mlJAvRDbi+tUZKrfFqyYdLLWAqmvCJVUT4NM3qHVSwtl8KeJclyOxToJDa5o9m iD4tj7Pi07Bg3P8zSONHSE8GJt33R2TJe49jiCWykbE2KuusZI6VEFEkGi/iquv5h/SC x7gGJtw2WrzpEZhdV3u77pnP9J2kpW1f0CM6g+jrc04S00jR8DmSZXsW/5cFKc7wP/PQ KJsTqCA/9JRzIhcgkNyABmXYgliBRgqS15cMcBHFe2/DQtcvO6c3hvrAf4ZPRg88ai6c xQbQ== 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 j4si4973927ejv.67.2019.10.11.03.25.53; Fri, 11 Oct 2019 03:26: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 S1726869AbfJKKZq (ORCPT + 99 others); Fri, 11 Oct 2019 06:25:46 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:46425 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726290AbfJKKZq (ORCPT ); Fri, 11 Oct 2019 06:25:46 -0400 Received: by mail-qt1-f193.google.com with SMTP id u22so13059265qtq.13 for ; Fri, 11 Oct 2019 03:25:45 -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=t/rs8Xp1pdPpdAkD8nGvsvdxNs69qOBQmbpI4r5piqI=; b=SnsKyICNl0eCgp4yGtCfzH5pL1nuwlM1/FPVlqy2PhDPZ7pqun6kNv/IXnVIw5mF4u I4IKStm7bodX/K2LqoQHErHCQdv10/a5xZbQJY8RoV6y9WVdvgxhbz0gVpMWZoKN4fLf lY9j89IPWC2ZDSv/6WtKgfRI1gnb+lPcmTIr0uesRkAM1B0ivjaf+B3cgeV48N92QqQf EOqmThXDywHX9hXOnkI0PzXLSeK7WX5uZuBH+1xAzHj8eZwb8Os54KziwJshX5cfsIBy dl6xeo09iIG3ZNcpY0Bx5SU4ShV/VJiy68yOsWvjvxmpVwH//ZHLMpdVGvBDa5bnL7WY 5HOQ== X-Gm-Message-State: APjAAAVjp4OoO2mAvxfNmcl53zinBVajcnCoJWZalZku9O+joPHjyRYc qzBwsUW19e7io51uJ5JP/slrcHQRQYdaB2mbuoY= X-Received: by 2002:a0c:fde8:: with SMTP id m8mr15279083qvu.4.1570789545038; Fri, 11 Oct 2019 03:25:45 -0700 (PDT) MIME-Version: 1.0 References: <20190926193030.5843-1-anders.roxell@linaro.org> <20190926193030.5843-5-anders.roxell@linaro.org> In-Reply-To: From: Arnd Bergmann Date: Fri, 11 Oct 2019 12:25:29 +0200 Message-ID: Subject: Re: [PATCH 3/3] arm64: configs: unset CPU_BIG_ENDIAN To: John Garry Cc: Anders Roxell , Catalin Marinas , Will Deacon , Linux Kernel Mailing List , Linux ARM , Olof Johansson 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 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. Arnd