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.48]) by mx.groups.io with SMTP id smtpd.web09.5.1631220071677238974 for ; Thu, 09 Sep 2021 13:41:11 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@nvidia.com header.s=selector2 header.b=YBJgeFID; 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.48, mailfrom: jbrasen@nvidia.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f5oxART/9+4yTI47rd9y1ouurAdxSLhpBkQK7x4aFZNuE/oLiJ6ORLyOgo4W/cGTE4aUb5Ml+1pPFcoE50EUKacNljTxDGWhnlZKDN80NRcXoAEhcVY7n69IUWJJ/a6TYv+igSJBpxBeXvlIEa0SqvfyOAwTzmhOr5CFVUHuGSgPsNuPzWeCZexgIPm/0T7lDuYfQCMpbqIyYX5EFz4wK18Q68xJJ+AP78xRHHPs7klu2DPRGC1sDgCymoPnMzlGDgR8Ue2v24wG3utJjBmFT/5aSAg7uvmMaqeqyRcax2zRAvLKNw5iI1I4DNJtocqI9zHnMM1c8RVC6SotoUNnTQ== 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; bh=uQ7DdKQwZp+LHMUepHveN2RIaDyEU1TcXmiLtujRVKU=; b=DvwW+EtmDR1I/hEDcb3W3c3NEptRS5nfLPyq/OVaNt4MRuO/LJm9TyuwyIh6EJOYzAxm72xMJDl5nrb2ptmYRaaEoz18kSB+EcI7LqHAN2NVrcJzmUWHFyyphoXbXgPU303qqWaGgIXwbxNmvSBTFYjd3P+rowd1flH/2o1EuvQAJ4L0Sf1t6pMWaXir/9yq4aVxAzR7HSl9lj+adXs9srz8Q2+XKfkI27j2I0WPbto504mMebUNp6bMReyk4ZTRG14z5X3MgU2lPhfjcB+ajUfB3hZEFF+It25ntJNqxu0MvITYk9tddjUkz5i39KLuoF0ct61h8x2Z5SbHdLantg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.35) smtp.rcpttodomain=gmail.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=uQ7DdKQwZp+LHMUepHveN2RIaDyEU1TcXmiLtujRVKU=; b=YBJgeFID6KMg1PuoL2U0WSHPgNxg8w0Su8QWliKjJvV8lvXuaW5YyM3u0KrVbt6yPoRhFLcJnh2IubbLxNACcvCwstGyl4DXFvO7TrGSP7sQkOudEsG7T/eipO7mzYlM7LS+olxoN7/xGsE/XYLAn7fxJ62d+HHpbXJjUk+YsYTdFKLHPt7H/ik5QX5l4/7FCigOAUMEO0om4mxBjg4czaNS8oLU6b+bCbMqZAfK4/+Rn7HVLp5sVNizoi7JNSr3Nzm+05KMMP7nylx7mycNAV9P3Jv+g1zocfTprFJHs2nno+i8GOX56imW6v/J3RfAxc9CQ6YZvo63uSJhW8mRxw== Received: from MWHPR13CA0001.namprd13.prod.outlook.com (2603:10b6:300:16::11) by MWHPR1201MB2541.namprd12.prod.outlook.com (2603:10b6:300:e5::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Thu, 9 Sep 2021 20:41:10 +0000 Received: from CO1NAM11FT066.eop-nam11.prod.protection.outlook.com (2603:10b6:300:16:cafe::1a) by MWHPR13CA0001.outlook.office365.com (2603:10b6:300:16::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.9 via Frontend Transport; Thu, 9 Sep 2021 20:41:10 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.35) smtp.mailfrom=nvidia.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.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 CO1NAM11FT066.mail.protection.outlook.com (10.13.175.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4500.14 via Frontend Transport; Thu, 9 Sep 2021 20:41:09 +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.18; Thu, 9 Sep 2021 20:41:08 +0000 Received: from build-jbrasen-20210819T103534360.nvidia.com (172.20.187.6) by mail.nvidia.com (172.20.187.13) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Thu, 9 Sep 2021 20:41:08 +0000 From: "Jeff Brasen" To: CC: , Jeff Brasen Subject: [PATCH 0/2] ExtPkg Updates Date: Thu, 9 Sep 2021 20:40:59 +0000 Message-ID: X-Mailer: git-send-email 2.17.1 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: e296e902-3a37-49ef-6c98-08d973d227e8 X-MS-TrafficTypeDiagnostic: MWHPR1201MB2541: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ns9AdsPR0d+zDWmoFJSNU1Yer/mneH34+B6aMbQyS36Xm0ua9g+s40QUk/Z6L55W27FEWkkGMe6CYdUfGZBH4ZOdVNRVXmH2FSforGsDjjHD43CaM/HIH8r76enlDzx9WztWISJcCme0Sxu6QcWTCFVIA2dA84sVxsq7sKSgqD/0xZDEA6dNRJSNVdrnlldHNQxjsGkEphaIr7unK+zY6pC4oGKCV2oC8ptFUDv3IQYVkY24WcqaNT5O6T5wE55AiZRFGL7GxkH9KjpnOfIEiE3B+oWh2T7nIE4RIGm3ZQeY/XJxp7aassd50pFGM0esN0OxSdnU01g9krnMr7RSG0AZ3s7tYMTsZTkXTKs+VzLDFYlo6zUSPzyi2/zzRXqe5b4wvPT5PGgDmYykq7yMMj8RmkMjeUQhUSSA2LaE+fluyTHBzh2FzZAA0Ccb0ROuqHxfg5lpSdloAHbxRPODNXYdiYESkYMUs26ldsQmdnfXOPfgCcf2EZhtbYpSjTXyw94AvN2EbPH8ul2SwjCAjuut+Q9JUcA3zXLBLfLZXn55xxqW3CLTLaSVQbANYDQlcIGVEoLYEdI1ZWu1+2MNYHQQfLV6x7bBcQIo95AoKOh74ixzZavAldKkbpWRTi+jjdqp47bnJoB2GCv40Mq8V3fdhJRJcma44A/XsLxS0BbsMPLcE2WuZK1UZmKLXfXyMU22t7hU1Mw3yA24Iys6bg== 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)(39860400002)(376002)(346002)(136003)(396003)(46966006)(36840700001)(15650500001)(70586007)(6916009)(7696005)(36860700001)(7636003)(2616005)(336012)(8936002)(36756003)(19627235002)(426003)(186003)(54906003)(356005)(47076005)(478600001)(86362001)(107886003)(316002)(8676002)(70206006)(82310400003)(83380400001)(5660300002)(82740400003)(26005)(2906002)(4326008)(6666004)(36906005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2021 20:41:09.8016 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e296e902-3a37-49ef-6c98-08d973d227e8 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: CO1NAM11FT066.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB2541 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain I have been using the new Ext4Pkg and been pretty successful and it is solv= ing a use case we had. Had a couple updates to propose 1. Changed the implementation of the binding protocol to both check if the = driver is already bound to the partition as well as added a really quick check to validate the magi= c value in supported. This improves performance when you have a large number of non-ext4 partitio= ns on the system. 2. As we are planning on using this for boot support we want to support unc= lean filesystem states in case the user doesn't reset cleanly. I added a check if the recovery journa= l is present and if so treat the filesystem as read-only (I know the driver is only RO at this point, bu= t figured if you added write support prior to recovery journal support we would want that). With this ev= erything seems to work great. I can add this under a FeaturePcd if desired as well. Change log v1 - Initial revision Jeff Brasen (2): Ext4Pkg: Improve Binding support behavior Ext4Pkg: Support non-cleanlty unmounted filesystems Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.h | 14 +++++++ Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.c | 57 +++++++++++++++++++++------ Features/Ext4Pkg/Ext4Dxe/Superblock.c | 45 +++++++++++++++++++-- 3 files changed, 99 insertions(+), 17 deletions(-) --=20 2.17.1