• Chen Yu's avatar
    ACPI: Introduce Platform Firmware Runtime Update device driver · 0db89fa2
    Chen Yu authored
    Introduce the pfr_update driver which can be used for Platform Firmware
    Runtime code injection and driver update [1].
    
    The user is expected to provide the EFI capsule, and pass it to the
    driver by writing the capsule to a device special file. The capsule
    is transferred by the driver to the platform firmware with the help
    of an ACPI _DSM method under the special ACPI Platform Firmware
    Runtime Update device (INTC1080), and the actual firmware update is
    carried out by the low-level Management Mode code in the platform
    firmware.
    
    This change allows certain pieces of the platform firmware to be
    updated on the fly while the system is running (runtime) without the
    need to restart it, which is key in the cases when the system needs to
    be available 100% of the time and it cannot afford the downtime related
    to restarting it, or when the work carried out by the system is
    particularly important, so it cannot be interrupted, and it is not
    practical to wait until it is complete.
    
    Link: https://uefi.org/sites/default/files/resources/Intel_MM_OS_Interface_Spec_Rev100.pdf # [1]
    Tested-by: default avatarHongyu Ning <hongyu.ning@intel.com>
    Signed-off-by: default avatarChen Yu <yu.c.chen@intel.com>
    [ rjw: Subject and changelog edits ]
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    0db89fa2
pfr_update.c 15.9 KB