public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 1/2] uefi-sct/SctPkg: allowable NotifyTpl in CreateEventEx
@ 2021-01-06 12:42 Heinrich Schuchardt
  2021-01-06 12:42 ` [PATCH 2/2] uefi-sct/SctPkg: allowable NotifyTpl in CreateEvent Heinrich Schuchardt
  2021-02-01 14:37 ` [PATCH 1/2] uefi-sct/SctPkg: allowable NotifyTpl in CreateEventEx Samer El-Haj-Mahmoud
  0 siblings, 2 replies; 6+ messages in thread
From: Heinrich Schuchardt @ 2021-01-06 12:42 UTC (permalink / raw)
  To: EDK II Development
  Cc: Eric Jin, G Edhaya Chandran, Barton Gao, Arvin Chen, Liming Gao,
	Samer El-Haj-Mahmoud, Heinrich Schuchardt

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3057

According to table Table 27. TPL Restrictions in UEFI spec 2.8 B:

Event Notification Levels must be "> TPL_APPLICATION" and "<= TPL_HIGH_LEVEL".

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 <xypron.glpk@gmx.de>
---
 .../EventTimerTaskPriorityServicesBBTestCreateEventEx.c      | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/EventTimerTaskPriorityServices/BlackBoxTest/EventTimerTaskPriorityServicesBBTestCreateEventEx.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/EventTimerTaskPriorityServices/BlackBoxTest/EventTimerTaskPriorityServicesBBTestCreateEventEx.c
index c7f0a80f60b3..eb458de5e185 100644
--- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/EventTimerTaskPriorityServices/BlackBoxTest/EventTimerTaskPriorityServicesBBTestCreateEventEx.c
+++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/EventTimerTaskPriorityServices/BlackBoxTest/EventTimerTaskPriorityServicesBBTestCreateEventEx.c
@@ -228,6 +228,7 @@ BBTestCreateEventEx_Conf_Sub1 (
   EFI_TPL             NotifyTpls[] = {
                         TPL_CALLBACK,
                         TPL_NOTIFY,
+                        TPL_HIGH_LEVEL,
                         0
                       };
   EFI_GUID            *EventGroups[] = {
@@ -317,6 +318,7 @@ BBTestCreateEventEx_Conf_Sub2 (
   EFI_TPL             NotifyTpls[] = {
                         TPL_CALLBACK,
                         TPL_NOTIFY,
+                        TPL_HIGH_LEVEL,
                         0
                       };
   EFI_GUID            *EventGroups[] = {
@@ -411,6 +413,7 @@ BBTestCreateEventEx_Conf_Sub3 (
   EFI_TPL             NotifyTpls[] = {
                         TPL_CALLBACK,
                         TPL_NOTIFY,
+                        TPL_HIGH_LEVEL,
                         0
                       };
   EFI_GUID            *EventGroups[] = {
@@ -492,6 +495,8 @@ BBTestCreateEventEx_Conf_Sub4 (
                       };
   EFI_TPL             InvalidNotifyTpls[] = {
                         (EFI_TPL) (TPL_HIGH_LEVEL + 1),
+                        (EFI_TPL) TPL_APPLICATION,
+                        (EFI_TPL) (TPL_APPLICATION - 1),
                         (EFI_TPL) -1,
                         0
                       };
--
2.29.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-02-24  9:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-06 12:42 [PATCH 1/2] uefi-sct/SctPkg: allowable NotifyTpl in CreateEventEx Heinrich Schuchardt
2021-01-06 12:42 ` [PATCH 2/2] uefi-sct/SctPkg: allowable NotifyTpl in CreateEvent Heinrich Schuchardt
2021-02-01 14:33   ` Samer El-Haj-Mahmoud
2021-02-24  9:08     ` [edk2-devel] " G Edhaya Chandran
2021-02-01 14:37 ` [PATCH 1/2] uefi-sct/SctPkg: allowable NotifyTpl in CreateEventEx Samer El-Haj-Mahmoud
2021-02-24  9:07   ` [edk2-devel] " G Edhaya Chandran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox