[SRU][F:linux-bluefield] [PATCH v1 0/1] UBUNTU: SAUCE: mlx-bootctl: Support VPD info in EEPROM MFG

Shravan Kumar Ramani shravankr at nvidia.com
Mon Jun 14 10:50:16 UTC 2021


BugLink: https://bugs.launchpad.net/bugs/1931843

SRU Justification:

[Impact]
The EEPROM MFG partition on BlueField-2 has been updated to include the VPD
information for each card. In order to access these newly added fields,
the mlx-bootctl driver needs to be updated to provide an access mechanism.

[Fix]
Add support for VPD fields in the EEPROM MFG and provide access to these
via sysfs entries. The newly added sysfs entries are:
sku (SKU ID), modl (Model Number), sn (Serial Number) and uuid (UUID).
And the previously added opn_str sysfs has been renamed to opn.

[Test Case]
Though the driver provides read and write access through sysfs, the contents
of the MFG partition are written during Manufacturing and then locked in order
to protect the info. Writing to this partition will therefore require resetting
the MFG info from the UEFI Device Manager, which will unlock the partition and
allow for it to be reprogrammed.
Reading the sysfs entries will print the contents of each field. It could also
be empty if the field was not programmed earlier.

[Regression Potential]
Can be considered minimum, since the new fields have been added without
interfering with the existing fields which might already be programmed.

Shravan Kumar Ramani (1):
  UBUNTU: SAUCE: mlx-bootctl: Add support for VPD info in EEPROM MFG

 drivers/platform/mellanox/mlx-bootctl.c | 353 ++++++++++++++++++------
 1 file changed, 270 insertions(+), 83 deletions(-)

-- 
2.30.1




More information about the kernel-team mailing list