linux-stable/drivers/cxl
Dave Jiang 3b502e886d cxl/pmem: Add "Passphrase Secure Erase" security command support
Create callback function to support the nvdimm_security_ops() ->erase()
callback. Translate the operation to send "Passphrase Secure Erase"
security command for CXL memory device.

When the mem device is secure erased, cpu_cache_invalidate_memregion() is
called in order to invalidate all CPU caches before attempting to access
the mem device again.

See CXL 3.0 spec section 8.2.9.8.6.6 for reference.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/166983615293.2734609.10358657600295932156.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2022-12-01 12:42:35 -08:00
..
core cxl/pmem: Add "Passphrase Secure Erase" security command support 2022-12-01 12:42:35 -08:00
acpi.c cxl/acpi: Improve debug messages in cxl_acpi_probe() 2022-11-14 12:11:27 -08:00
cxl.h cxl: Replace HDM decoder granularity magic numbers 2022-11-14 12:11:27 -08:00
cxlmem.h cxl/pmem: Add "Passphrase Secure Erase" security command support 2022-12-01 12:42:35 -08:00
cxlpci.h cxl/port: Read CDAT table 2022-07-19 15:38:05 -07:00
Kconfig cxl/region: Allocate HPA capacity to regions 2022-07-25 12:18:06 -07:00
Makefile cxl/pmem: Introduce nvdimm_security_ops with ->get_flags() operation 2022-11-30 16:30:47 -08:00
mem.c cxl/mem: Enumerate port targets before adding endpoints 2022-07-21 17:19:25 -07:00
pci.c cxl/doe: Request exclusive DOE access 2022-11-14 10:07:22 -08:00
pmem.c cxl/pmem: Introduce nvdimm_security_ops with ->get_flags() operation 2022-11-30 16:30:47 -08:00
port.c cxl/port: Read CDAT table 2022-07-19 15:38:05 -07:00
security.c cxl/pmem: Add "Passphrase Secure Erase" security command support 2022-12-01 12:42:35 -08:00