Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1578295ybh; Fri, 13 Mar 2020 03:50:18 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuJyy2L8w5RzKQSw3b/aYz6gHX7MKooU8qf/1Z7elYHjrOhC1djQ8723Ho8YezRJ46b5nhT X-Received: by 2002:a9d:b8f:: with SMTP id 15mr10265730oth.256.1584096618534; Fri, 13 Mar 2020 03:50:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584096618; cv=none; d=google.com; s=arc-20160816; b=lL8Kaj5j5bNCgJupa2lcvqoy3V1wj3ftq2z2y/wg1pr6msBkxXCu3j4wHw/NT28qEI LpN31zXVKNekEMDV24OnbrMoIQVjTcSBguwjZ4KKxPX7hhavAtNJlIXEfgokmP5oxwIl m4p5yeDKCZW+IMbmSN5iI5vS84k4DssoQHV5D3fQf6ulHF5PFZGghHEYEJZmmlUXLwBE 9Tv1cZh34CNehMQ3vnn7vruU4xvsj/0PVUEtY0QROAr2CsnnwF+3C+JMfr3bTqphGxd1 Eyqj16vnpFDFuTfy+xXnv5/PINcYKXo3aWFte8c1kcIJ6jlHMiF+hBrKjaZHmXC6ueUG 6V3A== 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:dkim-signature:dkim-filter; bh=JPUSYJFjWhyniU1qgq95NHuOfe3MBhxe5TPFalXRYjg=; b=QdQPlLRvPDtK9gCTlaiYnKrvuQZMd+V50m8zidzKK0CXIltoqoImAL1YbQAtuiWpAN w2aHW1jf6kveVyrwQiMnGpVLFA2RcE0ahOmDPMaE8tXeCvbbnu94UpCZdz6gUNdeD7J6 Ex8LB6JTl7BRf/EEaPI8pzucaV50vAomoqcPXtO0CXFrDw3EECdVbzixK+tWBWwS0htA JHP1OFE5IAs8WtHvNKqFUrxUB/tvcxqAyFLA0kMhBjsSvFX3fYJLyeze6NUR3cz503pY e+vyrDaGAbVGRNnUW3Qwhg1P7uSzH8F1WxZMMY+gU9SodGIZutf24sI06HwQtEgrcG7O EXEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=QteD1KVq; 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=fail (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 p25si4384620oto.168.2020.03.13.03.50.06; Fri, 13 Mar 2020 03:50:18 -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=@nifty.com header.s=dec2015msa header.b=QteD1KVq; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726480AbgCMKs1 (ORCPT + 99 others); Fri, 13 Mar 2020 06:48:27 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:49668 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726364AbgCMKs1 (ORCPT ); Fri, 13 Mar 2020 06:48:27 -0400 Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 02DAmKLN010761; Fri, 13 Mar 2020 19:48:21 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 02DAmKLN010761 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1584096501; bh=JPUSYJFjWhyniU1qgq95NHuOfe3MBhxe5TPFalXRYjg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QteD1KVq/gcwv2TvVNwXkdXsbfX1rI+maoy/IhK032uvjS2VCV/sqcFWmNPn9IAUR pIh/actlxHN76YvlD4YnzNstDgF5P3qe+VvqBV+uQzzjV+tYPxFsjxd4Z45LvsNEe0 ZpBdmNhNKDTtNw+ZKVsWfov8n3LHeYR9tBmVT0w9TSnSZa9LOecurdv9n0kBACOyEB DP78bH/c6GqqBY22r3eP5XdImTul+lKHvP7PH1vVqA6HJf6+qjn1Vw2eBgf7Mky+Nf fY9dSVIgvSDRhf8vjrW5vEWmxcHNlbghcllEEDANydiXDjFGITqvqUwZf+t2fMbyO4 EiPj6f2aT8dAw== X-Nifty-SrcIP: [209.85.217.51] Received: by mail-vs1-f51.google.com with SMTP id c18so5765804vsq.7; Fri, 13 Mar 2020 03:48:21 -0700 (PDT) X-Gm-Message-State: ANhLgQ1GBhK/hYn0pMR3CFiYW2nO3te6l71evjyIEjSbDyhQINIW9CZ4 hswPnbRH2qqN1fOjIG2CqDKFkj+gbNZ4C0Yb3hg= X-Received: by 2002:a67:3201:: with SMTP id y1mr9085168vsy.54.1584096500083; Fri, 13 Mar 2020 03:48:20 -0700 (PDT) MIME-Version: 1.0 References: <1584070314-26495-1-git-send-email-peng.fan@nxp.com> In-Reply-To: From: Masahiro Yamada Date: Fri, 13 Mar 2020 19:47:44 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ARM: dts: Makefile: build arm64 device tree To: Arnd Bergmann Cc: Peng Fan , Rob Herring , Mark Rutland , Shawn Guo , DTML , "linux-kernel@vger.kernel.org" , NXP Linux Team 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, Mar 13, 2020 at 7:23 PM Arnd Bergmann wrote: > > On Fri, Mar 13, 2020 at 4:38 AM wrote: > > > > From: Peng Fan > > > > To support aarch32 mode linux on aarch64 hardware, we need > > build the device tree, so include the arm64 device tree path. > > > > Signed-off-by: Peng Fan > > --- > > There are a few other platforms with similar requirements, in > particular bcm2837, > so maybe try doing it the same way they do, see > arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts I think this was discussed over again, but it is odd to tightly couple DT and Linux arch. Maybe, a long time solution might be to create a new directory, dts/ and collect all DT stuff into it. dts//.dts Then, also move like follows: Documentation/devicetree/bindings/ -> dts/Bindings/ include/dt-bingins/ -> dts/include/dt-bindings/ > > > V1: > > This is just the device tree part. Besides this, > > I am not sure whether need to create a standalone defconfig under arm32 > > for aarch32 mode linux on aarch64 hardware, or use multi_v7_defconfig. > > multi_v7_defconfig should be ok, need to include LPAE config. > > I'd rather not have a standalone defconfig for it, given that we have a > single defconfig for all armv6/armv7/armv7hf i.mx machines. > > There was a suggestion to use a fragment for enabling an LPAE > multi_v7_defconfig recently, which I think is still under discussion but > should also help here, both with imx_v6_v7_defconfig and multi_v7_defconfig. > > Can you remind us why this platform needs LPAE? Is it only needed to > support more than 4GB of RAM, or something else on top of that? > Note that users that actually have 4GB or more on i.mx8 should > really run a 64-bit kernel anyway, even if they prefer using 32-bit user > space. > > Turning on LPAE not only disables imx3 and imx5 but also the Cortex-A9 > based imx6 variants. > > Arnd -- Best Regards Masahiro Yamada