From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id EB57A74003A for ; Tue, 30 Jul 2024 15:08:16 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=R9Onj6PWhaVeU8fdUgbAZ54MGxZcMNVb78MiZJDlWYY=; c=relaxed/simple; d=groups.io; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20240206; t=1722352096; v=1; b=fMNZk/fwk5AAgLr1OtaQUzX8XfWEAi026CXRPJAkz8nymcj3ddTQqaE1dK8lHUILBL5VY/HZ 4RB72D1tEVbkgKPfYtqosVredctGMsjITcNvfLVUVBpP/hMFA0wl5PUNOImAY0VMVnTaVjm1Y+h 4HINFKZyo8F/H4HTKqYvP1Qiqh5O7Gm2RrDmu7uwJdBOmnZf5MdkLddNKX2Z5+O7rw0FpT5bh6A pBMe7/etjqRnYjadOOWwt7GYEWPLd8pEwBjKRTeF/qdyagPZtFv3Jg17zbeSobUB3cvAlcsYjLC G1yNexb3aJpuz4CLZFEWzamObf6vtyfT1RoF8Hj69Vxcg== X-Received: by 127.0.0.2 with SMTP id 6V2TYY7687511x0wdfNZcHWO; Tue, 30 Jul 2024 08:08:15 -0700 X-Received: from mail-wr1-f74.google.com (mail-wr1-f74.google.com [209.85.221.74]) by mx.groups.io with SMTP id smtpd.web10.33415.1721904219745264916 for ; Thu, 25 Jul 2024 03:43:40 -0700 X-Received: by mail-wr1-f74.google.com with SMTP id ffacd0b85a97d-3688010b3bfso617020f8f.3 for ; Thu, 25 Jul 2024 03:43:39 -0700 (PDT) X-Gm-Message-State: ItoovJiOmrYmdsRrIn5Jwjsnx7686176AA= X-Google-Smtp-Source: AGHT+IEUZf/jXHBTpm3hEFaGefMqXZocvElYMrvowUvXA2YOzHH5CRac941T6o3PiOKdeb8V1SEsfAmv X-Received: from palermo.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:118a]) (user=ardb job=sendgmr) by 2002:a5d:4949:0:b0:368:371b:3ae with SMTP id ffacd0b85a97d-36b363b2fb7mr2490f8f.6.1721904217577; Thu, 25 Jul 2024 03:43:37 -0700 (PDT) Date: Thu, 25 Jul 2024 12:43:25 +0200 Mime-Version: 1.0 Message-ID: <20240725104332.1675625-1-ardb+git@google.com> Subject: [edk2-devel] [PATCH edk2-platforms 0/5] RPi: Drop EmbeddedPkg reset runtime From: "Ard Biesheuvel via groups.io" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Jeremy Linton Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Tue, 30 Jul 2024 08:07:57 -0700 Resent-From: ardb+git@google.com Reply-To: devel@edk2.groups.io,ardb+git@google.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b="fMNZk/fw"; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io From: Ard Biesheuvel The EmbeddedPkg runtime DXE is being retired in favour of the generic one in MdeModulePkg which is actually being maintained. RPi uses this driver and the associated EfiResetSystemLib, of which it has an implementation with value-add for reset notification. So this logic needs to be moved elsewhere and hooked up to the generic protocols that implement the same. Build tested only. Cc: Leif Lindholm Cc: Jeremy Linton Ard Biesheuvel (5): Platform/RaspberryPi/VarBlockServiceDxe: Refactor DumpVars event handler Platform/RaspberryPi/VarBlockServiceDxe: Register for reset notification Platform/RaspberryPi/PlatformBootManagerLib: Reimplement reset hook Platform/RaspberryPi: Switch to generic reset runtime Platform/RaspberryPi: Drop platform specific EfiResetSystemLib Platform/RaspberryPi/RaspberryPi.dec | 1 - Platform/RaspberryPi/RPi3/RPi3.dsc | 6 +- Platform/RaspberryPi/RPi4/RPi4.dsc | 6 +- Platform/RaspberryPi/RPi3/RPi3.fdf | 2 +- Platform/RaspberryPi/RPi4/RPi4.fdf | 2 +- Platform/RaspberryPi/Drivers/VarBlockServiceDxe/VarBlockServiceDxe.inf | 4 +- Platform/RaspberryPi/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 6 + Platform/RaspberryPi/Library/ResetLib/ResetLib.inf | 45 ------ Platform/RaspberryPi/Drivers/VarBlockServiceDxe/VarBlockServiceDxe.c | 63 +++++--- Platform/RaspberryPi/Library/PlatformBootManagerLib/PlatformBm.c | 77 ++++++++++ Platform/RaspberryPi/Library/ResetLib/ResetLib.c | 151 -------------------- 11 files changed, 138 insertions(+), 225 deletions(-) delete mode 100644 Platform/RaspberryPi/Library/ResetLib/ResetLib.inf delete mode 100644 Platform/RaspberryPi/Library/ResetLib/ResetLib.c -- 2.46.0.rc1.232.g9752f9e123-goog -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120094): https://edk2.groups.io/g/devel/message/120094 Mute This Topic: https://groups.io/mt/107628958/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-