From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 440E8C7EE31 for ; Tue, 28 Feb 2023 08:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:CC:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kd6MHS4PhwvDmsWHkdW1t8AVBUanuRnx4VMBW9RKZRM=; b=pF5rYHnV6fKtmK Oz2TKqYAoInRHaGTsgpC9yXXJzEyrkVWuF5YYKVDf95RoGGQf2KBWzrnBSptoJYs4avteunp6Hp22 EOZN+1Nyom+oUNS0Fl/8wxdqES+5B1FpdxXKLZm/X6qPWUov4spLih+cONg4Ehrxh+wvW8sYpMZ+g VptgkO+uzpiqmXXuoGCHvrqjeku4+QRD/2oNB48uoJdzFcCFltuky2gQXC4H4VK7lOQhbFF6mOGV4 Li/qmRtQCS+iSDG5u04PX2ZPX8MyUHa7t0CZp4l/75/VZ+bCe8/Aa3u99b7VglB/FGsALExV5bpDA VufxTXONC/C1+keP6Gpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWvgU-00CPuC-Cm; Tue, 28 Feb 2023 08:50:06 +0000 Received: from mx.sberdevices.ru ([45.89.227.171]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWvgN-00CPrr-O1; Tue, 28 Feb 2023 08:50:02 +0000 Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 6EA825FD02; Tue, 28 Feb 2023 11:49:53 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1677574193; bh=WTDff+9gxDSiq4AqgGvZY+eqS12sSl1fFBNNtQAELTw=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=DpSD19ZrvLwLCBFstdb7Upko+A112qjp/5Fap0UQ59Akxu4XktCVHzRFV0TNEK4B0 Px59EN1UDE19F8/Bxpsvm5hNb/lpyXns5wxqP26+0ijhgV+3JIGtOGfzw9vXIGHu4/ wk0G8bLIzriC/v11/nvEv1L+ucV1F6IBqiTHF79wUiIewCQg/ql3N9074QtwHQlqiB 7AZ0tJHg/lDcr37PgJ/c0ALbWm+Gi3jNKrsTlIePYT0OyU+O41tF41s1ofhmfnE4mx JNoq9nZ6vJIgCb4HdwzGsen5DCC1EsboUJygGWAUl6gdji4quYMs+Vsb7RW4un5L5c vxR8cO/W6RsPg== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Tue, 28 Feb 2023 11:49:52 +0300 (MSK) Date: Tue, 28 Feb 2023 11:49:52 +0300 From: Dmitry Rokosov To: Arnd Bergmann CC: Neil Armstrong , Alexey Romanov , Rob Herring , , Kevin Hilman , , , Linus Walleij , , , , , Subject: Re: [PATCH v1 0/3] Meson A1 32-bit support Message-ID: <20230228084952.mgx3d3nw65yo5ebu@CAB-WSD-L081021> References: <20230222115020.55867-1-avromanov@sberdevices.ru> <8e5f9bfa-d612-cd43-d722-d04c40938c62@linaro.org> <20230227142809.kujmrraf3pcdhqyn@CAB-WSD-L081021> <20230227155100.hhl4yvkyfqfyoa6h@CAB-WSD-L081021> <33b58877-5167-c453-e686-1d10cdca66c0@linaro.org> <20230227165049.4y7jx5nnnlibe6kg@CAB-WSD-L081021> <7d29f3fd-b8c8-4687-b6a0-b8956dd39f0b@app.fastmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <7d29f3fd-b8c8-4687-b6a0-b8956dd39f0b@app.fastmail.com> User-Agent: NeoMutt/20220415 X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH01.sberdevices.ru (172.16.1.4) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2023/02/28 06:24:00 #20902806 X-KSMG-AntiVirus-Status: Clean, skipped X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230228_005000_501319_E0B4B81E X-CRM114-Status: GOOD ( 23.89 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org On Mon, Feb 27, 2023 at 07:19:38PM +0100, Arnd Bergmann wrote: > On Mon, Feb 27, 2023, at 17:50, Dmitry Rokosov wrote: > > On Mon, Feb 27, 2023 at 05:38:49PM +0100, Neil Armstrong wrote: > >> On 27/02/2023 17:15, Arnd Bergmann wrote: > >> > On Mon, Feb 27, 2023, at 16:51, Dmitry Rokosov wrote: > >> > > >> > Most of these don't apply in userspace, so the incentive to > >> > run smaller 32-bit userland on systems with less than 1GB of > >> > RAM usually outweighs the benefits of 64-bit userspace. > >> > >> Thanks for the details! > > > > Looks like Thomas has already prepared a basic patch series for buildroot, > > but maintainers declined it. > > > > https://lore.kernel.org/all/20220730194331.GA2515056@scaer/ > > I see. I know very little about buildroot, but it sounds like > there are other ways of doing the same thing here. In general, > this is pretty much an Arm specific problem. While you clearly > want compat mode for small userland on any architecture but don't > want 32-bit kernels, arm is the only one that has a different > kernel "ARCH=" value and needs a separate gcc toolchain. > > If the problem is only the toolchain, an easy way out may > be to use clang instead of gcc as your compiler, as a single > clang binary can target both 32-bit userland and 64-bit kernel > on all supported architectures. Agreed with you. We will try different local approaches to support compat build configurations. For now, prebuilt toolchain (buildroot make sdk goal) is best way from my point of view. Anyway, we will try to solve this problem in the our sandbox and stay on the 64-bit kernel. Thank you for all the helpful details you shared, appreciate it! -- Thank you, Dmitry _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic