]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/papr_scm: Use ibm,unit-guid as the iset cookie
authorOliver O'Halloran <oohall@gmail.com>
Thu, 6 Dec 2018 15:17:13 +0000 (02:17 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 9 Dec 2018 10:32:51 +0000 (21:32 +1100)
commit278639ac4aaccc976a2d5e935cf2d20e3ca54c30
tree796659fcd2a4b87255bfc8afd55ab04e31957b81
parentd3867beef83f51668b9a4ede055c9fd03d2ff175
powerpc/papr_scm: Use ibm,unit-guid as the iset cookie

The interleave set cookie is used to determine if a label stored in the
metadata space should be applied to the current region. This is
important in the case of NVDIMMs since the firmware may change the
interleaving configuration of a DIMM which would invalidate the existing
labels. In our case the hypervisor hides those details from us so we
don't really care, but libnvdimm still requires the interleave set
cookie to be non-zero.

For our purposes we just need the set cookie to be unique and fixed for
a given PAPR SCM region and using the unit-guid (really a UUID) is fine
for this purpose.

Fixes: 3f927cd9ef76 ("powerpc/pseries: Add driver for PAPR SCM regions")
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
[mpe: Use kernel types (u64)]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/papr_scm.c