From nobody Mon Aug 07 22:45:41 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RKWcj3Lvgz4mSZq; Mon, 7 Aug 2023 22:45:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RKWcj2jXnz4NxF; Mon, 7 Aug 2023 22:45:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691448341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=l/h15wOesUxwEV9KhVKY7SPJpEHx6VfNx3Ar6AR5QNA=; b=yADyVgmBThfU2pDt4EP8Ypyjm62LHBPGnYCYnvL7GlTgFKF4V5bDL9j+XrAaW8/eA3Ez6j 4x2KgBDdumB9FVa9hJ/IupwwLfw5aPwseJV5DcHGKhpUSSi9I4JnzZVQZSRu1yLr6J4LQZ 4OQSDGtDepjeBQsWVgVSLK+QxdCnq1UIaaNqSPn3rLPe3duPewJRAAxciO8R7a3O3Q1ZT7 R1Bv0LoxrnUMtDu/48lSvOisoJq92v+0bW0EFtYhK1N2PhyxVDJozd2/oYHnSrdmtvGidI 1liAVuCGpXaQKSdzL5ileuFCGZz10b6FRS3SSkneR5nsDudpnNjWrD4Hb7AjjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691448341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=l/h15wOesUxwEV9KhVKY7SPJpEHx6VfNx3Ar6AR5QNA=; b=wZ81vhs4EcajPtwHbPH16gxmMw9HFs5NdNy5Gb53N8L8d6PDfvZG3hqcqu3dw4cSAUHUft gkV0HlzhVYDeOrDvgqL/9NyOxFEctOycJUzQYKIa1X/Jdwyl6FBkdz4fQVIyAYooZyu68p kDOaahngLpYpmN7+KpSZ6qOhtJXQkxcOFIThoFfKq1EGsb8QHzERKPkdtVTh0jCmrYMECd fQEvVc5P78H9TPootIbxVmdvpxh186BBggqihLXYFFB5AOFQEI9+9+J9LODl8kH1CRWtAu 0cT7qguHAuu+fIwBPYE3XQqdybDRFQQ31M8dRBtdEnQO2dPiZeDiuOoPf2TEFA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691448341; a=rsa-sha256; cv=none; b=sUP0nHYtdJqJe14SK4sBXtf5ncJo6b9lXBCFwynsHfrQ/dbUTGYl456NJ2cDUIUbCp81i7 d3ChDKp7PxKDsHrs5lEbpFM+kEYZ7da0ZYa+/VCtgv3IHrNuT5uyN/ekV6SRdXHUUHOLeL CY0M6eUaJxoojRacnq/9H7IQt96439WBj8TfiOeKLVPUjITxD12nNmxjmoKl/USeKeuivV gamX1SLgnOl46ry2dveXv43MbEmNH0GOMQ7FCupaN9vUwmr2I3lxG9EzLcQFQlhOZ2iOV2 aiyN64owY7xH50X3npaO4ovNGyBSpr8Cr2KCdOt80kkUZAA5g+cbk8gJk7Zm1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RKWcj1Tygz18jD; Mon, 7 Aug 2023 22:45:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 377Mjf9F058656; Mon, 7 Aug 2023 22:45:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 377MjfGX058655; Mon, 7 Aug 2023 22:45:41 GMT (envelope-from git) Date: Mon, 7 Aug 2023 22:45:41 GMT Message-Id: <202308072245.377MjfGX058655@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: ac8c866fda40 - main - nvme: Add more NVME Base Spec 2.0 and NVME Command Set Spec 1.0a List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ac8c866fda40d55d6a602da76b665748738d1c79 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=ac8c866fda40d55d6a602da76b665748738d1c79 commit ac8c866fda40d55d6a602da76b665748738d1c79 Author: Warner Losh AuthorDate: 2023-08-07 22:35:38 +0000 Commit: Warner Losh CommitDate: 2023-08-07 22:44:31 +0000 nvme: Add more NVME Base Spec 2.0 and NVME Command Set Spec 1.0a Add admin commands capacity management, lockdown and fabrics commands. Add I/O copy command. Sponsored by: Netflix Reviewed by: chuck, mav, jhb Differential Revision: https://reviews.freebsd.org/D41311 --- sys/dev/nvme/nvme.h | 10 +++++++++- sys/dev/nvme/nvme_qpair.c | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/sys/dev/nvme/nvme.h b/sys/dev/nvme/nvme.h index b8e2813e977b..b63a7d0bf270 100644 --- a/sys/dev/nvme/nvme.h +++ b/sys/dev/nvme/nvme.h @@ -851,8 +851,14 @@ enum nvme_admin_opcode { NVME_OPC_VIRTUALIZATION_MANAGEMENT = 0x1c, NVME_OPC_NVME_MI_SEND = 0x1d, NVME_OPC_NVME_MI_RECEIVE = 0x1e, - /* 0x1f-0x7b - reserved */ + /* 0x1f - reserved */ + NVME_OPC_CAPACITY_MANAGEMENT = 0x20, + /* 0x21-0x23 - reserved */ + NVME_OPC_LOCKDOWN = 0x24, + /* 0x15-0x7b - reserved */ NVME_OPC_DOORBELL_BUFFER_CONFIG = 0x7c, + /* 0x7d-0x7e - reserved */ + NVME_OPC_FABRICS_COMMANDS = 0x7f, NVME_OPC_FORMAT_NVM = 0x80, NVME_OPC_SECURITY_SEND = 0x81, @@ -882,6 +888,8 @@ enum nvme_nvm_opcode { NVME_OPC_RESERVATION_ACQUIRE = 0x11, /* 0x12-0x14 - reserved */ NVME_OPC_RESERVATION_RELEASE = 0x15, + /* 0x16-0x18 - reserved */ + NVME_OPC_COPY = 0x19, }; enum nvme_feature { diff --git a/sys/dev/nvme/nvme_qpair.c b/sys/dev/nvme/nvme_qpair.c index 988c82741592..34a3633fdb2e 100644 --- a/sys/dev/nvme/nvme_qpair.c +++ b/sys/dev/nvme/nvme_qpair.c @@ -73,7 +73,10 @@ static struct nvme_opcode_string admin_opcode[] = { { NVME_OPC_VIRTUALIZATION_MANAGEMENT, "VIRTUALIZATION MANAGEMENT" }, { NVME_OPC_NVME_MI_SEND, "NVME-MI SEND" }, { NVME_OPC_NVME_MI_RECEIVE, "NVME-MI RECEIVE" }, + { NVME_OPC_CAPACITY_MANAGEMENT, "CAPACITY MANAGEMENT" }, + { NVME_OPC_LOCKDOWN, "LOCKDOWN" }, { NVME_OPC_DOORBELL_BUFFER_CONFIG, "DOORBELL BUFFER CONFIG" }, + { NVME_OPC_FABRICS_COMMANDS, "FABRICS COMMANDS" }, { NVME_OPC_FORMAT_NVM, "FORMAT NVM" }, { NVME_OPC_SECURITY_SEND, "SECURITY SEND" }, { NVME_OPC_SECURITY_RECEIVE, "SECURITY RECEIVE" }, @@ -95,6 +98,7 @@ static struct nvme_opcode_string io_opcode[] = { { NVME_OPC_RESERVATION_REPORT, "RESERVATION REPORT" }, { NVME_OPC_RESERVATION_ACQUIRE, "RESERVATION ACQUIRE" }, { NVME_OPC_RESERVATION_RELEASE, "RESERVATION RELEASE" }, + { NVME_OPC_COPY, "COPY" }, { 0xFFFF, "IO COMMAND" } };