From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 45B007803CD for ; Thu, 20 Jul 2023 21:07:40 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=NgOqiFlpsZP7Pm99c5qVt5rHigfb/qwMT6WuVScDLG4=; c=relaxed/simple; d=groups.io; h=X-Received:X-Received:X-Received:X-Gm-Message-State:X-Google-Smtp-Source:X-Received:X-Received: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=1689887259; v=1; b=d7VtD47OTt86jfJHBPtklWglipw5GJhcm6sG68M7jf/VtT+pvZk33O8YMYxwXxqg9d6uSoog tX+veBHi7nRJt75TFZJEunAoITewzcsrhF0rIO8J0X2g7c6E6JqDh7MjMcAlPXTD1gRZ2mkMr06 RBbDJEXBs7fa8YYZIX1XDlyk= X-Received: by 127.0.0.2 with SMTP id eXrPYY7687511x9fIbGZjr0Y; Thu, 20 Jul 2023 14:07:39 -0700 X-Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mx.groups.io with SMTP id smtpd.web10.1789.1689887258418676439 for ; Thu, 20 Jul 2023 14:07:38 -0700 X-Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1b8b2b60731so7660755ad.2 for ; Thu, 20 Jul 2023 14:07:38 -0700 (PDT) X-Gm-Message-State: cXsO7hTJEIZCuGLvpKYBCySSx7686176AA= X-Google-Smtp-Source: APBJJlF8dEEJM0DjqwDPNieZQ4p6UQOvjRqO4pAGykG9KWmdp+txmasMeDfhxTjZPO5h1GB9In2iGA== X-Received: by 2002:a17:902:e5d1:b0:1b8:8b72:fa28 with SMTP id u17-20020a170902e5d100b001b88b72fa28mr123010plf.58.1689887257626; Thu, 20 Jul 2023 14:07:37 -0700 (PDT) X-Received: from MININT-0U7P5GU.redmond.corp.microsoft.com ([2001:4898:80e8:37:e07c:3f9b:2f13:3c64]) by smtp.gmail.com with ESMTPSA id d1-20020a170902aa8100b001b9ecee9f81sm1855943plr.129.2023.07.20.14.07.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jul 2023 14:07:37 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Jian J Wang , Liming Gao , Dandan Bi , Debkumar De , Catharine West , Mike Turner Subject: [edk2-devel] [PATCH v1 4/4] MdeModulePkg: PeiMain: Updated dispatcher for delayed dispatch Date: Thu, 20 Jul 2023 14:07:28 -0700 Message-ID: <20230720210729.774-5-kuqin12@gmail.com> In-Reply-To: <20230720210729.774-1-kuqin12@gmail.com> References: <20230720210729.774-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-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=d7VtD47O; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4496 This change adds a check for PEI dispatcher to continue dispatching when there are still pending delayed dispatch requests, to be compatible with newly integrated Delayed Dispatcher PPI interface. Cc: Jian J Wang Cc: Liming Gao Cc: Dandan Bi Cc: Debkumar De Cc: Catharine West Co-authored-by: Mike Turner Signed-off-by: Kun Qin --- MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c b/MdeModulePkg/C= ore/Pei/Dispatcher/Dispatcher.c index 50e59bdbe732..6eb807500e5e 100644 --- a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c +++ b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c @@ -2000,7 +2000,10 @@ PeiDispatcher ( // pass. If we did not dispatch a PEIM/FV there is no point in trying= again=0D // as it will fail the next time too (nothing has changed).=0D //=0D - } while (Private->PeimNeedingDispatch && Private->PeimDispatchOnThisPass= );=0D + // Also continue dispatch loop if there are outstanding delay-=0D + // dispatch registrations still running.=0D + } while ((Private->PeimNeedingDispatch && Private->PeimDispatchOnThisPas= s) ||=0D + (Private->DelayedDispatchTable->Count > 0));=0D }=0D =0D /**=0D --=20 2.41.0.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107115): https://edk2.groups.io/g/devel/message/107115 Mute This Topic: https://groups.io/mt/100264779/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-