Received: by 2002:a05:7412:8d06:b0:f9:332d:97f1 with SMTP id bj6csp62916rdb; Mon, 18 Dec 2023 09:00:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IGk7kkKZz33jVvgm9c0luRzp92MWz7obs6ZM5598EtMxvEGjJKL2ZUDcmeNPsiA7tqPiEvk X-Received: by 2002:a50:c011:0:b0:551:9bcc:588e with SMTP id r17-20020a50c011000000b005519bcc588emr6379414edb.4.1702918816248; Mon, 18 Dec 2023 09:00:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702918816; cv=none; d=google.com; s=arc-20160816; b=pXm/oOLmBrkSCC6+Bp6VxErN/+X5IMijDKt7cz+58TrI6Moob89wwLPCEVti3HNqzX fhAzps4fbV2w0JMwTE8nQvmQpYwGMTwnO9B7Y/qPwkYeD3AJJYDUqyp8K0nGwzLISxtx 9j3y3dFdBTzucqXqApKEz4WzG33op9oiiKyRPNvMMtJFu3SKlMyQUBN08oXUd5/gquGb ANVd2xqyshN4KgRChvUr+vQJuPUxOuJqSNkh9LdgZEagLW5FYoyTDe/fy7vBmZplLqvR FbI7VcNYEexT4wc89yBGkqFirBuK8wKkuvElGDWmCwHR2udlk7V0alLrrtnkqL4KGIQX MKBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=MWYDStw9L70g5Zod1mNSFlqE3RQHs5nnHmAPxDPRssE=; fh=FwD2YyYv16RA783U5Ue5Ni6CeZPTkmUN4amRjXXIdl8=; b=GUGxtFkuHFYeLEWqeiAAqXqkvkcarvwqrykAMAyeD5d3IVDk4HO52lg01uTOjFaSJa fn8ilqLRA6UO0M45bn62B0pVy01iCyvMuhDx7aGkCdS233kTEdqW7WRgOrBlICkG3A/k Xz+RUAB0bZX3dYScdSXpkU90Q0PLICzAWMFWi+BY3AiIVIyV4rLBHsTmnJTRtCyTHfHj +vI3LfYeNMwVmepuSZf4PUPw+yoWCtzc8uZpDKCC19Qe62CNWR4pKoHgIRxLwrm7sO3x yZ8Cy9kWZW1fvTIWSyT02eeLHLuOObn4J5wmUozRupbp22kwWDj4BwpRXFgjF7OqwBkX gfJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=cAxXR+pH; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=DppdkvQi; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel+bounces-4107-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4107-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m9-20020a509989000000b005521b594eeasi5330849edb.438.2023.12.18.09.00.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 09:00:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4107-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=cAxXR+pH; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=DppdkvQi; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel+bounces-4107-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4107-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C75C31F22D1E for ; Mon, 18 Dec 2023 17:00:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE97B4FF99; Mon, 18 Dec 2023 17:00:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="cAxXR+pH"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="52DZ6vTd"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="DppdkvQi"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="nYGz42lR" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 389A842042 for ; Mon, 18 Dec 2023 17:00:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (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) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id D39FA21EF5; Mon, 18 Dec 2023 16:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1702918800; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=MWYDStw9L70g5Zod1mNSFlqE3RQHs5nnHmAPxDPRssE=; b=cAxXR+pHWkRuzuTKvZFWyo6rfT0PC0drfIqS8xOMKZ0hzdVX4xW2VlUgntgl1C1UqSif1k eTbT+LZox0Uy/+g/b0YwNjsRlfJGGZhjjTbZ7kom/m19WPH2n/1ExpGwRKbwvHPtvLv9ye jTkdg/NEX9SqMX8CHJ+XxrEnNM5970Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1702918800; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=MWYDStw9L70g5Zod1mNSFlqE3RQHs5nnHmAPxDPRssE=; b=52DZ6vTdaqtPqXSlsmvasQ/oW8UedV9sVs2T7bAAeIV1m8iZpMRmO7CABH2lZMOLYoG4aU D8Dg0uJ5BxiutGDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1702918799; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=MWYDStw9L70g5Zod1mNSFlqE3RQHs5nnHmAPxDPRssE=; b=DppdkvQigj7Q4wD3rzocvUIo5UYpYKHMrbS2FdqGRipEAhYtNII6kq2EDF5t0fsLPSGHZm TIXecfcGTw9QbNu0oBb0TNPaobQFX4ojdf9jvUAa+2CeAbC/7in0GQlezT0jhikSyc9M4g xohH4ap0jx0SPkULDG65qmQZ7qChaFk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1702918799; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=MWYDStw9L70g5Zod1mNSFlqE3RQHs5nnHmAPxDPRssE=; b=nYGz42lRbI8gFvP2HXoZ8wAI7L0eWd/31XM431AcKXegqekv4fJ8ln8xr3BleZuS/eTew+ b/mYTwsJSExoNHBA== Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (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) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id B6D8A13927; Mon, 18 Dec 2023 16:59:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id OR9PLI96gGU6DwAAn2gu4w (envelope-from ); Mon, 18 Dec 2023 16:59:59 +0000 From: Daniel Wagner To: linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Keith Busch , Christoph Hellwig , Sagi Grimberg , Hannes Reinecke , Max Gurtovoy , Chaitanya Kulkarni , Daniel Wagner Subject: [PATCH v6 0/6] nvme: add csi, ms and nuse to sysfs Date: Mon, 18 Dec 2023 17:59:48 +0100 Message-ID: <20231218165954.29652-1-dwagner@suse.de> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Level: ****** X-Spamd-Bar: ++++++ Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=DppdkvQi; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=nYGz42lR X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [6.59 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; BAYES_SPAM(5.10)[100.00%]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_SEVEN(0.00)[9]; MID_CONTAINS_FROM(1.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCVD_TLS_ALL(0.00)[] X-Spam-Score: 6.59 X-Rspamd-Queue-Id: D39FA21EF5 X-Spam-Flag: NO Rebased on the current nvme/nvme-6.8 branch and added the Review tags. Also addressed the printk format issue pointed out by Chaitanya. About PI: I've added a note to the first commit pointing on this topic. I understood from the discussion, that yes it is an issue but it already exists and we will address this in future. Thanks, Daniel libnvme changes: https://github.com/igaw/libnvme/tree/tree-no-cmd changes: v6: - rebased on nvme/nvme-6.8 - collected Reviewed tags - updated printk format v5: - reverted trigger happy conversion to nvme_ns_head in nvme_zns_alloc_report_buffer - removed debug output - added refactoring patches - ratelimit silence suppress messages - added reviewed tags - https://lore.kernel.org/linux-nvme/20231208105337.23409-1-dwagner@suse.de/ v4: - drop 'use nvme_ns_head instead nvme_ns' patches - ratelimit nuse update per namespace not globally - rename ns attribute group - added non-multipath nuse update logic - added cacheline optimization - https://lore.kernel.org/linux-nvme/20231207123624.29959-1-dwagner@suse.de/ v3: - cut overlong lines shorter - fixed disk (queuedata) initialization order - more testing with blktest - added nuse ratelimit - added reviewed tags - https://lore.kernel.org/linux-nvme/20231206081244.32733-1-dwagner@suse.de/ v2: - moved ns id data to nvme_ns_head - dropped ds, nsze - https://lore.kernel.org/linux-nvme/20231201092735.28592-1-dwagner@suse.de/ v1: - initial version - https://lore.kernel.org/linux-nvme/20231127103208.25748-1-dwagner@suse.de/ Daniel Wagner (6): nvme: move ns id info to struct nvme_ns_head nvme: refactor ns info helpers nvme: refactor ns info setup function nvme: rename ns attribute group nvme: add csi, ms and nuse to sysfs nvme: repack struct nvme_ns_head drivers/nvme/host/core.c | 168 ++++++++++++++++++---------------- drivers/nvme/host/ioctl.c | 8 +- drivers/nvme/host/multipath.c | 2 +- drivers/nvme/host/nvme.h | 44 +++++---- drivers/nvme/host/rdma.c | 4 +- drivers/nvme/host/sysfs.c | 99 ++++++++++++++++++-- drivers/nvme/host/zns.c | 35 +++---- 7 files changed, 233 insertions(+), 127 deletions(-) -- 2.43.0