]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPlatformPkg/FVP: map motherboard VRAM as uncached memory
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 6 Apr 2017 13:05:12 +0000 (14:05 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 6 Apr 2017 20:31:48 +0000 (21:31 +0100)
commit1344c8c6052c18744e914d0016f94d792f111604
tree82bd22916d6c08518c7484424189860bcddce26b
parent7c410b3d4180087020c7734bf67cdc4ad9fdb136
ArmPlatformPkg/FVP: map motherboard VRAM as uncached memory

The VRAM of the PL111 on the FVP Base/Foundation models is described as
device memory rather than uncached memory, which is not an accurate
description of the nature of the region (i.e., a framebuffer), and may
result in problems when using accelerated string routines to access the
region, since this may legally involve unaligned accesses or DC ZVA
instructions, which are not allowed on device mappings.

So split of the 8 MB VRAM region into a separate region, and map it using
memory attributes.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Jeremy Linton <jeremy.linton@arm.com>
Tested-by: Ryan Harkin <ryan.harkin@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM/ArmPlatform.h
ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSMMem.c