• Dan Williams's avatar
    ACPI: NFIT: Define runtime firmware activation commands · 6450ddbd
    Dan Williams authored
    Platform reboots are expensive. Towards reducing downtime to apply
    firmware updates the Intel NVDIMM command definition is growing support
    for applying live firmware updates that only require temporarily
    suspending memory traffic instead of a full reboot.
    
    Follow-on commits add support for triggering firmware activation, this
    patch only defines the commands, adds probe support, and validates that
    they are blocked via the ioctl path. The ioctl-path block ensures that
    the OS is in charge since these commands have side effects only the OS
    can handle. Specifically firmware activation may cause the memory
    controller to be quiesced on the order of 100s of milliseconds. In that
    case Linux ensure the activation only takes place while the OS is in a
    suspend state.
    
    Link: https://pmem.io/documents/IntelOptanePMem_DSM_Interface-V2.0.pdf
    Cc: Vishal Verma <vishal.l.verma@intel.com>
    Cc: Dave Jiang <dave.jiang@intel.com>
    Cc: Ira Weiny <ira.weiny@intel.com>
    Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
    Cc: Len Brown <lenb@kernel.org>
    Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
    Signed-off-by: default avatarVishal Verma <vishal.l.verma@intel.com>
    6450ddbd
core.c 102 KB