Skip to content

Commit 455a7b2

Browse files
Scott Baueraxboe
authored andcommitted
block: Add Sed-opal library
This patch implements the necessary logic to bring an Opal enabled drive out of a factory-enabled into a working Opal state. This patch set also enables logic to save a password to be replayed during a resume from suspend. Signed-off-by: Scott Bauer <scott.bauer@intel.com> Signed-off-by: Rafael Antognolli <Rafael.Antognolli@intel.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent 19641f2 commit 455a7b2

6 files changed

Lines changed: 3074 additions & 0 deletions

File tree

‎MAINTAINERS‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11075,6 +11075,17 @@ L: linux-mmc@vger.kernel.org
1107511075
S: Maintained
1107611076
F: drivers/mmc/host/sdhci-spear.c
1107711077

11078+
SECURE ENCRYPTING DEVICE (SED) OPAL DRIVER
11079+
M: Scott Bauer <scott.bauer@intel.com>
11080+
M: Jonathan Derrick <jonathan.derrick@intel.com>
11081+
M: Rafael Antognolli <rafael.antognolli@intel.com>
11082+
L: linux-nvme@lists.infradead.org
11083+
S: Supported
11084+
F: block/sed*
11085+
F: block/opal_proto.h
11086+
F: include/linux/sed*
11087+
F: include/uapi/linux/sed*
11088+
1107811089
SECURITY SUBSYSTEM
1107911090
M: James Morris <james.l.morris@oracle.com>
1108011091
M: "Serge E. Hallyn" <serge@hallyn.com>

‎block/Kconfig‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,13 @@ config BLK_DEBUG_FS
159159
Unless you are building a kernel for a tiny system, you should
160160
say Y here.
161161

162+
config BLK_SED_OPAL
163+
bool "Logic for interfacing with Opal enabled SEDs"
164+
---help---
165+
Builds Logic for interfacing with Opal enabled controllers.
166+
Enabling this option enables users to setup/unlock/lock
167+
Locking ranges for SED devices using the Opal protocol.
168+
162169
menu "Partition Types"
163170

164171
source "block/partitions/Kconfig"

‎block/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ obj-$(CONFIG_BLK_MQ_PCI) += blk-mq-pci.o
2727
obj-$(CONFIG_BLK_DEV_ZONED) += blk-zoned.o
2828
obj-$(CONFIG_BLK_WBT) += blk-wbt.o
2929
obj-$(CONFIG_BLK_DEBUG_FS) += blk-mq-debugfs.o
30+
obj-$(CONFIG_BLK_SED_OPAL) += sed-opal.o

0 commit comments

Comments
 (0)