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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 0ECA4C3DA78 for ; Sun, 15 Jan 2023 13:45:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 46A26850D5; Sun, 15 Jan 2023 14:45:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (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="FeAt33Z4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 858EA84B51; Sun, 15 Jan 2023 14:45:51 +0100 (CET) Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) (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 D469884B51 for ; Sun, 15 Jan 2023 14:45:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf31.google.com with SMTP id p96so5960539qvp.13 for ; Sun, 15 Jan 2023 05:45:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=h0z5GYc+f83tvrTWOB2cyWWU4stPfVEzyB+J8r6UVYo=; b=FeAt33Z4Dj9XamatDrqHukD317uOOKZNI3uy+MaTRevFvsqz6DFM8FsiF+jBAUur0+ ObuynuejyWtXb78Qb4qr4LCGz2VO0WLud2zDvVQlEj0UaHE8wu/LDl0DApwqS8GAlQMJ LK3BiFZoGprZfGV5OxJbj0omQoil7v1pwCJ+o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=h0z5GYc+f83tvrTWOB2cyWWU4stPfVEzyB+J8r6UVYo=; b=w/GxZMMP9cqyO+Tli6gLb9AHa7h6qs9mwmh6le45X8bTKZ5/R2LfX6L4jtM9slRehN qYckRPXS24qYFwoIsvai5vpEWqga+tDyTN8rGOIJoGixHPbKYRbTeRyDqbvKL5YACGq9 OZIb6P4xvcqR7nZmxd2R8ZlE9QwGBOFJiFSYi0wHORE3k8FvYmfj5OAwr/VrKAjhlqEO 7ZegGAOnzTiNX2UAv44QsOTmflE9OuUfzTihFt7Y0pOkDy7mM1cGg690ks+HV4/mqwOD Cr7MPxVHYqM3V4mVDZTpC03AfANrY6sGZFnrBnUOVjYzqued3L9r5rYiT4CRtOOBnpXv q3Uw== X-Gm-Message-State: AFqh2kodKIpYPtD4jzNiOmV6WLKQP8gb/GI8b1T1NNddZs73HrB8LBPc PpgZAx05Mlzd/vDeol8IshQ15D/ghADVQKLg1kU= X-Google-Smtp-Source: AMrXdXt8P7ZyiTIWLyVvtQnISBeUcNRH0TbtBQXKytiookgHJI+ZExZHjk7BIqJutPrwiHg0AeybwA== X-Received: by 2002:ad4:4c11:0:b0:532:21f8:ea76 with SMTP id bz17-20020ad44c11000000b0053221f8ea76mr47403606qvb.44.1673790347639; Sun, 15 Jan 2023 05:45:47 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-b529-26d0-5409-c87f.res6.spectrum.com. [2603:6081:7b00:6400:b529:26d0:5409:c87f]) by smtp.gmail.com with ESMTPSA id f8-20020a05620a408800b006b5cc25535fsm16677246qko.99.2023.01.15.05.45.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Jan 2023 05:45:47 -0800 (PST) Date: Sun, 15 Jan 2023 08:45:45 -0500 From: Tom Rini To: Simon Glass Cc: u-boot@lists.denx.de, Oliver Graute , Francesco Dolcini Subject: Re: [PATCH 2/2] event: Correct dependencies on the EVENT framework Message-ID: <20230115134545.GJ3880571@bill-the-cat> References: <20230114204936.3832739-1-trini@konsulko.com> <20230114204936.3832739-2-trini@konsulko.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ofZMSlrAVk9bLeVm" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean --ofZMSlrAVk9bLeVm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 14, 2023 at 06:31:05PM -0700, Simon Glass wrote: > Hi Tom, >=20 > On Sat, 14 Jan 2023 at 13:49, Tom Rini wrote: > > > > The event framework is just that, a framework. Enabling it by itself > > does nothing, so we shouldn't ask the user about it. Reword (and correct > > typos) around this the option and help text. This also applies to > > DM_EVENT, so reword as well. > > > > With this, it's time to address the larger problems. When functionality > > uses events, typically via EVENT_SPY, the appropriate framework then > > must be select'd and NOT imply'd. As the functionality will cease to > > work (and so, platforms will fail to boot) this is non-optional and > > where select is appropriate. Audit the current users of EVENT_SPY to > > have a more fine-grained approach to select'ing the framework where > > used. > > > > Cc: Simon Glass > > Reported-by: Oliver Graute > > Reported-by: Francesco Dolcini > > Fixes: 7fe32b3442f0 ("event: Convert arch_cpu_init_dm() to use events") > > Fixes: 42fdcebf859f ("event: Convert misc_init_f() to use events") > > Signed-off-by: Tom Rini > > --- > > arch/Kconfig | 6 +++--- > > arch/arm/Kconfig | 9 ++++----- > > arch/arm/mach-omap2/Kconfig | 3 +++ > > arch/mips/Kconfig | 2 +- > > arch/powerpc/cpu/mpc85xx/Kconfig | 1 + > > arch/x86/Kconfig | 1 + > > arch/x86/cpu/baytrail/Kconfig | 1 + > > arch/x86/cpu/broadwell/Kconfig | 1 + > > arch/x86/cpu/ivybridge/Kconfig | 1 + > > arch/x86/cpu/quark/Kconfig | 1 + > > board/google/Kconfig | 1 + > > board/keymile/Kconfig | 1 + > > boot/Kconfig | 1 + > > cmd/Kconfig | 1 + > > common/Kconfig | 17 ++++++++--------- > > drivers/core/Kconfig | 9 +++++---- > > drivers/cpu/Kconfig | 1 - >=20 > Reviewed-by: Simon Glass >=20 > Tested on chromebook-coral: > Tested-by: Simon Glass >=20 > I am not quite sure what the effective difference is between select > and imply. Doesn't this suggest that there are some conflicting config > options? The only way imply would be disabled ( I thought) is if a > board does it explicitly? So there's two parts to it. As a framework, the option needs to be select'd, not implied. It doesn't make sense to disable the event framework and then wonder why VBE doesn't work. The next part however is Fixes: c5ef2025579e ("dm: fix DM_EVENT dependencies") should have been part of it too. That commit turned all of the platforms which had imply DM_EVENT (and so from DM_EVENT, imply EVENT) in to depends on EVENT being set, and if it wasn't set (or select'd, only EFI_LOADER was select'ing it at the time) in to not enabling DM_EVENT, and since imply options can be off, no warnings were thrown by the build system. And since all of the non-dynamic EVENT stuff is linker-based, no binary size changes happened either. --=20 Tom --ofZMSlrAVk9bLeVm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPEA4YACgkQFHw5/5Y0 tyyGCgwAqd70uP+6KLdxTu8vwlsvse1LS611iTznh6C3AQJzx/wYy7co1Z03KfJn rGzp0exOIIwZYkjZ6hecSxBF5gjT0VmluXqygxrKCBQkXgDWRUmL6zEEz09ezU2K Mj9kqtcjYVO3JGpjOMpx75o3YvNGlwxNNYfOoCcmRd4L8yez3cLElIgNGdagGnbL mq4EXMwThExhNtrg85Oq8qv00NPpcQvgbdt7F55bvY5iFx+3xLBvHsQfy6zxbcp2 IeQOpemPGAAJaF57/w4HkAKD8ilzY/WIvIdQS70Shjm4BFuHJdwHSJRNmeFiIAww oV4Y+EbJ4JCuqb+06Gel1T3RoQ4mIGC5bIAXCuYhNvexhR/beKq4f/2wHXB8/7/f d4VyVM/iAfpFgCY0UCP6iMLYNhAuCjleHsDnqAuu0z4x9rz9WABqwc+lS5L5HulR dBx9ljPbGFXV7YZO4aYiOLOBv/6sm1P50dBUtyOBptTqvwuy+rfvGH3GqhqThusC 9z1n10uW =cLUg -----END PGP SIGNATURE----- --ofZMSlrAVk9bLeVm--