Revision: 19455
          http://sourceforge.net/p/edk2/code/19455
Author:   hwu1225
Date:     2015-12-22 13:58:52 +0000 (Tue, 22 Dec 2015)
Log Message:
-----------
MdeModulePkg UfsPassThruDxe: Raise to TPL_NOTIFY when dealing async task

This commit will raise the Tpl to TPL_NOTIFY when adding non-blocking SCSI
I/O requests to the asynchronous task list.

This commit will also raise the Tpl of asynchronous task polling timer to
TPL_NOTIFY.

These changes are made to match the behavior in ScsiDiskDxe driver.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <[email protected]>
Reviewed-by: Feng Tian <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c
    trunk/edk2/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c

Modified: trunk/edk2/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c
===================================================================
--- trunk/edk2/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c        
2015-12-22 13:58:31 UTC (rev 19454)
+++ trunk/edk2/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c        
2015-12-22 13:58:52 UTC (rev 19455)
@@ -882,7 +882,7 @@
   //
   Status = gBS->CreateEvent (
                   EVT_TIMER | EVT_NOTIFY_SIGNAL,
-                  TPL_CALLBACK,
+                  TPL_NOTIFY,
                   ProcessAsyncTaskList,
                   Private,
                   &Private->TimerEvent

Modified: trunk/edk2/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c
===================================================================
--- trunk/edk2/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c     
2015-12-22 13:58:31 UTC (rev 19454)
+++ trunk/edk2/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c     
2015-12-22 13:58:52 UTC (rev 19455)
@@ -1512,7 +1512,7 @@
   // Insert the async SCSI cmd to the Async I/O list
   //
   if (Event != NULL) {
-    OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
+    OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
     TransReq->Packet      = Packet;
     TransReq->CallerEvent = Event;
     InsertTailList (&Private->Queue, &TransReq->TransferList);


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to