Skip to contentSkip to conversation

efi/arm64: store Runtime Services revision

PATCH New Semen Protsenko 3 participants 4 messages Aug 15, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 efi/arm64: store Runtime Services revision

"efi" global data structure contains "runtime_version" field which must be assigned in order to use it later in Runtime Services virtual calls (virt_efi_* functions).

Before this patch "runtime_version" was unassigned (0), so each Runtime Service virtual call that checks revision would fail.

---
 arch/arm64/kernel/efi.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/kernel/efi.c +2 -0
index e72f310..5dbb7bd 100644
@@ -463,6 +463,8 @@ static int __init arm64_enter_virtual_mode(void)
 	efi_native_runtime_setup();
 	set_bit(EFI_RUNTIME_SERVICES, &efi.flags);
 
+	efi.runtime_version = efi.systab->hdr.revision;
+
 	return 0;
 
 err_unmap:
Signature · 1 line
2.0.1
#1 lore raw

PATCH v2 1/1 efi/arm64: store Runtime Services revision

Quoted 8 lines · Semen Protsenko

"efi" global data structure contains "runtime_version" field which must be assigned in order to use it later in Runtime Services virtual calls (virt_efi_* functions).

Before this patch "runtime_version" was unassigned (0), so each Runtime Service virtual call that checks revision would fail.

@Matt, could you take this?

Signature · 1 line
Ard.
Quoted 20 lines
---
 arch/arm64/kernel/efi.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/kernel/efi.c +2 -1
index e72f310..5dbb7bd 100644
@@ -463,6 +463,8 @@ static int __init arm64_enter_virtual_mode(void)
        efi_native_runtime_setup();
        set_bit(EFI_RUNTIME_SERVICES, &efi.flags);
 
+       efi.runtime_version = efi.systab->hdr.revision;
+
        return 0;
 
 err_unmap:
--

2.0.1

#2 lore raw

PATCH v2 1/1 efi/arm64: store Runtime Services revision

Quoted 5 lines · Ard Biesheuvel
Quoted 4 lines · Semen Protsenko

"efi" global data structure contains "runtime_version" field which must be assigned in order to use it later in Runtime Services virtual calls (virt_efi_* functions).

Quoted 8 lines
Quoted 4 lines

Before this patch "runtime_version" was unassigned (0), so each Runtime Service virtual call that checks revision would fail.

@Matt, could you take this?

Certainly. Looks like this should go into the 'urgent' queue and be tagged for stable?

Signature · 1 line
Matt Fleming, Intel Open Source Technology Center
#3 lore raw

PATCH v2 1/1 efi/arm64: store Runtime Services revision

Quoted 9 lines · Matt Fleming
Quoted 8 lines · Ard Biesheuvel
Quoted 7 lines · Semen Protsenko

"efi" global data structure contains "runtime_version" field which must be assigned in order to use it later in Runtime Services virtual calls (virt_efi_* functions).

Before this patch "runtime_version" was unassigned (0), so each Runtime Service virtual call that checks revision would fail.

Quoted 9 lines
Quoted 5 lines
Quoted 1 line

@Matt, could you take this?

Certainly. Looks like this should go into the 'urgent' queue and be tagged for stable?

Yes, please (for 3.16)

Signature · 1 line
Ard.