]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg UfsPassThruDxe: Raise to TPL_NOTIFY when dealing async task
authorHao Wu <hao.a.wu@intel.com>
Tue, 22 Dec 2015 13:58:52 +0000 (13:58 +0000)
committerhwu1225 <hwu1225@Edk2>
Tue, 22 Dec 2015 13:58:52 +0000 (13:58 +0000)
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 <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19455 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c
MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c

index aa40e2747097b40d286b2ebfc7635b38d70a860c..bfba7aafe8543e8d7de264be7ed8d9473682b14b 100644 (file)
@@ -882,7 +882,7 @@ UfsPassThruDriverBindingStart (
   //\r
   Status = gBS->CreateEvent (\r
                   EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
-                  TPL_CALLBACK,\r
+                  TPL_NOTIFY,\r
                   ProcessAsyncTaskList,\r
                   Private,\r
                   &Private->TimerEvent\r
index 81653af5a8ad2af41d9ff012a58c5120364f8773..a9fde3066fa2f661735510d176acb7360c3e8d1c 100644 (file)
@@ -1512,7 +1512,7 @@ UfsExecScsiCmds (
   // Insert the async SCSI cmd to the Async I/O list\r
   //\r
   if (Event != NULL) {\r
-    OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
+    OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
     TransReq->Packet      = Packet;\r
     TransReq->CallerEvent = Event;\r
     InsertTailList (&Private->Queue, &TransReq->TransferList);\r