From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.80]) by mx.groups.io with SMTP id smtpd.web08.1115.1628114611442538061 for ; Wed, 04 Aug 2021 15:03:31 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@nvidia.com header.s=selector2 header.b=NAEIIUu2; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: nvidia.com, ip: 40.107.244.80, mailfrom: jbrasen@nvidia.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ocXEO9tS80Y0/Ry4Y0hdx0JNw+UIqMBW9vRFc/q0+OsR+gMC1Ae+WvOspyudw1uA/UoiyMVeqqpin45Xu0fGEaVHXlEub7LMgd5l35O1lPhwMUbHcBZZB3btoiSHDC0hnO/Zk4E05KLXPUF/seJ/1U49wNGGh+YclVwyAnw1WRKuQqrRJ+PF56VxcJyvxzns6Sl5ZnxDwdvf+e+1cEHo9LLaC7NP4ngJmZZGq7SP0qytjkjASCBnLmqo3zUckRnAE3XWId6H5KTZlsah1BSVfhPHU3bionFEtFnCfrYBh1I8rZkrawxLJDWM5lgaDpNkREV/obQx1TfiHOZGfG1mqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Gx9HEa10EbF7p7GU0o7fEQWca/lDgScc4BwyoVJcMWQ=; b=XzRoX2kGYO5vp/GSHQyhjgnIOWyxR8wYa9Z80YDxAWMDn4RKiJvbdvMnc6fGDyikmqhpdl6VWGlCP3RP6kvAVqDB2tz0hKb5fD780ghGhFJmfNM8MtnSgcSwQ6c88rpzKjB2F9Luc4G74JERNq1khpEgBGKpbQWmI2flhAZ0vxmIN0WalnxQRNn/U+JSASVM6jAJSXAW6UCCD4s0yDFzs7SG0aLV2VBQJ3SEaS/UxO/AidxsMCzoKc/t+r7bqnDv3e1Xkt/uEvJeXGUcPnLaamsuQx3EVD63HEeSEtNXPEepX3PxWNiWOIyPCffP2s0eEgSKdQysOYIQFkkeXzddYg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.35) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Gx9HEa10EbF7p7GU0o7fEQWca/lDgScc4BwyoVJcMWQ=; b=NAEIIUu2xtK2l1dZUcbU1G1WfcyqlAmlwIB9Wc+pG09SVkIn70hJKk1rfEli1KlVbq7+5KxFiUlJZOaQbV3eB2C/bUmAW05moNdaf/O4K0irnCVFfSxNt71ghAVNAgWHOK4qIsKsAuaOqsKJOuo72bL4tgzwwTihuG2pX8UBgDsfdJ7Y4k2s7Zl0FuHM07R2NsHQodU3q4z1Rh9HhkYxP9oMy4dH3t4o9ZMVzCw4LIo4RFKYNKiQRWesvwd0RI4yEn9+K4zF6e1v/c2ETAXRzuvMdP4MlxmGeHx5aDLVBQXOF8PVWMo5v3J/BOkcG8Z+HY10SAcboObsRC/aNLmryw== Received: from MW4PR03CA0283.namprd03.prod.outlook.com (2603:10b6:303:b5::18) by CY4PR12MB1351.namprd12.prod.outlook.com (2603:10b6:903:36::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15; Wed, 4 Aug 2021 22:03:29 +0000 Received: from CO1NAM11FT059.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b5:cafe::8a) by MW4PR03CA0283.outlook.office365.com (2603:10b6:303:b5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21 via Frontend Transport; Wed, 4 Aug 2021 22:03:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.35) smtp.mailfrom=nvidia.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.35 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.35; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.35) by CO1NAM11FT059.mail.protection.outlook.com (10.13.174.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4394.16 via Frontend Transport; Wed, 4 Aug 2021 22:03:29 +0000 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 4 Aug 2021 22:03:28 +0000 Received: from jbrasen-ux.nvidia.com (172.20.187.5) by mail.nvidia.com (172.20.187.13) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 4 Aug 2021 22:03:28 +0000 From: "Jeff Brasen" To: CC: , , , , , Jeff Brasen Subject: [PATCH v3 2/2] MdePkg: add definition of LINUX_EFI_INITRD_MEDIA_GUID Date: Wed, 4 Aug 2021 16:03:19 -0600 Message-ID: <1f492ab4a4b791058d882bf68adfaef122ea005d.1628114324.git.jbrasen@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-NVConfidentiality: public Return-Path: jbrasen@nvidia.com X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c7a8bfa1-4ad7-43a3-5766-08d95793b112 X-MS-TrafficTypeDiagnostic: CY4PR12MB1351: X-Microsoft-Antispam-PRVS: X-MS-Exchange-Transport-Forked: True X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cb5RPfdQvXDEBFdnggx5riBhn0kiNVK9PK7A5ILkIOXDcRNo3kFji+xI8OTxSPjHJICSBcqc2FwX01FQDCMItwGsXWyFUGRe5P0IwFVRwIeO3xmPoGP3LXbQQWEwuGNDiuW5on4k0cpcq+5KVD1DPWJvLGU4MNoV7K9GI8+0IL0KGfttgdjLj6Heco4kojbreeS0KPo8X2xL7ARSXMXt1JMpMuvNcjC21oS3prYjlvcuvfyEcF2ZI2/fH+0aMg1o78P9DafeeJiff9T/qzMwuQw4T94VPoR/l19dz0gjRNutmBaLZthuDj/qS7YJx/Ch3NK57f6nu+WfcmEoOmuFMtuZXB8yFRYRVjqI53AJig9acn49ba9+hoOhiDmkIE4CrJCtjBFq8QaAALZdc+7ifJEfhfv9pSoRTcbyRj5JQqUds5SdkkCIpS6cCiAswvAxl/z8IH9CIwcOcm40A9fcFWXecwVglrW8d2TTrVZC/p2ymX1+4KRyl84bQFHgB//yIcTF2/RysTjphwm9GELgY6XYQ5JE7aL2egMT26ma4zSwlP+qM0VtXnmN6LIxkKgaSff2scwj4coZ39AQnqNIYHGAZUp8SkFws9B6NtIvsvbMdPxVYYAlCP185jQI9/W/IYD0K5jhbEW4ZsPFQtuKyzA5Q+AmOS0ot+srE2Cfvs7XNt6eCvwvZE+TxsuvQCbouer/vWznKwdRzHKVEd/iIOZamwhMmGDq5+SjWDY8NAXZhBHvCEv9bqe6Oy+EcCJXjfJzHwXsPICgFGWCOaIQ1TjcOFleufoxvBWBkWg1qz0= X-Forefront-Antispam-Report: CIP:216.228.112.35;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:schybrid04.nvidia.com;CAT:NONE;SFS:(4636009)(396003)(346002)(39860400002)(376002)(136003)(46966006)(36840700001)(5660300002)(6916009)(86362001)(6666004)(19627235002)(316002)(7636003)(8936002)(426003)(54906003)(82310400003)(36906005)(36756003)(107886003)(966005)(4326008)(36860700001)(83380400001)(47076005)(8676002)(2906002)(7696005)(336012)(82740400003)(26005)(356005)(478600001)(186003)(70586007)(2616005)(70206006);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2021 22:03:29.1034 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c7a8bfa1-4ad7-43a3-5766-08d95793b112 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.112.35];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT059.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1351 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain Add LINUX_EFI_INITRD_MEDIA_GUID to our collection of GUID definitions, it can be used in a media device path to specify a Linux style initrd that can be loaded by the OS using the LoadFile2 protocol. Move these defines to MdePkg from OvmfPkg as these are relevant to non-OVMF targets as well. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2564 Signed-off-by: Jeff Brasen Reviewed-by: Michael D Kinney Acked-by: Ard Biesheuvel --- MdePkg/MdePkg.dec | 5 ++++ MdePkg/Include/Guid/LinuxEfiInitrdMedia.h | 31 +++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 MdePkg/Include/Guid/LinuxEfiInitrdMedia.h diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index c5319fdd71ca..a28a2daaffa8 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -818,6 +818,11 @@ [Guids] # gTianoCustomDecompressGuid =3D { 0xA31280AD, 0x481E, 0x41B6, { 0x95,= 0xE8, 0x12, 0x7F, 0x4C, 0x98, 0x47, 0x79 }} =20 + # + # GUID used to provide initrd to linux via LoadFile2 protocol + # + gLinuxEfiInitrdMediaGuid =3D {0x5568e427, 0x68fc, 0x4f3d, {0xac, 0= x74, 0xca, 0x55, 0x52, 0x31, 0xcc, 0x68}} + [Guids.IA32, Guids.X64] ## Include/Guid/Cper.h gEfiIa32X64ErrorTypeCacheCheckGuid =3D { 0xA55701F5, 0xE3EF, 0x43de, { 0= xAC, 0x72, 0x24, 0x9B, 0x57, 0x3F, 0xAD, 0x2C }} diff --git a/MdePkg/Include/Guid/LinuxEfiInitrdMedia.h b/MdePkg/Include/Gui= d/LinuxEfiInitrdMedia.h new file mode 100644 index 000000000000..0e7db8bd8140 --- /dev/null +++ b/MdePkg/Include/Guid/LinuxEfiInitrdMedia.h @@ -0,0 +1,31 @@ +/** @file + GUID definition for the Linux Initrd media device path + + Linux distro boot generally relies on an initial ramdisk (initrd) + which is provided by the loader, and which contains additional kernel + modules (for storage and network, for instance), and the initial user + space startup code, i.e., the code which brings up the user space side + of the entire OS. + + In order to provide a standard method to locate this file, + the GUID defined in this file is used to describe the device path + for a LoadFile2 Protocol instance that is responsible for loading the in= itrd file. + + The kernel EFI Stub will locate and use this instance to load the initrd= , + therefore the firmware/loader should install an instance of this to load= the + relevant initrd. + + Copyright (c) 2020, Arm, Ltd. All rights reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#ifndef LINUX_EFI_INITRD_MEDIA_GUID_H__ +#define LINUX_EFI_INITRD_MEDIA_GUID_H__ + +#define LINUX_EFI_INITRD_MEDIA_GUID \ + {0x5568e427, 0x68fc, 0x4f3d, {0xac, 0x74, 0xca, 0x55, 0x52, 0x31, 0xcc, = 0x68}} + +extern EFI_GUID gLinuxEfiInitrdMediaGuid; + +#endif --=20 2.25.1