Revision: 19476
http://sourceforge.net/p/edk2/code/19476
Author: hwu1225
Date: 2015-12-23 01:39:05 +0000 (Wed, 23 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.
(Sync patch r19455 from main trunk.)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <[email protected]>
Reviewed-by: Feng Tian <[email protected]>
Revision Links:
--------------
http://sourceforge.net/p/edk2/code/19455
Modified Paths:
--------------
branches/UDK2015/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c
branches/UDK2015/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c
Modified: branches/UDK2015/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c
===================================================================
--- branches/UDK2015/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c
2015-12-23 01:38:41 UTC (rev 19475)
+++ branches/UDK2015/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c
2015-12-23 01:39:05 UTC (rev 19476)
@@ -882,7 +882,7 @@
//
Status = gBS->CreateEvent (
EVT_TIMER | EVT_NOTIFY_SIGNAL,
- TPL_CALLBACK,
+ TPL_NOTIFY,
ProcessAsyncTaskList,
Private,
&Private->TimerEvent
Modified: branches/UDK2015/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c
===================================================================
--- branches/UDK2015/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c
2015-12-23 01:38:41 UTC (rev 19475)
+++ branches/UDK2015/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c
2015-12-23 01:39:05 UTC (rev 19476)
@@ -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