BUG: EFI capsule loader fails as of 4.13, the capsule is not passed in contiguous virtual memory
From: Richard Ruigrok
Date: Thu Dec 21 2017 - 16:42:50 EST
The capsule pointer passed to efi services are expected to be in contiguous virtual memory, as per the EFI 2.6 Spec section 7.5.3, excerpt below.
This issue was previously reported and fixed in 4.9 stable: 6862e6ad95e9Â efi/capsule: Allocate whole capsule into virtual memory
The series "First batch of EFI updates for v4.13" includes changes that break the efi loader as it is now passing only the first physical page of the EFI capsule. As a result efi capsule updates are failing on Centriq products.
The series by Ge Song "Make capsules in a contiguous virtual space" was verified to work.Â
Ref to the spec:
"CapsuleHeaderArrayVirtual pointer to an array of virtual pointers to the capsules being passed into update capsule. Each capsules is assumed to stored in contiguous virtual memory."
--
Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.