From nobody Mon Feb 9 12:15:21 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+109468+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+109468+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1696897144; cv=none; d=zohomail.com; s=zohoarc; b=DYvItnkcXPqOZQ8Q93/M1bBuV8Ua9Lng1fIPKvdepSjma9jwCey1UacNhJbxMGwsU2GxHut5YuZaoA8CAdRv0REuIS6I3l46FX0E5hwEO5+DEwpg0pqlZLU+SpfW9P9Fhl0tu2ZZmlnTeyx/ix7MP0VaGZmv4N3VP4vAn7jvO64= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1696897144; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=oHig3YGVY21NSvI2hbOeiZXLqlaRrsBLQZqm9cS+bUA=; b=FwY877d+frF4qyOWT9MX8wzybU3kuI3uzvCSNjc5CrUT/q/VcrH9O+Mcr9F/K1xkCzZpl39ZFb93YggQ0lEow/mg+KEyNKpVfLjXtrWY9wxpSdb1M9+AfwGXhInQg++V+SSNmYsbOvu0crivkwoyD21hj4TVM24Gc2aGAVlSMeU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+109468+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1696897143935897.0844006339642; Mon, 9 Oct 2023 17:19:03 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=/9mqZ2dxtXFgGhYTkc+IBjvOVy8W3VpR2+hOJcSVvGg=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1696897143; v=1; b=OzoJKSzjT84B1k5IbRiPWoajUZbqJINAhP/VnIfJYlu7+rUSqNsF3LGEGAvqr0znL0/tvCKH +Nlrzzt3QGF9zHEADgxMl5GMuU2S/+GrOikLujMJUg1GGGGvUOxQkEIzxuCpJkV+XWSECHnljdM xNE36Q5gUF1YE7rICyc4VvGc= X-Received: by 127.0.0.2 with SMTP id 87gNYY1788612xptEEdg6X6J; Mon, 09 Oct 2023 17:19:03 -0700 X-Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mx.groups.io with SMTP id smtpd.web11.79650.1696897143077884638 for ; Mon, 09 Oct 2023 17:19:03 -0700 X-Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1c5ff5f858dso33816525ad.2 for ; Mon, 09 Oct 2023 17:19:03 -0700 (PDT) X-Gm-Message-State: ey2AaDkAJWIsLuQSnBY8xpCzx1787277AA= X-Google-Smtp-Source: AGHT+IGJY/l3YNuV1uTcrEYxOKpJhGgj788e6PAnDfR5opzKNiyYoJ7+M1lc0m2elq528TcLbppPJg== X-Received: by 2002:a17:902:f68f:b0:1c4:2b87:76f0 with SMTP id l15-20020a170902f68f00b001c42b8776f0mr15579722plg.47.1696897142347; Mon, 09 Oct 2023 17:19:02 -0700 (PDT) X-Received: from MININT-0U7P5GU.redmond.corp.microsoft.com ([2001:4898:80e8:3:ad0d:fa50:c6ca:fefc]) by smtp.gmail.com with ESMTPSA id a12-20020a170902ee8c00b001acae9734c0sm10214809pld.266.2023.10.09.17.19.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 17:19:01 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu , Mike Turner Subject: [edk2-devel] [PATCH v2 2/4] MdePkg: DelayedDispatch: Added WaitOnEvent interface Date: Mon, 9 Oct 2023 17:18:53 -0700 Message-ID: <20231010001856.1567-3-kuqin12@gmail.com> In-Reply-To: <20231010001856.1567-1-kuqin12@gmail.com> References: <20231010001856.1567-1-kuqin12@gmail.com> MIME-Version: 1.0 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 Reply-To: devel@edk2.groups.io,kuqin12@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1696897146228100012 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4496 This change adds a new interface for the delayed dispatch PPI. This new addition allows functional components relying on delayed dispatch callbacks to be managed/dispatched with definitive order. The full defintion has been added into PI spec. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Co-authored-by: Mike Turner Signed-off-by: Kun Qin --- Notes: v2: - Fixed PI spec version number to v1.8 [Liming] MdePkg/Include/Ppi/DelayedDispatch.h | 26 ++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/MdePkg/Include/Ppi/DelayedDispatch.h b/MdePkg/Include/Ppi/Dela= yedDispatch.h index 098d57758551..0efcfdbfced6 100644 --- a/MdePkg/Include/Ppi/DelayedDispatch.h +++ b/MdePkg/Include/Ppi/DelayedDispatch.h @@ -1,5 +1,5 @@ /** @file - EFI Delayed Dispatch PPI as defined in the PI 1.7 Specification + EFI Delayed Dispatch PPI as defined in the PI 1.8 Specification =20 Provide timed event service in PEI =20 @@ -50,6 +50,7 @@ This service is the single member function of the EFI_DEL= AYED_DISPATCH_PPI @param[in] This Pointer to the EFI_DELAYED_DISPATCH_PPI instan= ce @param[in] Function Function to call back @param[in] Context Context data + @param[in] UniqueId GUID for this Delayed Dispatch request. @param[in] Delay Delay interval =20 @retval EFI_SUCCESS Function successfully loaded @@ -63,9 +64,29 @@ EFI_STATUS IN EFI_DELAYED_DISPATCH_PPI *This, IN EFI_DELAYED_DISPATCH_FUNCTION Function, IN UINT64 Context, + IN EFI_GUID *UniqueId OPTIONAL, IN UINT32 Delay ); =20 +/** + Wait on a registered Delayed Dispatch unit that has a UniqueId. Continue + to dispatch all registered delayed dispatch entries until *ALL* entries = with + UniqueId have completed. + + @param[in] This The Delayed Dispatch PPI pointer. + @param[in] UniqueId UniqueId of delayed dispatch entry. + + @retval EFI_SUCCESS The operation succeeds. + @retval EFI_INVALID_PARAMETER The parameters are invalid. + +**/ +typedef +EFI_STATUS +(EFIAPI *EFI_DELAYED_DISPATCH_WAIT_ON_EVENT)( + IN EFI_DELAYED_DISPATCH_PPI *This, + IN EFI_GUID *UniqueId + ); + /// /// This PPI is a pointer to the Delayed Dispatch Service. /// This service will be published by the Pei Foundation. The PEI Foundati= on @@ -73,7 +94,8 @@ EFI_STATUS /// execution. /// struct _EFI_DELAYED_DISPATCH_PPI { - EFI_DELAYED_DISPATCH_REGISTER Register; + EFI_DELAYED_DISPATCH_REGISTER Register; + EFI_DELAYED_DISPATCH_WAIT_ON_EVENT WaitOnEvent; }; =20 extern EFI_GUID gEfiPeiDelayedDispatchPpiGuid; --=20 2.42.0.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109468): https://edk2.groups.io/g/devel/message/109468 Mute This Topic: https://groups.io/mt/101865809/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-