From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753267AbcDVXNQ (ORCPT ); Fri, 22 Apr 2016 19:13:16 -0400 Received: from mga11.intel.com ([192.55.52.93]:20739 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752120AbcDVXNP (ORCPT ); Fri, 22 Apr 2016 19:13:15 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,519,1455004800"; d="scan'208";a="790522192" From: Rafael Antognolli To: linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Rafael Antognolli Subject: [PATCH 0/2] Add Opal unlock support to NVMe. Date: Fri, 22 Apr 2016 16:12:10 -0700 Message-Id: <1461366732-31779-1-git-send-email-rafael.antognolli@intel.com> X-Mailer: git-send-email 2.4.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series implement a small set of the Opal protocol for self encrypting devices. It's implemented only what is needed for saving a password and unlocking a given "locking range". The password is saved on the driver and replayed back to the device on resume from suspend to RAM. It is specifically supporting the single user mode. It is not planned to implement the full Opal protocol (at least not for now). Rafael Antognolli (2): Add optane OPAL unlocking code. NVMe: Add ioctls to save and unlock an Opal locking range. drivers/nvme/host/Kconfig | 7 + drivers/nvme/host/Makefile | 1 + drivers/nvme/host/core.c | 9 + drivers/nvme/host/opal.c | 1270 +++++++++++++++++++++++++++++++++++++ drivers/nvme/host/opal.h | 73 +++ drivers/nvme/host/opal_internal.h | 501 +++++++++++++++ include/uapi/linux/nvme_ioctl.h | 7 + 7 files changed, 1868 insertions(+) create mode 100644 drivers/nvme/host/opal.c create mode 100644 drivers/nvme/host/opal.h create mode 100644 drivers/nvme/host/opal_internal.h -- 1.9.1