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 1D649C76196 for ; Fri, 31 Mar 2023 06:46:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3E53985F34; Fri, 31 Mar 2023 08:46:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=gmx.de header.i=xypron.glpk@gmx.de header.b="SNSc4lbL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A138185F46; Fri, 31 Mar 2023 08:46:11 +0200 (CEST) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 08D8685EE3 for ; Fri, 31 Mar 2023 08:46:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1680245166; i=xypron.glpk@gmx.de; bh=3/CmG3O4S9BreroPjsOutgX2T2PqcgMUqn4QSROXRSU=; h=X-UI-Sender-Class:Date:From:To:CC:Subject:In-Reply-To:References; b=SNSc4lbLG0CILKJHJOF1XLyYw6mMVz07+ITlxxMYC3IvZwoX/HZriBUGkVUy+eJEl 6kaQlpCro6gpcb4vrCCLJxK/ZmoLin+lXVw8ycHjZwl3BGlpmJLUXfuVET4kcACqyS 4CGSdVPw3rdhCe+DBLoyWmmsqwh+4tU0df1vJ6XpbDnAps1R5kOfEvriDWtqub0Wip 2qjJDp32tpDw9+1iGW916lc8gglQ/vLO3MajecY/puNvS2fxtzDep/P9eRIe3vEbip WTK799KO2Pfrk/UGlZLeuXfYV6XPXdZJ+oxI5zzMbtF5xUuBQi8eY9IRb8wo2XW4HL MDXUHCP9wqzKw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [127.0.0.1] ([88.152.145.137]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N4z6q-1qP0GI01OG-010uyW; Fri, 31 Mar 2023 08:46:06 +0200 Date: Fri, 31 Mar 2023 08:46:09 +0200 From: Heinrich Schuchardt To: Simon Glass CC: U-Boot Mailing List , Bin Meng , Jose Marinho Subject: Re: [PATCH 18/38] efi: Show all known UUIDs with CONFIG_CMD_EFIDEBUG User-Agent: K-9 Mail for Android In-Reply-To: References: <20230330213227.2142353-1-sjg@chromium.org> <20230331103047.18.I8b1d3f1a3ffca2880596902c87d794f4ea59a53a@changeid> <41C0791F-EEB1-4403-98C4-000FB5090399@gmx.de> <1125DA53-A1CA-4FFD-B716-F6D449C517FF@gmx.de> Message-ID: <424C9CD6-86F3-4529-A989-D144BBC81963@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:BWXVAHcQAZZ+DdGc6+qccqh3ZPdbiVi6aAEDu9fX+4hPuw08IBb f1NK0qAcB525U3cSzmv9SZoQ9myTnkxnJ6W91kHVU4B6I9OCuV4LRAZ7tqGQuWqqkxXv3B1 IPVoFl++K95dtUl+6pRwYK1QheAz67Cqh7I9uQRz4gr+S6YR7iMDBrNZRgi56szhREgfrYD +dTWkVn/Yy4XX06PuDHfg== UI-OutboundReport: notjunk:1;M01:P0:pAaMNje6z4w=;mYKgQizBtocCtBXrPniE46Afhtw dpYwYDFZBp1htkDQQz3aGnhzlxqvms7pqPBFjqfXmpF/NWKww7BkPB2TVhLZ6lrCSMAi4oJbW 0L3ka3Ts365sXbDHmuEwcV2SN2gR2cwhrCuWJYEQWjdNrW4dtG4Mz1V6Mp6t1ndst7kqyzhVp 4bkfcsL0PzPvEsPDvPZVWEtjEO3TY5K7e7ldxv8mw14eB4WZ8vNaBzSx8vTcq6nA8zzReFmJ5 xw/gAbhauqMbECqqyns9bmiIy3J9MagJ8KG6FLKRXUu9xjVwsNcu49rIqL7AC63wjDGbAk+Py iX+ATDzJH6RdrJKlU1ghVb0jXlUglCuwv5bi2AnZLEykv+e9NpJw2hqK4RU9LOOgl2spshVZP GgyCidNQxec9d/0i7ivrBcOZfXVyHmYZLntSepTkE887R832pViDzN7ph2Rflosq5xs1xRgsO xmJ468tqih5ydBn/zH3oDr12OM0NSRirIQm7lVphuIjYcztUq25sCjP3kn5xlHPxT6gEWOSq9 CeSrE7wCJGKJpl7UV7OGXyhxrq624jnyOqaUUGHCWXxgXNtL32wiNygk2ZNWFAAHxhviqcy6N 9jQMPDdAZAHu3LUjKv47HZPCVxpBgWX5X0ep3TBmU/RFwUZZGRg0aD2g79DHt7mFScjNnuE4M mg6915AjnvXSanbxf+0dkaT9t7cQW4G2YkmVcAaBi39x0QgAZGKZqKrldY/f4aG8KeJiFygQg 2t8brpcUgViLEvUDpmy9DjK+YPsGIqa5O0cUcKrnqxjOzn5lT8VNpsq7AfrgLd+s/cQgb/GJJ oA+VtLivD+M3WKSIP5HJamkrczZlvQAY4EaOXxmNG7APTBqjenlZl0Dz55zW5AtJgwjXMZv6P YepCnZWEDe7fbt0QevQGFUHqF7SDVGIIZhXTFyVu7hfEdlqOZ6RGrg6LVp/bkt809Wznjx1Mf W4sJVlyxzhqCHlRIxebdsDJ0sS4= 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.8 at phobos.denx.de X-Virus-Status: Clean Am 31=2E M=C3=A4rz 2023 03:16:06 MESZ schrieb Simon Glass : >Hi Heinrich, > >On Fri, 31 Mar 2023 at 13:27, Heinrich Schuchardt wrote: >> >> >> >> Am 31=2E M=C3=A4rz 2023 01:48:57 MESZ schrieb Simon Glass : >> >Hi Heinrich, >> > >> >On Fri, 31 Mar 2023 at 11:38, Heinrich Schuchardt wrote: >> >> >> >> >> >> >> >> Am 30=2E M=C3=A4rz 2023 23:32:07 MESZ schrieb Simon Glass : >> >> >The CMD_EFIDEBUG option enables debugging so it is reasonable to as= sume >> >> >that all effects should be made to decode the dreaded UUIDs favoure= d by >> >> >UEFI=2E >> >> > >> >> >Update the table to show them all when CONFIG_CMD_EFIDEBUG is enabl= ed=2E >> >> > >> >> >Signed-off-by: Simon Glass >> >> >--- >> >> > >> >> > lib/uuid=2Ec | 2 +- >> >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> >> > >> >> >diff --git a/lib/uuid=2Ec b/lib/uuid=2Ec >> >> >index 96e1af3c8b00=2E=2Eab30fbf9152f 100644 >> >> >--- a/lib/uuid=2Ec >> >> >+++ b/lib/uuid=2Ec >> >> >@@ -255,7 +255,7 @@ static const struct { >> >> > EFI_CERT_TYPE_PKCS7_GUID, >> >> > }, >> >> > #endif >> >> >-#ifdef CONFIG_EFI >> >> >+#if defined(CONFIG_CMD_EFIDEBUG) || defined(CONFIG_EFI) >> >> > { "EFI_LZMA_COMPRESSED", EFI_LZMA_COMPRESSED }, >> >> > { "EFI_DXE_SERVICES", EFI_DXE_SERVICES }, >> >> > { "EFI_HOB_LIST", EFI_HOB_LIST }, >> >> >> >> None of these are used when not building the EFI app=2E >> > >> >So you think we should disable them? As I said above, enabling >> >debugging seems like a good reason to allow decoding of all of them=2E >> > >> >Regards, >> >SImon >> >> U-Boot, Shim, GRUB will not use any of these=2E The EFI app sees them i= f shared by the preceding UEFI firmware=2E >> >> There are zillions other GUIDs that a vendor UEFI might use=2E But why = should we care? >> >> I would rather drop these strings from the code base=2E > >I would far rather drop the UUIDs from the code base=2E Is that >possible? We should use a simple numeric tag, like 0, 1, 2, 3, 4 with >an associated descriptive string=2E Even using a 16-byte string would be >better than a UUID=2E > >While we have to put up with UUIDs, we need a way to make them >intelligible for us poor sods who need to decode boot-time traces[1] >and the like=2E The EFI spec uses GUIDs and these are strings you will find with Google=2E= Natural numbers that have bo significance won't serve anybody=2E GUIDs not= used inside U-Boot we should not care to translate as there are too many= =2E > >Regards, >Simon > >[1] > EFI: Exit: efi_open_protocol: 0 > EFI: Entry efi_open_protocol(000000007ed33da0, >5b1b31a1-9562-11d2-8e3f-00a0c969723b, 000000007ecf4978, >000000007ed33da0, 00000000000 >00000, 0x2) > EFI: Exit: efi_open_protocol: 0 > EFI: Entry efi_open_protocol(000000007ed238b0, >09576e91-6d3f-11d2-8e39-00a0c969723b, 000000007ecf4978, >000000007ed33da0, 00000000000 >00000, 0x2) > EFI: Exit: efi_open_protocol: 0 > EFI: Entry efi_locate_handle_ext(2, >a19832b9-ac25-11d3-9a2d-0090273fc14d, 0000000000000000, >000000007ecf4948, 000000007d6f3ba0) > EFI: Exit: efi_locate_handle_ext: 0 > EFI: Entry efi_open_protocol(000000007ed25040, >09576e91-6d3f-11d2-8e39-00a0c969723b, 000000007ecf4978, >000000007ed33da0, 00000000000 >00000, 0x2) > EFI: Exit: efi_open_protocol: 0 > EFI: Entry efi_open_protocol(000000007ed25040, >a19832b9-ac25-11d3-9a2d-0090273fc14d, 000000007ecf4978, >000000007ed33da0, 00000000000 >00000, 0x2) > EFI: Exit: efi_open_protocol: 0 > EFI: Entry efi_open_protocol(000000007ed33da0, >5b1b31a1-9562-11d2-8e3f-00a0c969723b, 000000007ecf49b8, 00000 >0007ed33da0, 0000000000000000, 0x2) > EFI: Exit: efi_open_protocol: 0 > EFI: Entry efi_open_protocol(000000007ed238b0, >09576e91-6d3f-11d2-8e39-00a0c969723b, 000000007ecf4958, >000000007ed33da0, 00000000000 >00000, 0x2) > EFI: Exit: efi_open_protocol: 0 > EFI: Entry efi_locate_protocol(96751a3d-72f4-41a6-a794-ed5d0e67ae6b, >0000000000000000, 000000007ecf4668) > EFI: Exit: efi_locate_protocol: 14 > EFI: Entry efi_locate_handle_ext(2, >f541796d-a62e-4954-a775-9584f61b9cdd, 0000000000000000, >000000007ecf4638, 000000007d40be00) > EFI: Exit: efi_locate_handle_ext: 14 > EFI: Entry efi_locate_handle_ext(2, >607f766c-7455-42be-930b-e4d76db2720f, 0000000000000000, >000000007ecf4638, 000000007d40be00) > EFI: Exit: efi_locate_handle_ext: 14 > EFI: Entry efi_locate_protocol(f42f7782-012e-4c12-9956-49f94304f721, >0000000000000000, 000000007ecf43e8) > EFI: Exit: efi_locate_protocol: 14