Revision: 18759
http://sourceforge.net/p/edk2/code/18759
Author: abiesheuvel
Date: 2015-11-09 13:28:33 +0000 (Mon, 09 Nov 2015)
Log Message:
-----------
ArmPkg/ArmDmaLib: use the cache writeback granularity for alignment
When allocating memory to perform non-coherent DMA, use the cache
writeback granule rather than the data cache linesize for alignment.
This prevents the explicit cache maintenance from corrupting
unrelated adjacent data if the cache writeback granule exceeds
the cache linesize.
Reported-by: Mark Rutland <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Mark Rutland <[email protected]>
Reviewed-by: Leif Lindholm <[email protected]>
Modified Paths:
--------------
trunk/edk2/ArmPkg/Library/ArmDmaLib/ArmDmaLib.c
Modified: trunk/edk2/ArmPkg/Library/ArmDmaLib/ArmDmaLib.c
===================================================================
--- trunk/edk2/ArmPkg/Library/ArmDmaLib/ArmDmaLib.c 2015-11-09 13:28:17 UTC
(rev 18758)
+++ trunk/edk2/ArmPkg/Library/ArmDmaLib/ArmDmaLib.c 2015-11-09 13:28:33 UTC
(rev 18759)
@@ -277,7 +277,7 @@
Status = gBS->LocateProtocol (&gEfiCpuArchProtocolGuid, NULL, (VOID
**)&gCpu);
ASSERT_EFI_ERROR(Status);
- gCacheAlignment = ArmDataCacheLineLength ();
+ gCacheAlignment = ArmCacheWritebackGranule ();
return Status;
}
------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits