From nobody Mon Feb 9 15:26:05 2026 Received: from mail-dl1-f51.google.com (mail-dl1-f51.google.com [74.125.82.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CA7238A71D for ; Fri, 30 Jan 2026 22:36:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769812588; cv=none; b=c7p5Te6OtnCO+KJvOBWc1yWjnvntOuve5xUEguJfJRZWvJDsFUFHgFh5+hUovF0U4ctdZ+ocYlvzxXA2TJvDvJqREcPw6kd1rYbNiRXU7SJgJLTXxSi0kvY8ASQgzNsY746XO+dtBdqMxMvMJXtg0Gb9LFTQzdadNkQziGMK0vc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769812588; c=relaxed/simple; bh=015mSL064ofEgXov54j0GAqTzrivrTmV8y9r3y1tJnI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=G5U1sUMQ3ZLy1DLzjEShtGrshu15Qq09ddl5l7hYRwqu48dsGZazRD9wwbodmNNQivbfC6zQl+YoSnCOsQzIiRlGOyUMDUms78B2sKye5K1/05O2REqtxcD0g62LQvGBgEHlO+ke61lTcWpnMkXPVpFfCaUq5bWEoDiPuFypZvQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com; spf=fail smtp.mailfrom=purestorage.com; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b=Z28p3zH/; arc=none smtp.client-ip=74.125.82.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=purestorage.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b="Z28p3zH/" Received: by mail-dl1-f51.google.com with SMTP id a92af1059eb24-124afd03fd1so4079136c88.0 for ; Fri, 30 Jan 2026 14:36:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1769812586; x=1770417386; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=X8PyANzTtrT2xWhov1X2x7JVr0z6OuDiAP84R/ndncw=; b=Z28p3zH/a1GLryz/bR6cp/zJV7QNsYxQX42CJug/egPhsFwNFtBomecXVW4pJpxnfX W5smWoMJO0Uicc9F/+u1+mSigRkW9jU92ESugrmtrpeLObh4z3qxKhc8dmIbz4Vsh8pG uCP6Y+XtavPnvv3QrZMf9gg6Qrwye163wY4no1Wk72P7DxRWaWlngZ7M8yq6n5wfZuyU 2g8f5nV4grO/P3wnYMA0CwbURoqrTLb1oIR+nvbnEnQrGoui/88GjxfSaSjyT2TrAzw0 1fB2ZL41yuUWtiobexszYIoOyPPjmkyUifPr/4/+wAZh6bn/oD3X38nWk0qhY8v+GNb3 NQjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769812586; x=1770417386; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=X8PyANzTtrT2xWhov1X2x7JVr0z6OuDiAP84R/ndncw=; b=Owr/dglh/uQHJQmzMmJqg1kKlmsUoBfdWoZB63ExOzGz5AFZblSxerya/xjziSprf/ Dp3In6LjqgOeB2y3tJOf4AxBVdAzhf1F57oMzTj/QugryZLBsdofYOfTfV59gziy6611 Wb7XZo458XHfZNT61zI9JBxtIqY6jRc0QPA6tg7iOxPFDf3TDze8l0am72GuUBDzIFET xwmniWFWBUA/4mNeqO+2vCnrIal/9gjRHHoA7+cDWQhITPYS3y71+EV3uvOvoIh1YDUb wG3lPLl/MReCDLsoOskeJrun1fYtyZTH355Bqf+tPecW4W/9lYUE1DQaF1aURls54T1j 9CNA== X-Forwarded-Encrypted: i=1; AJvYcCU51USyQELF3GYJPWC0G1o6m17nZtIELeLc2tM2aPfa3gJ/BdM7YGLEad15WLVJ3SPeTUw9Ty4r9+Ze0A0=@vger.kernel.org X-Gm-Message-State: AOJu0YxO2kHaMNTHaC3Kzwu/ZvQ7IQ+JrPMJpwXlDIfYU3Xccsi5dYBW MJAYoe/xukQFFtHbTvMsSkTe+C9UDCbzopBpz+N5XOHCDgsMfnYksGhBJ0yZQuAEVcs= X-Gm-Gg: AZuq6aJ4wPvc70mFd46RpiMMQn1v0M6qCsl3qdPLQ8MRoKREY6mfVdghdqpcZtnkO8n E3RWbOrUJsOa4vMCdglDYwXKFgHx+XWAXBzHaGwDGkjFfUE2K/ZHp1SkFWLPm2F2wQSX2d5HvFM f0+ilHQkxkUz9k/Hf92JcHdETd5u+TB2ySDR+N1/hFnAR5CqDGEgLZsPMLiNPdxGsUsWS+/DaFi EyCrr6C/dP97gz3rXSZXxsNL/mKmKU5+UV/A+6QauIygR/1g7zHMA38q7k4n4H4EpZ1mKl02ULf wAHyem85FB+21c6R4KUO4LDtWCoFTGxLe+wbT/mY6qm/gXKsaWqeBMbsQh0s1YEziPQq/Ywzg2N nr+XJDePCifFXiibmF/HDH/JAo2rUQoPUNh/8Y9kTTUCcmaUDeaE+acY+4EakXyvdSPl1u7eYJq boK/6fyjuCpc8NupbObJ6rB/G40gGTIKxSatx2jbXCf2eV X-Received: by 2002:a05:7022:6b94:b0:11a:e610:ee32 with SMTP id a92af1059eb24-125c0fe0435mr1902226c88.25.1769812585515; Fri, 30 Jan 2026 14:36:25 -0800 (PST) Received: from apollo.purestorage.com ([208.88.152.253]) by smtp.googlemail.com with ESMTPSA id a92af1059eb24-124a9d6b906sm13161717c88.4.2026.01.30.14.36.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jan 2026 14:36:25 -0800 (PST) From: Mohamed Khalfella To: Justin Tee , Naresh Gottumukkala , Paul Ely , Chaitanya Kulkarni , Christoph Hellwig , Jens Axboe , Keith Busch , Sagi Grimberg Cc: Aaron Dailey , Randy Jennings , Dhaval Giani , Hannes Reinecke , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Mohamed Khalfella Subject: [PATCH v2 02/14] nvmet/debugfs: Add ctrl uniquifier and random values Date: Fri, 30 Jan 2026 14:34:06 -0800 Message-ID: <20260130223531.2478849-3-mkhalfella@purestorage.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260130223531.2478849-1-mkhalfella@purestorage.com> References: <20260130223531.2478849-1-mkhalfella@purestorage.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Export ctrl->random and ctrl->uniquifier as debugfs files under controller debugfs directory. Signed-off-by: Mohamed Khalfella Reviewed-by: Hannes Reinecke Reviewed-by: Sagi Grimberg --- drivers/nvme/target/debugfs.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/drivers/nvme/target/debugfs.c b/drivers/nvme/target/debugfs.c index 5dcbd5aa86e1..1300adf6c1fb 100644 --- a/drivers/nvme/target/debugfs.c +++ b/drivers/nvme/target/debugfs.c @@ -152,6 +152,23 @@ static int nvmet_ctrl_tls_concat_show(struct seq_file = *m, void *p) } NVMET_DEBUGFS_ATTR(nvmet_ctrl_tls_concat); #endif +static int nvmet_ctrl_instance_ciu_show(struct seq_file *m, void *p) +{ + struct nvmet_ctrl *ctrl =3D m->private; + + seq_printf(m, "%02x\n", ctrl->ciu); + return 0; +} +NVMET_DEBUGFS_ATTR(nvmet_ctrl_instance_ciu); + +static int nvmet_ctrl_instance_cirn_show(struct seq_file *m, void *p) +{ + struct nvmet_ctrl *ctrl =3D m->private; + + seq_printf(m, "%016llx\n", ctrl->cirn); + return 0; +} +NVMET_DEBUGFS_ATTR(nvmet_ctrl_instance_cirn); =20 int nvmet_debugfs_ctrl_setup(struct nvmet_ctrl *ctrl) { @@ -184,6 +201,10 @@ int nvmet_debugfs_ctrl_setup(struct nvmet_ctrl *ctrl) debugfs_create_file("tls_key", S_IRUSR, ctrl->debugfs_dir, ctrl, &nvmet_ctrl_tls_key_fops); #endif + debugfs_create_file("ciu", S_IRUSR, ctrl->debugfs_dir, ctrl, + &nvmet_ctrl_instance_ciu_fops); + debugfs_create_file("cirn", S_IRUSR, ctrl->debugfs_dir, ctrl, + &nvmet_ctrl_instance_cirn_fops); return 0; } =20 --=20 2.52.0