platform/x86: mlx-platform: Add BIOS attributes for CoffeeLake COMEx based systems
authorVadim Pasternak <vadimp@nvidia.com>
Sat, 23 Oct 2021 09:40:21 +0000 (12:40 +0300)
committerHans de Goede <hdegoede@redhat.com>
Wed, 27 Oct 2021 14:29:03 +0000 (16:29 +0200)
commit4289fd4ad43afaed6d1515c573efe9e42a83219f
tree4b0a5080295b36c3ad57e992e0d0b101e276787f
parent9045512ca6cdb221cd1ed32d483eac3c30c53bed
platform/x86: mlx-platform: Add BIOS attributes for CoffeeLake COMEx based systems

Extend systems of class VMOD0010 equipped with CoffeeLake COMEx module
with BIOS related attributes to represent various BIOS statuses.
These attributes "bios_active_image", "bios_auth_fail",
"bios_upgrade_fail", "bios_safe_mode" has been already added to modular
system. This all of them are already documented.
- "bios_active_image" - location of current active BIOS image (0: Top,
  1: Bottom. The reported value should correspond to value expected by
  OS in case of BIOS safe mode is 0. This bit is related to Intel
  top-swap feature of DualBios on the same flash.
- "bios_auth_fail": BIOS upgrade is failed because provided BIOS image
  is not signed correctly.
- "bios_upgrade_fail" BIOS upgrade is failed by some reason not related
  to authentication. For example, due to physical SPI flash problem.
- "bios_safe_mod": - 0 : if BIOS is booted from a supposed active image;
  1 : BIOS safe mechanism was enforced by hardware (CPLD).

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Oleksandr Shamray <oleksandrs@nvidia.com>
Link: https://lore.kernel.org/r/20211023094022.4193813-3-vadimp@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/mlx-platform.c