Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3217036ybl; Sun, 26 Jan 2020 22:54:48 -0800 (PST) X-Google-Smtp-Source: APXvYqyVW2E/QBkD4zif/c4LDrhR7apolsCnsH8olbz7fSN1LB8ZLQqhBf0VR9Bz4hGgF50P1dCB X-Received: by 2002:a05:6830:1d5b:: with SMTP id p27mr10767902oth.263.1580108088417; Sun, 26 Jan 2020 22:54:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580108088; cv=none; d=google.com; s=arc-20160816; b=wt0kaoqVUgduu3qwWj+0QKmWb74PEDehwdK+78Gf6g/p/j8/93WfR3iTHgPfHGuqp+ tl5AE6HRfn/hobC2B9wgjoq240oTyl3SFBgLdn8BHxdNYfaKvFWKEgyAbhtVSjytYHBA 4fjoqjfUbm43YoC0Eju1iG8mN8eUGtZ1F1Jal/S32bq7x5lVYUH4DdbYUBxh2qlbwEi8 zhobxVIdFlUJ35K0g6lo3oDW7ntSqrci543Mgcb2w4aJ+YJpMLKvdpiX5bunFJgtFCZv abQ0YCLvl/V4VIxlENclw/4Wxa6+GzK/7rwimpweCObybf8Z0VkXtyZ7YXvAcCDMlrEX OwFg== 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; bh=qyvwsNdaDE1BA4H7n0vsIeAkMmQUn3RuW/I7/GLMhvM=; b=Gnm1iH1LQhnAQcyltOMH3q+S2mfaxGMUyxWbQtDoo9XmCiCzGVLS9Q2GLRi/Bs1pUl SoM1s71yKS0pSpzQW1D0veVQ+RDfyW+rcaAjTNaDzYNC4E+0Zeva8mZK426F5orLb3dZ vjH4sR6pZzgxqskwsEtnHdJZfZ6AsOYdWquLvz9J9vq3tQ7htzfbP/48PVkW6jaE/mYe Z3jK0LKDFIWxpDcT92q2TCejumfv0rP7MNTYkIEwlR11oBymyqJMbRb4Qkr3vXZlCPRl hAFzPexwa9iFdjet/giuCsH4pBZK7RuzzxIOuVCkjuMiTJjT3NF2LehnEEP+SNTPWVY6 hTNQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11si2220241otp.176.2020.01.26.22.54.33; Sun, 26 Jan 2020 22:54:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726267AbgA0Gxd (ORCPT + 99 others); Mon, 27 Jan 2020 01:53:33 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:37819 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725763AbgA0Gxc (ORCPT ); Mon, 27 Jan 2020 01:53:32 -0500 Received: from mail-qk1-f175.google.com ([209.85.222.175]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPSA (Nemesis) id 1M734j-1iwoQH2tgd-008b7I for ; Mon, 27 Jan 2020 07:53:30 +0100 Received: by mail-qk1-f175.google.com with SMTP id x1so8594906qkl.12 for ; Sun, 26 Jan 2020 22:53:30 -0800 (PST) X-Gm-Message-State: APjAAAXy96mSdVpWCdIm8WvfqIZ5w7D9MVeOWWRRLy5cwLrbt+Txmn+Y 77KP0WAksP+QaqxyhA7titj+XSFYI8PGzRzrMwA= X-Received: by 2002:a05:620a:218d:: with SMTP id g13mr14318824qka.286.1580108009529; Sun, 26 Jan 2020 22:53:29 -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: Arnd Bergmann Date: Mon, 27 Jan 2020 07:53:13 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] soc: imx: Makefile: only build soc-imx8 when CONFIG_ARM64 To: Peng Fan Cc: Adam Ford , 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" X-Provags-ID: V03:K1:XOaoleA782ZySXFisxo7uZHoE0FFNAaE4iSPl0FjUDq109Kek5H FbeQEwcp1g9xETqjPPCakDOKM4MwQmsAIlGJzbPhal9nsu4VMG4TP/4zwZghEpSO+DQGDE0 4suxstFm3lbBkjcOP06k7jrMyq6rStpACBoKXLuVxC6Nqs366aX+w/4zgLLzPiSZyGaMQYh vNN2ig0OmEUABtBJFOB9w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:vtiAGHAX2bM=:zznmMc9wNO0YeQeLipyuGP ABbTXZlYqGkFBiA4RsefcyvV5GwIlhNnhwf2G6jFU04QzzGKbkqndfoB1fP88xlZrdzjI8Dpt LfF42Tc49xFJZTFKv/mwHdLsqPplm2IUe/9poXH2K8ZG1NN3dZ3mde2x1l4WtyWgrHnp2w+Dw AOG7PMk4AoNFlR+NMDy4hCXlnCAc5lUnWttLil770+TOJDsQ9IM+2OxLBUrMIvpB8pYgprweT CgWLI3CIzCJQjmJihuAg92MLAssqsMd9hRHl9FfqagDmu/3mlSign5hLbjA58mQuhkDxA0gM/ VkyYOkxiXvvZFEzUE0KYad8RYh1rAj0KWkkL0d6x3Wdj1O49EcCIYBvVcDXXI0EqW1JMaPAJE 2Nh8xNZ2smiO33UhOuHOxgyPFgmmBCvM8h68bFq2Cj+sEwtlDPSVfAinMlc7ZQmBm0pOMwoDs fbI01t1dsOXXCZK8upt5tMibJfCDym4rHynWyQvQ7hCYB/60p5OlB6MnmszhfSOuApHxAEytj f8bQxBZyx3B4ap1aV5UiU7/Kls/9hmlZ9AABTkXsO6/VVqZFA+uiLEwbJsS+PXr0mNs/1xZ/V z7ZgBteVP1btJ4T9tEkFBlomfvrnfKwNqzTr16GRGrc8P783yW3cy89xwhItCMU+a2jK/jbAE lCdGTo8IslePBMm2cHlrKa6jsxgOZLNltXpXk8ofqDlTV8UXRp/eh0RtteMbJRrihT1daE6or 5vlfnFV/8BJcGuXnAfkCX0ERobkBzDjXEsYXOtv5ZqNP/tthwjb5QxRMFTc3SDbcRBes/QJsh oNgXrSCZp8rb6qs7PSp8vZWaTCglOYfrPbqRqfV64oWI5U/ZUc= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 27, 2020 at 6:05 AM Peng Fan wrote: > > Subject: Re: [PATCH] soc: imx: Makefile: only build soc-imx8 when > > 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? > > We did a porting for one customer, but code is not public available. > > First let uboot switch to AARCH32 mode when booting Linux, this is already > supported by uboot mailine. > > Second, create a mach-imx8m.c under arch/arm/mach-imx to handle i.MX8M > just like other i.mx arm32 socs. This is not preferred by Linux community. > > 3rd, build i.MX8M drivers when using imx_v7_defconfig( or imx_v6_v7_defconfig > in upstream) I think the third part is something we can clearly do once it actually boots. Can you post the patch for the second part for reference? In theory nothing should be necessary there, so I wonder what I'm missing (as we need no code for arch/arm64) and what we can do differently to make it work out of the box. Is the problem that the SMP bringup using PSCI for arm64 doesn't work with the 32-bit kernel for some reason? Arnd