Linux CXL
 help / color / mirror / Atom feed
* [PATCH v2 0/3] cxl: BG operations and device sanitation
@ 2022-12-06  1:14 Davidlohr Bueso
  2022-12-06  1:14 ` [PATCH 1/3] cxl/mbox: Add background operation handling machinery Davidlohr Bueso
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Davidlohr Bueso @ 2022-12-06  1:14 UTC (permalink / raw)
  To: dan.j.williams; +Cc: ira.weiny, dave.jiang, Jonathan.Cameron, dave, linux-cxl

Hi,

This series adds support for the rest of the security related cxl operation
which are not strictly dependent on PMEM.

Patch 1 adds the required background cmd handling bits. While this is currently
only polling support, the idea is to follow up with an irq support once the
bits land in Ira's event work. All polling-specific code has been marked
as __maybe_unused.

Patch 2 implements the sanitation commands (overwrite and secure erase).

Patch 3 adds a support for secure erase mocking.

As for testing, while I used the mock device to test the secure erase command, I
ended up hacking up a prototype[0] for qemu to support overwrite and bg commands.
So while the some of the paths this series introduces have been exercised, there
is of course a lot more to do.

Applies on top of the 'for-6.2/cxl-security' in cxl.git.

Changes from rfc (https://lore.kernel.org/linux-cxl/20220804045029.2905056-1-dave@stgolabs.net/):

* Patch 1:
 - Added a cxlds->mbox_irq flag in order to separate the polling-specific requirements.
 - Made bg workqueue concurrent.
 - Address iteration mem commands style (Jonathan). Now just rely on cxl_mem_find_command + check
   bg flag + callback.
 - Don't error in cxl_mbox_check_cmd_bgcmd() if conflicts() callback is not defined (Jonathan).
 - Error out in cxl_mbox_send_cmd() upon corruption in cxl_mbox_bgcmd_begin() (Jonathan).
 - Do not prematurely add all bg capable opcodes (Jonathan).

* Patch 2:
  - Rework polling delay hinting (Dave).
  - Rely on CEL to see if command is supported instead of unconditionally sending it (Jonathan).

* Added patch 3.

[0]: https://github.com/davidlohr/qemu/commit/64a93a5b824b59d3b547f06f7fbb1269fb4790ce

Thanks!

Davidlohr Bueso (3):
  cxl/mbox: Add background operation handling machinery
  cxl/mem: Support sanitation commands
  tools/testing/cxl: Add "Secure Erase" opcode support

 Documentation/ABI/testing/sysfs-bus-cxl |  19 ++
 drivers/cxl/core/core.h                 |   3 +-
 drivers/cxl/core/mbox.c                 | 317 +++++++++++++++++++++++-
 drivers/cxl/core/memdev.c               |  54 ++++
 drivers/cxl/core/port.c                 |   1 +
 drivers/cxl/cxl.h                       |   8 +
 drivers/cxl/cxlmem.h                    |  65 ++++-
 drivers/cxl/pci.c                       |   4 +
 drivers/cxl/pmem.c                      |   5 +-
 drivers/cxl/security.c                  |  13 +-
 include/uapi/linux/cxl_mem.h            |   2 +
 tools/testing/cxl/test/mem.c            |  27 ++
 12 files changed, 497 insertions(+), 21 deletions(-)

--
2.38.1


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2022-12-20 15:35 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-06  1:14 [PATCH v2 0/3] cxl: BG operations and device sanitation Davidlohr Bueso
2022-12-06  1:14 ` [PATCH 1/3] cxl/mbox: Add background operation handling machinery Davidlohr Bueso
2022-12-06 23:47   ` Dave Jiang
2022-12-07  3:42     ` Davidlohr Bueso
2022-12-07 15:26       ` Dave Jiang
2022-12-07  1:55   ` Dan Williams
2022-12-07 15:33     ` Dave Jiang
2022-12-07 19:47       ` Dan Williams
2022-12-07 16:10     ` Davidlohr Bueso
2022-12-07 19:29       ` Davidlohr Bueso
2022-12-07 21:21       ` Dan Williams
2022-12-12 17:05         ` Davidlohr Bueso
2022-12-12 22:52           ` Dan Williams
2022-12-06  1:15 ` [PATCH 2/3] cxl/mem: Support sanitation commands Davidlohr Bueso
2022-12-07  2:20   ` Dan Williams
2022-12-07 16:35     ` Davidlohr Bueso
2022-12-07 21:24       ` Dan Williams
2022-12-19 17:43   ` Jonathan Cameron
2022-12-19 20:47     ` Davidlohr Bueso
2022-12-20 15:35       ` Jonathan Cameron
2022-12-06  1:15 ` [PATCH 3/3] tools/testing/cxl: Add "Secure Erase" opcode support Davidlohr Bueso
2022-12-07  2:32   ` Dan Williams
2022-12-07  0:09 ` [PATCH v2 0/3] cxl: BG operations and device sanitation Dan Williams
2022-12-07  3:03   ` Davidlohr Bueso
2022-12-07 19:16     ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox