From patchwork Wed Nov 13 09:26:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 179267 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9332836ilf; Wed, 13 Nov 2019 01:27:14 -0800 (PST) X-Google-Smtp-Source: APXvYqztiyT6T9fyMyXrELnnOunBGzovm8PInFw8vuxC/3td4jR06y/eTpBdRaD2XbAxCnQNr8mf X-Received: by 2002:aa7:d908:: with SMTP id a8mr2347830edr.173.1573637234082; Wed, 13 Nov 2019 01:27:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573637234; cv=none; d=google.com; s=arc-20160816; b=W3MjuopHJEpbTu3BbQ4KjiLVtGC+PT/lp4lQltmObG9Imx9e223jyNsugo/XPo/9Y9 QczSOa8+XNCEM555IsySwBbclFF5k4s4Kcg8YhO5Z6YcMP/WJzSGiidRqsa970MU+Eu9 H7kyscBaTgjKfCDuoJw8+Vre2HOqmacg953XhGlI4gaNXE7xEiGgPR0/1uHSrMfG59Ow SPok6jVS6Up49of35qIat433FGc/Nfo6Pra89zwKL4W57yZHrUQOm2EDIlCeRCr/owUB 9na3uolK1dFXogEMXyDUXteR6/Cdajpm6vhDiq1lEC7Lm/Qihtf6wSdIIDOToeFbBEHE gJnw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=98bbtxrlztsaSeBuCTpYhW6G78UV8jrpbvcn8tDSvYA=; b=cp+BbAG0MumCX5pf8WKHokTTiJXtErL3nCyggBANki+6NBkY6JQYYbhJaUk4IqBfpR Z4hfsN+HLIAcM3KIysHUBN9I2N4c/1rf8hqeeUSDeMU6yWN5FG9ykljy1tORZs13NsDj VRq3hJugFTEqoWyWpB6S7y9eK05nkop1ZpHXxPd+4EBboG6CBD09OF8gdVIqXLoRFaZs qzrGe8jaW6me6zx+GZ6tyPXVVHCIdsku5gLcwjaGFkq+VJeliBCYajfDW4WK16f4VKYK D/4Phe0aahbQmwakvYoiZuSl9hg4UhShU/zHIMhBkfYvXHd7ctQP5NFondOO5nh65won l8zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=plLBWJp5; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si793093ejc.76.2019.11.13.01.27.13; Wed, 13 Nov 2019 01:27:14 -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=@linaro.org header.s=google header.b=plLBWJp5; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727221AbfKMJ1M (ORCPT + 26 others); Wed, 13 Nov 2019 04:27:12 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:46665 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726613AbfKMJ1M (ORCPT ); Wed, 13 Nov 2019 04:27:12 -0500 Received: by mail-lf1-f67.google.com with SMTP id o65so1317545lff.13 for ; Wed, 13 Nov 2019 01:27:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=98bbtxrlztsaSeBuCTpYhW6G78UV8jrpbvcn8tDSvYA=; b=plLBWJp5AQE02m++GEPUI0YTKIjDTL5RtW1BLYg8HBlGB8epyTQPSL35OrV2QCJHHz dlh8C9hIfz33ZhJWJLYHrWoZiPRvepsZ3cv2lPLq5wjba22yE8DV1VnHFromxUlRPeZH UEsL4I2pC9Sq96gxTC6aqd10X/oLlypGSlBnhPabamclUTEQJ62S8IcGryqc2F2yT66n XE3GnKeur9IvVOz3uhy2V0iaTlQvFmH9dtuu7wD3DonSbgVgYNY2WAFAkE5VPIQxZjGD 6yG3z6iDpGRY87NUzmCHIuwQt4l2dSKLgTgRek5hpzhOVqrlq0Ltx2/WOzTZzMMGGFIf 6m+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=98bbtxrlztsaSeBuCTpYhW6G78UV8jrpbvcn8tDSvYA=; b=TRQkIQzacYYPdr7ZsS7ComXh/DxcUZ2jkRL1hhpELigJHLLfPs4FrHFLOyYQK+twps nZLNnU+AozEu5uCRuUgieyA2wr0Ehbeya8BoguBpRcgmzM67bwn++xbaMKiD7AAjnglo dYzsC/GdqlyLbUtO+b1k4T3rnsaX5gJLFs9YoJNAIhDVn4oYAQUuBlm1RBysO4JxtP+p wVy3zOrxvnpCcXhoiI0mCK1Jxwfjq+Z+U0SiZFpz66F93Yn6WJa8LZMmE0Fu+uDKGjru T/zr5q1EEJuhlSOi+Wu7w0TmIYUgrkC/uYEtQ5mE6+aijpCuNCdn4Q8zSfYREzMBajZT HbHg== X-Gm-Message-State: APjAAAVltv5RtiWUDoP9QfUTuDm/KOvW4FPxrlwFQe3SeRiSbReGz+Ag VO3OFmd74fkrMg1fy4xWR2IDBw== X-Received: by 2002:a05:6512:50f:: with SMTP id o15mr1953084lfb.168.1573637229877; Wed, 13 Nov 2019 01:27:09 -0800 (PST) Received: from localhost (c-413e70d5.07-21-73746f28.bbcust.telenor.se. [213.112.62.65]) by smtp.gmail.com with ESMTPSA id x18sm595872ljc.39.2019.11.13.01.27.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2019 01:27:09 -0800 (PST) From: Anders Roxell To: catalin.marinas@arm.com Cc: will@kernel.org, john.garry@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH v2] arm64: Kconfig: add a choice for endianness Date: Wed, 13 Nov 2019 10:26:52 +0100 Message-Id: <20191113092652.28201-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.20.1 Acked-by: Will Deacon 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. + +endchoice config SCHED_MC bool "Multi-core scheduler support"