From nobody Fri Apr 3 00:00:13 2026 Received: from mail-dl1-f67.google.com (mail-dl1-f67.google.com [74.125.82.67]) (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 9B16B221F26 for ; Sat, 14 Feb 2026 04:28:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.67 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771043304; cv=none; b=eL1tAwWPeVUuAOuTP2rVx25EmuGtCEIMHlIqgUMnKE2Snag2PJD9KCSzBiRNTKdF9aE5RzRutzCdw8hygLZ8oHMWjg+bLocIDKz2M5sL65ryQcR2ZFjJcwmsU/ecMv+fbVipX+uY0HMJzMmzY4/RmJ1xIynoUupXxEK64bAj0Go= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771043304; c=relaxed/simple; bh=VY7znN3rP/XuecIcYOIeWnzhVhdmypuwu3Lu5HvoHig=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KBp5AAFX+VaVajwXnxOf5rlTmLDCRxqXXaaWNd0883S3a90hJOskDaSd4FMAClyktycUME3PUd09WHe1Z5hwzqjYzMFZB/Cdl0dSiVTHo/HXdUG+QWiIwYMUY8gvE2Ls6Qd2V47dQxk85OL23pv4sAKSBkopw4msMTGlTUhMgQI= 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=IQiT8/70; arc=none smtp.client-ip=74.125.82.67 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="IQiT8/70" Received: by mail-dl1-f67.google.com with SMTP id a92af1059eb24-1271195d2a7so1945328c88.0 for ; Fri, 13 Feb 2026 20:28:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1771043303; x=1771648103; 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=+voUH76g/Pq9YBKjG67uJM4aaUaY9JLa+bj+ayVk72U=; b=IQiT8/700rVuH0QEBqvNAHWhE5YIFzc2wxN++9XpkSyPxSjPmYuejfABno1jd0s1LH WWaJx5pHOfjRqCxKbzxo+5TAxZh8Y2+57qvcRErwddMeK6q8KHqPNqjSsiC6fN+vMm4F GDyjWIL4kZLo/dUsV472ft/oKtrpmlrQ/AgnSQGn2AC8BKpbW6Jq5ZR8ykH/LYs4vp3G ThiIT0ORIpOQBGI9Te065BGwot/IJbFbDWiEcO5Wn5pzmAHIicBPoE9Ekz0k/ixOhHMb OMIxJUTWWb7Trew5PpEv27Q7YwdpgLYOeUIpqne4VwFpA70A2vhopdTRGP6W7AxbIph8 aspQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771043303; x=1771648103; 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=+voUH76g/Pq9YBKjG67uJM4aaUaY9JLa+bj+ayVk72U=; b=P0K3JKFQn2G/DcxLVROatOO164bsKBP2bmCsFVtFDK/UvSx6VD+JspuZJpVvI1WhCn XPw9EVKlQPdP7A6MDjQTRePi55fgGOIX6SVtUJLs3tUP3DTBHfjvB5OybdccJi9uIP3O 08LHQ2UXiZvXK06kWm6sR1OLq8x7lyxc1lnkYoQYJ3V64MAyWr6EKjmTNWtORcX76h9K 7+DG5ya8xvXCAPfc0ZYo3WGMX9mgqGvuEU0qhpE/P3EoP9Nulg/SegjgFSao4hpZGyfW Xin7JmgAmMq1om+rISt/pH4oIp7eFk9O+jY0mLKIjzUebRxV6jsw4g7BoJ/7dPwVPosg rHyw== X-Forwarded-Encrypted: i=1; AJvYcCWJrNG9jN72C6uJVaXMekIjjWV7YpgxjOhvpZ66Wl+xfpxn7f9X54Kh/GAIj4+43v8XdsG3o+5cQMXZHtc=@vger.kernel.org X-Gm-Message-State: AOJu0YxJ6byMcHT6UYvopMD4fxPF+qMlgoQVZR9c1zGweKRJrPujCiEM R6Pie5hOhB5Krd4aqpe2lKkduWDQS9ASifsH8slcaEQbDddpMV8gQcq5lbVBfchsqbQ= X-Gm-Gg: AZuq6aL1OZrR3a1jdKDY/iviZWURaeSLZlc6uecuC4y8d0VFbMR2xMbUmg9aydCBCF+ 9CurMCSvRK+1A5OueTOaHHmA6Gk1JMf2x9s74BFpCIdJ6dv7jqpa9K1dTdxKNK3pdcvbScmc9VT 9HMro4+u1rmZAFw744yI3gXRbJdenBDqy6FiFr1nI64Tr0a8IzU/wTxJ82TiMFdEGPYv+mRX7FD +wdD2o6VuvcmDQN+50oSAAnDNiBmjQU+l5xZB37uc5H8iIBBMxW/wj8nMEaSDgDG/YfxF9s02KJ FLlD6hjYZI1QcaHR1D/GyHq8nXzlYpImltwjyIrGLTll/YQ9R6iVajeiVUUqbOSC20SRYjGzlkp RWa9SR0tgGXJuiNmZMqN8As2YOijKrykuW2a8g/EiSOAfLMXUgn/oQieSXeyKMUl5uIj2KAx0e2 VmDadRMHjLjOM/HYzGRd/JtoLAe4iXPtsc8txdVHavRMnc5g== X-Received: by 2002:a05:7022:439b:b0:11b:9386:a3c3 with SMTP id a92af1059eb24-12741bea9e8mr875209c88.46.1771043302619; Fri, 13 Feb 2026 20:28:22 -0800 (PST) Received: from apollo.purestorage.com ([208.88.152.253]) by smtp.googlemail.com with ESMTPSA id a92af1059eb24-12742cbc900sm1021042c88.14.2026.02.13.20.28.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Feb 2026 20:28:22 -0800 (PST) From: Mohamed Khalfella To: Justin Tee , Naresh Gottumukkala , Paul Ely , Chaitanya Kulkarni , Christoph Hellwig , Jens Axboe , Keith Busch , Sagi Grimberg , James Smart , Hannes Reinecke Cc: Aaron Dailey , Randy Jennings , Dhaval Giani , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Mohamed Khalfella Subject: [PATCH v3 02/21] nvmet/debugfs: Export controller CIU and CIRN via debugfs Date: Fri, 13 Feb 2026 20:25:03 -0800 Message-ID: <20260214042753.4073668-3-mkhalfella@purestorage.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260214042753.4073668-1-mkhalfella@purestorage.com> References: <20260214042753.4073668-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->ciu and ctrl->cirn 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