Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp968294ybl; Fri, 24 Jan 2020 12:54:24 -0800 (PST) X-Google-Smtp-Source: APXvYqynGBrUpANpASqO5YjmqoqjxEZldyKf7+7k4TIKjbb35/g402BC/cpXHJbjMyvSs3cX+Hke X-Received: by 2002:a05:6830:1e16:: with SMTP id s22mr4120837otr.340.1579899264039; Fri, 24 Jan 2020 12:54:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579899264; cv=none; d=google.com; s=arc-20160816; b=xPM4bdxtmyXBdSDrdc5+oKUZh2lozGfEcCgpAKzza4RNpOXfwdV/teTkqcXJATrYMu sbvFBEH3mxXpx+5Sras/bfgf8uzKpPgouysUAR71AgJeT0KCMniVtCyKaj4dUb0GNp53 C4oqAN1fhCLNBmDCcZQcfnCPnQiWM834CS0ybtSHTxfgSZuQNTAXDtFz0wrpio6WTI/D LaD/AEHvi/P/PduWHY+icAeemL9YTcJxDAYY7Vqr/Zm9rVs4HGjKqLLIP2oZ6QY4tiiV fL5hr0qnzGLDpt2FaSYWLby6/+NOGf1SASIc0y9G0GB26mdFaNh/gut50UTyustNbpfL NdqA== 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; bh=FW6kTXsb+AMUpnGd0Np6dLhfVf8Q9ZDqnV2qmDoDlDE=; b=ZoMr3oWNbJiAYDmBGy6wqv1N8z66ix/0bCSjRjA1gV71rhcIlBG89Dquap3eF8r/Vf 8UNfUEdSNbz3/PZ9q9hYttVT+X/1prrAaMKtSnLvdNQGsYG3WU4A+yQwYZqcoh6bYTxy tCeRacgu/DWpNBUUXtiD1P+gQiThQS30jkHNB3kJD6jhrsAeasDxUCHwfc4tLgmVycqI 24r0kCwCCLVfYQoBIv+vU0isisEhvpRa00hvK6nTCs9Ux4fdRnDICp/oie+1NGzJaCI+ 4FjYWHcJ4LO4nztX7DxpidA9u/KBaiFONBPK4qgKa0wiI1LNOlO+Nj+Sc4x9fOEPw6Q5 MiYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H3TQZGZc; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p16si3229128oto.287.2020.01.24.12.54.12; Fri, 24 Jan 2020 12:54:24 -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=@gmail.com header.s=20161025 header.b=H3TQZGZc; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389308AbgAXPyY (ORCPT + 99 others); Fri, 24 Jan 2020 10:54:24 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:36805 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389172AbgAXPyY (ORCPT ); Fri, 24 Jan 2020 10:54:24 -0500 Received: by mail-ed1-f68.google.com with SMTP id j17so2815695edp.3 for ; Fri, 24 Jan 2020 07:54:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FW6kTXsb+AMUpnGd0Np6dLhfVf8Q9ZDqnV2qmDoDlDE=; b=H3TQZGZcdRTBERaePDaluLz/yGmA6niYVpD9lpB8ecfDyAdIUuUiXSQd8yI36Vidj1 D0WaYtkXfCnSNAgPZZo/bkaXJtGh5R66E29iCC/T9ISpn8d6LL+sSrg1G8jmiF6e0CCs SQ5pC3x8QZIbzz3MIMCUDCLrZpRXpaDSS8c26ozw1z/VHREqbvFTaGZXsaQoGOcHw6/4 o8Fn3TOA51JFwxAtkyn8IeK0zAAzVkg0XDHD/q+NdEjSjtSmZvlE1Yhy5ZOyPde3InKJ sZG7sTZ+CHo/7pPyy99yzenIhi+4RDqIgl3PnNxoCEQgNFlHXISYDpdHk3cM1yhijutV tI8w== 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=FW6kTXsb+AMUpnGd0Np6dLhfVf8Q9ZDqnV2qmDoDlDE=; b=Lf45J2S0TC7yPPp0L24YBY3EImBJxFonB4gArgPtrES8nRU0Jk/w+aQvtIuuEGSRzy ASWnVLoybMLlGcZkLj3dcJczuI9BQdj7hUBbpCi3FWito8/a7FFnCCuuOvdosF+DtM54 fnAJtpFraD3LHHCgL8f9NOcJdOSWV6zYxKKBfkyr+2qpOoDzHwghPjsvqR5cGDxA8GEg zE6RCNv/nlNqMmSKP6+pPw7V9nbRorivQ+CvzRBChqwuD6uFQ9U4P5xpyyw+aoVtjcRK JgUxxLb2GbSrr3Z2mxp41TQueMyqdW744Z12IIs9aKzBCes79X/mGkj2QeDj/y1WcpOU 1I/w== X-Gm-Message-State: APjAAAV+qNOOyGBj/1E7Dr4/2Kq2PrZpgLFVnMTMSy0aXuOdbSEmtSRl CseQIjA2OOJRc1eUNdLKD9yuCOE90rVYpFyTSs8= X-Received: by 2002:a05:6402:799:: with SMTP id d25mr3203640edy.221.1579881261869; Fri, 24 Jan 2020 07:54:21 -0800 (PST) MIME-Version: 1.0 References: <1578989048-10162-1-git-send-email-peng.fan@nxp.com> <20200114081751.3wjbbnaem7lbnn3v@pengutronix.de> In-Reply-To: From: Adam Ford Date: Fri, 24 Jan 2020 09:54:10 -0600 Message-ID: Subject: Re: [PATCH] soc: imx: Makefile: only build soc-imx8 when CONFIG_ARM64 To: Arnd Bergmann Cc: Peng Fan , Abel Vesa , Anson Huang , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "linux-kernel@vger.kernel.org" , dl-linux-imx , "kernel@pengutronix.de" , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Leonard Crestez , "festevam@gmail.com" , "linux-arm-kernel@lists.infradead.org" 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 Wed, Jan 15, 2020 at 4:39 AM Arnd Bergmann wrote: > > On Wed, Jan 15, 2020 at 3:38 AM Peng Fan wrote: > > > Subject: Re: [PATCH] soc: imx: Makefile: only build soc-imx8 when CONFIG_ARM64 > > > On Tue, Jan 14, 2020 at 9:32 AM Peng Fan wrote: > > > > > Subject: Re: [PATCH] soc: imx: Makefile: only build soc-imx8 when > > > > > > > > There is no SOC_IMX8 currently. Need to introduce one in > > > > arch/arm64/Kconfig.platforms. But I not see other vendors introduce > > > > options like SOC_XX. Is this the right direction to add one in > > > > Kconfig.platforms? > > > > > > I think it would be more consistent with the other platforms to have a symbol > > > in drivers/soc/imx/Kconfig to control whether we build that driver. > > > > Ok, I'll add Kconfig entry in drivers/soc/imx/Kconfig for various i.MX SoCs. > > I was thinking of one entry for this driver. > > > > For some SoCs, we also allow running 32-bit kernels, so it would not be wrong > > > to allow enabling the symbol on 32-bit ARM as well, but this is probably > > > something where you want to consider the bigger picture to see if you want > > > to support that configuration or not. > > > > Does the current upstream kernel support 32bit kernels on ARM64 platforms > > without vendor specific stuff. I recalled that several years ago, NXP people > > tried to upstream 32bit kernel support, but rejected by you. > > We have at least some Broadcom SoCs that are supported this way. As > long as you can use the same dtb file on a regular multi_v7_defconfig > I see no problem with doing this. > > What I would like to avoid though are ports that require extra code in > arch/arm/mach-* that is not needed for the 64-bit target, or ports to > 64-bit hardware that only run in 32-bit mode. > > > So Is there any plan to support 32bit kernel on AARCH64 in upstream > > kernel? > > Or any suggestions? > > I don't think there should be 32-bit kernel running in aarch64-ilp32 > mode. This was discussed way back when the aarch64-ilp32 user > space patches first appeared. > > Generally speaking you are usually better off running an aarch64 > kernel using aarch32 user space, but there may be reasons for > running an ARMv8 aarch32 kernel on the same hardware and there > is no technical reason why this shouldn't work for a clean port. > > We never really supported ARMv8-aarch32 in arch/arm/ as a > separate target, but usually building an ARMv7 kernel is close > enough to ARMv8-aarch32 that things just work. If you would > like to help out making ARMv7VE and ARMv8-aarch64 proper > targets for arch/arm/, let me know and we can discuss what parts > are missing. I would be interested in learning more about running the i.MX8M in 32-bit mode. I'm looking at running Linux on a device with < 1GB of RAM, so having 32-bit pointers and instructions would be preferred. My preference would be to run as ARMv7 for migration purposes, but I'm open to alternatives. Does anyone have any suggestions on where I might find some generic stuff for either iMX8M or generic ARMv8 docs for doing something like this? adam > > Arnd > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel