public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH edk2-platforms v1 0/1] Use BaseMemoryLibMmio with NorFlashDxe
@ 2020-05-14  8:46 Sami Mujawar
  2020-05-14  8:46 ` [PATCH edk2-platforms v1 1/2] Platform/ARM: Link NorFlashDxe with BaseMemoryLibMmio Sami Mujawar
  2020-05-14  8:46 ` [PATCH edk2-platforms v1 2/2] Platform/Comcast: " Sami Mujawar
  0 siblings, 2 replies; 3+ messages in thread
From: Sami Mujawar @ 2020-05-14  8:46 UTC (permalink / raw)
  To: devel
  Cc: Sami Mujawar, ard.biesheuvel, leif, thomas.abraham,
	Matteo.Carlini, Laura.Moretta, nd

NorFlashDxe must use aligned MMIO accesses to
read data from flash as this is device memory.

The AlignedCopyMem() in NorFlashDxe was used to
copy the flash data which prevented unaligned
access to device memory. However, the compiler
could optimize the code to generate pre/post
indexed or LDP operations. This is a problem
for guest/virtual firmware as the hypervisor
code cannot get the syndrome information for
the trapped accesses.

With the introduction of virtual firmware
support for Kvmtool guests, it is necessary
to link NorFlashDxe with BaseMemoryLibMmio
(as it enforces aligned MMIO accesses).

This patch series updates the workspaces
for platforms that use the NorFlashDxe to
link with BaseMemoryLibMmio.

This patch series is dependent on the edk2
patch series that implements BaseMemoryLibMmio
and can be seen at:
https://edk2.groups.io/g/devel/topic/patch_v2_00_11_kvmtool/74200861?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,74200861

This changes in this patch series can be seen at:
https://github.com/samimujawar/edk2-platforms/tree/299_kvmtool_plat_support_v2

Sami Mujawar (2):
  Platform/ARM: Link NorFlashDxe with BaseMemoryLibMmio
  Platform/Comcast: Link NorFlashDxe with BaseMemoryLibMmio

 Platform/ARM/JunoPkg/ArmJuno.dsc                     | 7 +++++--
 Platform/ARM/SgiPkg/SgiPlatform.dsc.inc              | 5 ++++-
 Platform/ARM/VExpressPkg/ArmVExpress-CTA15-A7.dsc    | 7 +++++--
 Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc | 7 +++++--
 Platform/Comcast/RDKQemu/RDKQemu.dsc                 | 8 ++++++--
 5 files changed, 25 insertions(+), 9 deletions(-)

-- 
'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'


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

end of thread, other threads:[~2020-05-14  8:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-14  8:46 [PATCH edk2-platforms v1 0/1] Use BaseMemoryLibMmio with NorFlashDxe Sami Mujawar
2020-05-14  8:46 ` [PATCH edk2-platforms v1 1/2] Platform/ARM: Link NorFlashDxe with BaseMemoryLibMmio Sami Mujawar
2020-05-14  8:46 ` [PATCH edk2-platforms v1 2/2] Platform/Comcast: " Sami Mujawar

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