Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74F1BC433F5 for ; Sat, 4 Sep 2021 15:17:26 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A531960F55 for ; Sat, 4 Sep 2021 15:17:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A531960F55 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C0D938321D; Sat, 4 Sep 2021 17:17:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="AOTR40Su"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AEFE9832C0; Sat, 4 Sep 2021 17:17:21 +0200 (CEST) Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 60DFA831C7 for ; Sat, 4 Sep 2021 17:17:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82c.google.com with SMTP id w17so1794159qta.9 for ; Sat, 04 Sep 2021 08:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4d/C4WBykf3gZGu+6jjVfB+Jumc9HsIwtvl5o8aKdgQ=; b=AOTR40SuGC+8VDjGU6cXix+enwak05NXhzyP70+gSsPK96vgI0tNJPSQNVtkyxXnrF yy3AcHv7PLhd7TWzUgjh8vT7NX8p+7L/YHyIS++Rzlai1F0PGbAVyJz7xQuIgzjmaCCX 0Qtw3QhEi1abDv4ZjKFhj4kO3ueVJkYj6Z6F4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=4d/C4WBykf3gZGu+6jjVfB+Jumc9HsIwtvl5o8aKdgQ=; b=pFCLcCNzDqNoY8ghOUo5Y3nUgxo+VyECuagL/CX8DMnYXtOBfl+W1Ox0jJ9RItkigy 5KQGvNhpRsU+qZA4/yf+yaMfxhn+CXSF4B/pLxckWCelxP+3ssBFrCD/lh7O7j6vj8LL 4n1nqkH4jRhaP+NSoD2o5kqnv+OIt8ITazhgASsiJOlRBey/A55BpCQyTuQf0hTgIZsX BD+67uVzS2XZd4COrlY9e/1FSp5AOTkh+p0ZpZAC1zLz5Vux7a/zKmkBczCBOuTefT2L yx98C/+3C894s1O2FMxGj1IG1p2SrIghreZlYO544dTDMRpyvepsYHFVvq9kzXxryJNK jReQ== X-Gm-Message-State: AOAM532my3UUqSq150n2cjw9mKnT0rhc3604i1fLJqm1O/XVWFXWkwuP vxFhq4bVOAaQYcbsJfnSF8csaA== X-Google-Smtp-Source: ABdhPJzmKFVwnxKae6qM61Tbb69CRIHEHMSmEpCmd5OkXNPaX1f2TaMge+UkpzSn0c5sHGDyCGsYxA== X-Received: by 2002:a05:622a:164d:: with SMTP id y13mr3881221qtj.409.1630768637246; Sat, 04 Sep 2021 08:17:17 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-eda5-0c2a-e600-b83e.res6.spectrum.com. [2603:6081:7b01:cbda:eda5:c2a:e600:b83e]) by smtp.gmail.com with ESMTPSA id 21sm1849621qkk.51.2021.09.04.08.17.16 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 04 Sep 2021 08:17:16 -0700 (PDT) Date: Sat, 4 Sep 2021 11:17:14 -0400 From: Tom Rini To: Marek Vasut Cc: u-boot@lists.denx.de, Simon Glass , Simon Goldschmidt Subject: Re: [PATCH 02/14] lmb: Use CONFIG_LMB_*_REGIONS only if they are defined Message-ID: <20210904151714.GE12964@bill-the-cat> References: <20210829222356.GL858@bill-the-cat> <2cffb09e-23aa-afce-962e-1eb9727457db@denx.de> <20210829225126.GM858@bill-the-cat> <20210829231145.GN858@bill-the-cat> <95c965a3-2da8-1212-fb54-0d5628d7743b@denx.de> <20210830120102.GO858@bill-the-cat> <678a77d9-356a-e924-da8e-102fba938ee3@denx.de> <20210904141019.GC12964@bill-the-cat> <72c92d4d-f064-f7f3-dd4b-57cf994009db@denx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2hMgfIw2X+zgXrFs" Content-Disposition: inline In-Reply-To: <72c92d4d-f064-f7f3-dd4b-57cf994009db@denx.de> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --2hMgfIw2X+zgXrFs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 04, 2021 at 05:15:45PM +0200, Marek Vasut wrote: > On 9/4/21 4:10 PM, Tom Rini wrote: > [...] >=20 > > > > > > At this point, I think you should rework things to stop making > > > > > > CONFIG_LMB be optional, it should be a def_bool y. > > > > >=20 > > > > > I disagree, see above. > > > >=20 > > > > The only reason "tools-only_defconfig" builds a useless u-boot bina= ry > > > > today is in CI where it would be more work than it's worth to make = CI > > > > exclude that from the build list. But if you want to just do that > > > > instead, I'll also accept adding -x tools-only to the azure/gitlab = jobs > > > > that build all other architectures, as tools-only is tested in its = own > > > > build job, for it's only valid build target. > > >=20 > > > The tools-only build is also used elsewhere, to build just that, tool= s. > >=20 > > I've repeatedly explained myself and what I'm looking for in v2 of this > > series. I will summarize one last time. The "tools-only_defconfig" is > > for tools, only. Building anything other than the "tools-only" target > > isn't useful. In U-Boot itself, LMB is required as that is how we > > prevent a number of CVEs from being trivial to exploit. v2 of this > > series needs to drop patches 1 and 2 of v1 of this series. It can > > further do any of: > > 1. Nothing else. > > 2. Add tools-only to the exclude list in the "build everything else" CI > > job. > > 3. Make CONFIG_LMB be def_bool y. >=20 > If tools-only is for tools, only, then why should it enable LMB ? > The tools are userspace tools, they do not need LMB, and so LMB can be > disabled. >=20 > This is the part which is unclear to me. I don't know why it's unclear to you at this point, sorry. --=20 Tom --2hMgfIw2X+zgXrFs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmEzjfoACgkQFHw5/5Y0 tyxbmwv/VB1HZxp9r15WkgaGJEnXh359trHm53kggfrK4S7k3X49LuREs5aQ2iNC aMDJGDZSuF1gRuCx/1rHBEU1VOqGp5P+fyFM8YZLvqVaevNl/o2pqzhdd+qfGbmD 4HMtx+Qe86uX4jyvQI8Enjp9k+Y9QqIbT4RDvL4FFqn3fAkptKZjdcFcnRTXpxF1 kQozjz7P4ic/aGA7EVAA/4wm7Ud1hjJd5gekXFd5D4vZtpAauqbHYwGZBGeFWOiI uJbai68od+z+frp1HE0XSGaUimHyKG4bQ42ee/4X4QM4f6lkRzNh5Mc3TR32V1fU MfYK15DqAYCXJqWyR53zVUJiBX3Qk+tvQ24bPYDoUnl6KBIp/5O5kZd+AJCU5iOe DO0IptreIbE2iwsQGTV2pl2ABMkwJCIo7pyzuENkHYztxyyAc+iPhU0Yntwl3neW OBBMZ6975l0WE1U/aNldyI6hBdss8nO1UtluBzGUo+kEjyt74KMlkYmDLhNTOKm0 AJ9cZNUk =m6Y8 -----END PGP SIGNATURE----- --2hMgfIw2X+zgXrFs--