mlxbf-bootctl: Support the large icmc write/read
authorAsmaa Mnebhi <asmaa@nvidia.com>
Wed, 9 Aug 2023 16:28:56 +0000 (12:28 -0400)
committerHans de Goede <hdegoede@redhat.com>
Thu, 10 Aug 2023 09:12:46 +0000 (11:12 +0200)
commitb18a97ed9006cac03105dde68e000b8e7468848a
treeb52409971b388c9c03b0c22ec47d06b2f64bb4ae
parent7295a996fdab7bf83dc3d4078fa8b139b8e0a1bf
mlxbf-bootctl: Support the large icmc write/read

Enable reading and writing the size of the memory region associated
with the large ICM carveout.
The max size of the large ICM carveout is 1TB, has a granularity
of 128MB and will be passed and printed in hex. The size unit is MB.

Signed-off-by: Asmaa Mnebhi <asmaa@nvidia.com>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20230809162857.21243-2-asmaa@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/mellanox/mlxbf-bootctl.c
drivers/platform/mellanox/mlxbf-bootctl.h