From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by mx.groups.io with SMTP id smtpd.web10.7249.1609936972354992151 for ; Wed, 06 Jan 2021 04:42:52 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=bngqfwAn; spf=pass (domain: gmx.de, ip: 212.227.15.18, mailfrom: xypron.glpk@gmx.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1609936952; bh=jTxDWtGieBdv8rauIJWmKFpTD3d1pmuldZL7mQQA3to=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=bngqfwAn+7Uei+U0gQ/BMBainB9YJAOvbgJPdj7DETh7SBRIDJJFUIXFRBs1HsoBM H0o279CbKKp0ZkDN7GC0VOSRbx54qg3xv7XRLBs7PIzbnEQ8KjWATjoOQx7lRVx2mX kGBj+oYXswocEIg64YAxMi1TxGy4sM33AXYe3lq0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from workstation4.fritz.box ([62.143.246.89]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1N7iCW-1jtZDW2Pq6-014mbl; Wed, 06 Jan 2021 13:42:32 +0100 From: "Heinrich Schuchardt" To: EDK II Development Cc: Eric Jin , G Edhaya Chandran , Barton Gao , Arvin Chen , Liming Gao , Samer El-Haj-Mahmoud , Heinrich Schuchardt Subject: [PATCH 1/2] uefi-sct/SctPkg: allowable NotifyTpl in CreateEventEx Date: Wed, 6 Jan 2021 13:42:14 +0100 Message-Id: <20210106124215.60368-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:GoSJISfs9f6VhPhfnHa81egBnnCXDOHKUECvgITfftsBXCu50Km RH/HaK9HmwTp2i7BwQM8QSpIshDLUqU+fCj96lpnT1u8DIu08M4nB7aXlr+Q577PSJ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content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3057 According to table Table 27. TPL Restrictions in UEFI spec 2.8 B: Event Notification Levels must be "> TPL_APPLICATION" and "<=3D TPL_HIGH_L= EVEL". In the conformance test for CreateEvent() check that TPL_APPLICATION results in EFI_INVALID_PARAMETER if the event can be notified. Run the other conformance tests for TPL_HIGH_LEVEL, too. Signed-off-by: Heinrich Schuchardt =2D-- .../EventTimerTaskPriorityServicesBBTestCreateEventEx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/EventTimerTask= PriorityServices/BlackBoxTest/EventTimerTaskPriorityServicesBBTestCreateEv= entEx.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/EventTimerTaskPri= orityServices/BlackBoxTest/EventTimerTaskPriorityServicesBBTestCreateEvent= Ex.c index c7f0a80f60b3..eb458de5e185 100644 =2D-- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/EventTimerTaskPrior= ityServices/BlackBoxTest/EventTimerTaskPriorityServicesBBTestCreateEventEx= .c +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/EventTimerTaskPriorit= yServices/BlackBoxTest/EventTimerTaskPriorityServicesBBTestCreateEventEx.c @@ -228,6 +228,7 @@ BBTestCreateEventEx_Conf_Sub1 ( EFI_TPL NotifyTpls[] =3D { TPL_CALLBACK, TPL_NOTIFY, + TPL_HIGH_LEVEL, 0 }; EFI_GUID *EventGroups[] =3D { @@ -317,6 +318,7 @@ BBTestCreateEventEx_Conf_Sub2 ( EFI_TPL NotifyTpls[] =3D { TPL_CALLBACK, TPL_NOTIFY, + TPL_HIGH_LEVEL, 0 }; EFI_GUID *EventGroups[] =3D { @@ -411,6 +413,7 @@ BBTestCreateEventEx_Conf_Sub3 ( EFI_TPL NotifyTpls[] =3D { TPL_CALLBACK, TPL_NOTIFY, + TPL_HIGH_LEVEL, 0 }; EFI_GUID *EventGroups[] =3D { @@ -492,6 +495,8 @@ BBTestCreateEventEx_Conf_Sub4 ( }; EFI_TPL InvalidNotifyTpls[] =3D { (EFI_TPL) (TPL_HIGH_LEVEL + 1), + (EFI_TPL) TPL_APPLICATION, + (EFI_TPL) (TPL_APPLICATION - 1), (EFI_TPL) -1, 0 }; =2D- 2.29.2