Skip to content

use RT_PROPERTIES table to implement efi=novamap

Ard Biesheuvel linux-arm-kernel linux-arm-msm linux-efi 1 version Applied

Status from this message: This patch was applied to qcom/linux.git (refs/heads/for-next):

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 3 repliesApplied 1/1

Patches in v1 All 1 applied

#Subject and filesSizeRepliesApplied
1/1efi: stub: omit SetVirtualAddressMap() if marked unsupported in RT_PROP tabledrivers/firmware/efi/libstub/efi-stub.c+16 -01 replyApplied

Reviews trailers per patch

The patch has no Reviewed-by or Acked-by.

PatchShawn Guo
1/1T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/1] use RT_PROPERTIES table to implement efi=novamap

This patch addresses an oversight on my part when I implemented Linux side support for the EFI RT properties table: SetVirtualAddressMap() is itself a runtime service which is only callable at runtime to begin with, and so the EFI stub should only call it if it is not marked as unsupported.

This may be useful for the Snapdragon EFI based laptops, which already rely on a special EFI driver to expose the correct DT based on metadata exposed by EFI. These systems ship with a broken implementation of SetVirtualAddressMap, which is currently being worked around by passing efi=novamap on the kernel. command line.

After applying this patch (which I intend to propose for backporting to 5.10), the same can be achieved by exposing a RT_PROP table that marks SetVAMap() as unsupported. And while at it, better mark the variable services as unsupported as well, since they don't work under Linux either.

I'm open to extending this with a Linux specific override value kept in a EFI variable, so that platforms that cannot support DtbLoader are able to implement something similar.

Cc Jeffrey Hugo <[email protected]>,
Cc Bjorn Andersson <[email protected]>
Cc Shawn Guo <[email protected]>
Cc Rob Clark <[email protected]>
Cc Leif Lindholm <[email protected]>

Ard Biesheuvel (1):
efi: stub: omit SetVirtualAddressMap() if marked unsupported in
RT_PROP table

 drivers/firmware/efi/libstub/efi-stub.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
Signature · 1 line
2.30.1