summaryrefslogtreecommitdiff
path: root/ShellBinPkg/License.txt
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-04-19 16:26:00 +0200
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-05-10 14:44:39 +0200
commita24f7d6680dd71616b0fcb9c5a65263fce1722be (patch)
tree3a463d017ff1832491895ab125510de1dbc371c5 /ShellBinPkg/License.txt
parent885d57ef091fd58916163e79ee694ddaf8fcc25e (diff)
downloadedk2-platforms-a24f7d6680dd71616b0fcb9c5a65263fce1722be.tar.xz
ArmPkg/ArmDmaLib: reject consistent DMA mappings of cached memory
DmaMap () operations of type MapOperationBusMasterCommonBuffer should return a mapping that is coherent between the CPU and the device. For this reason, the API only allows DmaMap () to be called with this operation type if the memory to be mapped was allocated by DmaAllocateBuffer (), which in this implementation guarantees the coherency by using uncached mappings on the CPU side. This means that, if we encounter a cached mapping in DmaMap () with this operation type, the code is either broken, or someone is violating the API, but simply proceeding with a double buffer makes no sense at all, and can only cause problems. So instead, actively reject this operation type for cached memory mappings. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'ShellBinPkg/License.txt')
0 files changed, 0 insertions, 0 deletions