On Wed, 21 Sep 2022, Dave Jiang wrote:
Set the cxlds->serial as the dimm_id to be fed to __nvdimm_create(). The security code uses that as the key description for the security key of the memory device. The nvdimm unlock code cannot find the respective key without the dimm_id.
Maybe I'm being daft but I don't see why cxlds->serial could not just be used for __nvdimm_create() instead of adding a new member.