From patchwork Wed Sep 26 13:51:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jason A. Donenfeld" X-Patchwork-Id: 147600 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp752099lji; Wed, 26 Sep 2018 06:51:23 -0700 (PDT) X-Google-Smtp-Source: ACcGV610UKJU9xoyLsoB27daom5Hugt6ArAGraAw04bDROXHerHWJ77/NDkWgW2YD6OrnMXEFX/h X-Received: by 2002:a17:902:368:: with SMTP id 95-v6mr6172292pld.305.1537969883818; Wed, 26 Sep 2018 06:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537969883; cv=none; d=google.com; s=arc-20160816; b=WHH4YMbNV2ah9Q9djk2U/XzUOjj8ldhy3k2Is6mfk8qb1ZLiOck3IUhdnUslLafwLG j+bmr8CdKpw/qFMexTXW8wl5mh/5qAlsS3sL57w0OrJl/K0caZzG8wUlfSLTGvk7rJC5 3JzEE/bfvJ3IzJvD06JgTNY4TW9PtwlC5Y+ShLdK0P3DONIOiFvYa2MfMqdzL9u7Ckj7 0A3UKroP038Dxak7nsKgifVjnr1eo+8xMLdKmXsIO8zlxso/N2aAeOw6M9WXQEeTkxrj OMqvBgzutKswBaNbMm+KaxpFBz5mMSu7xMw40poFQXSIjHHK2pubF7Y49hKn5nps1+Lr kUQA== 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=XgLGnx08Ttw/ZQl7d7Qng39qtYq+UcoRXtT0+25FW2Q=; b=tCb+L/4Rvta2ylXFn5eheZIV5K7To9UPBBB7n9yiIH6h1UYSoEvTMPh7KOsMLKz+X6 cphxKc4TceDupXs9i6SFhvDcidogIQC5z7bgmqqbHSDyxE5C71lYH5TOI/iaCLwm/XIL tyuWn3+SCghOgNTGVExAI/o48l30lf+dbO5lYa9y5Ax0EtD8KCUzqrzcFB2ilC5xTNDo K/8h+tmdTnWqtCg8m4ucpcCWGYlBKexaCo0FHF/R7TaVbu0D98x7KwhYhTu2kqfwJnGi E92xZFYRf5iEUJoVRdsIEfsJgS2ewO0JFmmIjH5uKH5GNkxep3Ci2OBRflClgi5UfdQn cZRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=z6FiVD5t; 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=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t23-v6si3433917pgu.285.2018.09.26.06.51.23; Wed, 26 Sep 2018 06:51:23 -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=@zx2c4.com header.s=mail header.b=z6FiVD5t; 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=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727334AbeIZUEY (ORCPT + 32 others); Wed, 26 Sep 2018 16:04:24 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:58749 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727043AbeIZUEY (ORCPT ); Wed, 26 Sep 2018 16:04:24 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id f6686659; Wed, 26 Sep 2018 13:32:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=mail; bh=uKpKMy5FfMSy1J34424TG8ucA80=; b=z6FiVD5thW0VNrx/kyYR QLQsWB4x2oybfDjDyxlpFL+hH6ClSsiZgDqyiOgXB0GqeA59Q1dJGLVzmC5ujypo D1S9FO+z4gSWjXD2qH9UDT7Arg42tYqOj72Etig0wXB3r1CHISEe7WpsbIY4RiFg JJ6icqaeG0ox56saAswgqZ7SpqN/45rXPgaTiExiDzOjmCxa/kJ3iuXCBPEKZLXn fjGQooBK7nr4nT85X9UB1JBZ6CoSGETcoQZYu/FXBEoXAGBqXMCzj6Fa5hChJcOs 8mLPyhE8nlMviS4NtSXUSgkOIfagTO7b/1E+6APdMNxzdh5NnDi3yZnfRkgJFJuU 1Q== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 7110e961 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 26 Sep 2018 13:32:45 +0000 (UTC) From: "Jason A. Donenfeld" To: linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: "Jason A. Donenfeld" Subject: [PATCH] arm: support big-endian for the virt architecture Date: Wed, 26 Sep 2018 15:51:10 +0200 Message-Id: <20180926135110.13061-1-Jason@zx2c4.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This architecture, used for running in QEMU, runs just fine when compiled in big-endian mode. So enable it. This is enabled in exactly the same way that it is for other platforms (such as vexpress) that also support big-endian mode in QEMU successfully. Signed-off-by: Jason A. Donenfeld --- Personally, I'm using this as part of WireGuard's CI, and patching kernels to include this is a bit annoying. Any chance this can get into 4.19? arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.19.0 diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e8cd55a5b04c..b8c6062ca0c1 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -701,6 +701,7 @@ config ARCH_VIRT select ARM_GIC_V3_ITS if PCI select ARM_PSCI select HAVE_ARM_ARCH_TIMER + select ARCH_SUPPORTS_BIG_ENDIAN # # This is sorted alphabetically by mach-* pathname. However, plat-*