public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Mapping frame buffer memory as uncached
@ 2017-12-20 15:17 Alexei Fedorov
  2017-12-20 15:22 ` Ard Biesheuvel
  0 siblings, 1 reply; 2+ messages in thread
From: Alexei Fedorov @ 2017-12-20 15:17 UTC (permalink / raw)
  To: ard.biesheuvel@linaro.org@arm.com, edk2-devel@lists.01.org
  Cc: Evan Lloyd, Mitch Ishihara, Matteo Carlini, Sami Mujawar,
	Girish Pathak, leif.lindholm@linaro.org, Jeremy Linton,
	ryan.harkin@linaro.org

Hi Ard,


The side effect of the following commit on 6 April:


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>

is that now frame buffer memory region has Executable attribute set, which can be checked in DS-5 debugger Memory Map tab.

Was this expected?


Thanks.

Alexei.




IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Mapping frame buffer memory as uncached
  2017-12-20 15:17 Mapping frame buffer memory as uncached Alexei Fedorov
@ 2017-12-20 15:22 ` Ard Biesheuvel
  0 siblings, 0 replies; 2+ messages in thread
From: Ard Biesheuvel @ 2017-12-20 15:22 UTC (permalink / raw)
  To: Alexei Fedorov
  Cc: ard.biesheuvel@linaro.org@arm.com, edk2-devel@lists.01.org,
	Evan Lloyd, Mitch Ishihara, Matteo Carlini, Sami Mujawar,
	Girish Pathak, leif.lindholm@linaro.org, Jeremy Linton,
	ryan.harkin@linaro.org

On 20 December 2017 at 15:17, Alexei Fedorov <Alexei.Fedorov@arm.com> wrote:
> Hi Ard,
>
>
> The side effect of the following commit on 6 April:
>
>
> 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>
>
> is that now frame buffer memory region has Executable attribute set, which
> can be checked in DS-5 debugger Memory Map tab.
>
> Was this expected?
>

Not for one second. Thanks for the report, I will propose a fix.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-20 15:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-20 15:17 Mapping frame buffer memory as uncached Alexei Fedorov
2017-12-20 15:22 ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox