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 DD28BAC00F7 for ; Tue, 10 Oct 2023 00:19:06 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=d/kkAOxEnCLaCv4WnVsNro24Ve25GuZfk/h6qhDcrD4=; 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=1696897145; v=1; b=wFjjhDC490qhUhX3pSjL50DQTlhD8I0exgcZ3mVH6aQiZ5+TlDP2rWLPnF179wyBxNUyZCgR o9r5M8WXZR5ZHDNemPic3LbAG21Glbq6HY5OfqK39SkuDKG5Rbrz8f4utgnXA/viUyl/9f0iwlI +0HD1sKeKNIzOgMe3Cz/Hc8M= X-Received: by 127.0.0.2 with SMTP id Fnv2YY7687511xiAVxkJyd4Z; Mon, 09 Oct 2023 17:19:05 -0700 X-Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mx.groups.io with SMTP id smtpd.web11.79653.1696897144980902798 for ; Mon, 09 Oct 2023 17:19:05 -0700 X-Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-692a885f129so3821109b3a.0 for ; Mon, 09 Oct 2023 17:19:04 -0700 (PDT) X-Gm-Message-State: QXlFF4gDSDNIGWVEwZpS0HGxx7686176AA= X-Google-Smtp-Source: AGHT+IFvYc8slC6HYUQ/9vETNksM5Wb17sKYv5t+Xf9wIxNunC9EV2/0p3uq7vaL21nT2rYUmM4G0A== X-Received: by 2002:a05:6a20:3d1e:b0:16b:80d3:7f10 with SMTP id y30-20020a056a203d1e00b0016b80d37f10mr9844398pzi.34.1696897144182; Mon, 09 Oct 2023 17:19:04 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 17:19:03 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Jian J Wang , Liming Gao , Dandan Bi , Debkumar De , Catharine West , John Schock Subject: [edk2-devel] [PATCH v2 4/4] MdeModulePkg: PeiMain: Updated dispatcher for delayed dispatch Date: Mon, 9 Oct 2023 17:18:55 -0700 Message-ID: <20231010001856.1567-5-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-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=wFjjhDC4; 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: John Schock Signed-off-by: Kun Qin --- Notes: v2: - Fix up author 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 f7f4cce84174..bec829dc17f3 100644 --- a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c +++ b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c @@ -2013,7 +2013,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.42.0.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109470): https://edk2.groups.io/g/devel/message/109470 Mute This Topic: https://groups.io/mt/101865811/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-