Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1675259ybc; Wed, 13 Nov 2019 02:34:59 -0800 (PST) X-Google-Smtp-Source: APXvYqw4DJHpGwNMzsqe2Bs8GwGt3Th2D7n0Iec4aP10ly6W0RAU3ZFvxOlDXWmkPEYOtoXW32Q+ X-Received: by 2002:a17:906:2552:: with SMTP id j18mr2011606ejb.244.1573641299446; Wed, 13 Nov 2019 02:34:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573641299; cv=none; d=google.com; s=arc-20160816; b=S+HTKkkTTdTnEhmz5znJKvVm8Mjb5pLKpFkey3enu6H+E7bUxn01tQDygv7doYMRnd nS8D/evPe8HxsArw5mCGdpCmn8PvUiltHB1M4Bh/wOIBHm0piKKT7UIuU4IiGsYOvUF1 bqOguN0KA2Y2ePF7XbEEC2KlzvWN6eeOrPigZ3lvi2XOYq5pjZbsMobVUyiv51Sgn56u W+WQyUNjZBo0yz2YxTSYLlWHFk7TjQk/InObjoThEqsQGDJBh+LGsPZt2GyisuzpQYDG 4DD2xtvBJ6H9X4cUT3cJgzHPNh0NDAiG3bw1H/k1tYgcYY7voeS9oB+yydNfHmdhQ6FH 3H1A== 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=0mDTPDmxBmRUbX2NC2KE3/x5JENPpTMJ6oFdLS8HtsA=; b=d8ZYkXxO9MeIaD2XYMueZTHacqKqDxdm9uQuN/6Ycwg9un52F7OVIyD0NP1EdBta00 pv+wUVAJOc69z+ssaIN+aB9Cwyf2la4y0tAnvhypU8SUoFUg+tiqV5a1Mtu5yCgiaX8G O7zjkP05NbpapXgqS9dzfqygebqVvlrXjvM+I9sWUFYTQ57UX07LfEaQfNTsoPJVpbPh iO3eCbd66Y7s0g/oNuIgTeemiyYnqQIRwi2AZ8yM4zxuzk8aUOu4cLKDvIOTTleUP4G/ 4yc9Ma52WLw4vMur2CpcSgJb+IeyvhvBqiJXJ6g55ggxfl4YiCEhPF+9hFc889/seT65 jJQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Y+jHpRMn; 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 qw26si852221ejb.103.2019.11.13.02.34.34; Wed, 13 Nov 2019 02:34:59 -0800 (PST) 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=Y+jHpRMn; 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 S1727113AbfKMKdl (ORCPT + 99 others); Wed, 13 Nov 2019 05:33:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:33872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbfKMKdk (ORCPT ); Wed, 13 Nov 2019 05:33:40 -0500 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 62CF1222CD; Wed, 13 Nov 2019 10:33:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573641220; bh=JxJFayWcgdtF1EVaUH4pD+skHU9gsn9dqUwJZvSS4n8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y+jHpRMnT9LNK+fA4mE2FP5qjkZLBmgSxP4z2FJZD2bVEfioD1Hvefspeckc0F8mK av2ZIlqtGw9gBFlGaDXLZhCww7RFAmnr7bvyf10+OSFODKAHTf5I1L9LFNcyitvYWj 1o+E6WO8ej9mIpRSXVZxry8sLC/0+CvM9PfQ37SA= Date: Wed, 13 Nov 2019 10:33:36 +0000 From: Will Deacon To: Anders Roxell Cc: catalin.marinas@arm.com, john.garry@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm64: Kconfig: add a choice for endianness Message-ID: <20191113103335.GB25900@willie-the-truck> References: <20191113092652.28201-1-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191113092652.28201-1-anders.roxell@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 13, 2019 at 10:26:52AM +0100, Anders Roxell wrote: > When building allmodconfig KCONFIG_ALLCONFIG=$(pwd)/arch/arm64/configs/defconfig > CONFIG_CPU_BIG_ENDIAN gets enabled. Which tends not to be what most > people want. Another concern that has come up is that ACPI isn't built > for an allmodconfig kernel today since that also depends on !CPU_BIG_ENDIAN. > > Rework so that we introduce a 'choice' and default the choice to > CPU_LITTLE_ENDIAN. That means that when we build an allmodconfig kernel > it will default to CPU_LITTLE_ENDIAN that most people tends to want. > > Reviewed-by: John Garry > Signed-off-by: Anders Roxell > --- > arch/arm64/Kconfig | 18 +++++++++++++++++- > 1 file changed, 17 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 64764ca92fca..c599b6b288be 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -877,10 +877,26 @@ config ARM64_PA_BITS > default 48 if ARM64_PA_BITS_48 > default 52 if ARM64_PA_BITS_52 > > +choice > + prompt "Endianness" > + default CPU_LITTLE_ENDIAN > + help > + Select the endianness of data accesses performed by the CPU. Userspace > + applications will need to be compiled and linked for the endianness > + that is selected here. > + > config CPU_BIG_ENDIAN > bool "Build big-endian kernel" > help > - Say Y if you plan on running a kernel in big-endian mode. > + Say Y if you plan on running a kernel with a big-endian userspace. > + > +config CPU_LITTLE_ENDIAN > + bool "Build little-endian kernel" > + help > + Say Y if you plan on running a kernel with a little-endian userspace. > + This is usually the case for distributions targetting arm64. Bah, my typo here: targetting -> targeting Catalin, could you take this with the above fixed, please? Acked-by: Will Deacon Will