]> git.baikalelectronics.ru Git - kernel.git/commit
libnvdimm, label: change min label storage size per UEFI 2.7
authorToshi Kani <toshi.kani@hpe.com>
Fri, 23 Feb 2018 21:59:21 +0000 (14:59 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 15 Mar 2018 17:44:32 +0000 (10:44 -0700)
commit0a756f8dc35e1bc5dbdc0d60a3b22fded82ac175
tree1b0bba64c7ae68f02c190f4111258fdeefa77933
parentf48bca9a35b58155bfa1158c9ea762b3e2edb186
libnvdimm, label: change min label storage size per UEFI 2.7

UEFI 2.7 defines in page 758 that:

  Initial Label Storage Area Configuration
     :
  The minimum size of the Label Storage Area is large enough to
  hold 2 index blocks and 2 labels.

The mininum index block size is 256 bytes, and the minimum label size
is also 256 bytes.

Change ND_LABEL_MIN_SIZE to (256 * 4) so that NVDIMM devices with
the minimum label storage area do not fail with the size check in
nvdimm_init_config_data().

Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/label.h