From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E59E9EB64DC for ; Tue, 20 Jun 2023 13:27:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=wKacNcJVLmesRp8TReg+QyYHTEChm9F06o8ZZWC2XNU=; b=Ls7fqvXrWoCkCDSz/mzn5vyDpM ACB248Nlt9+0BWoJwle5MgGn3ZnOU5ouLEjGLd9ild0q0HD6UnXeYPzyEAXo6r87vTwmcCKC2u5g9 O50s4tpRIlTD51kFDkJzdXR9vbFZUarVgOueYhF4dFgRkml2LKw53zguZRymGephkON7a0uqJQK49 xeHd+fFeNPR5lYrCOlP4Mj4gYeZRO5cRd+oyTTF4khSG9r6vJMt/NGq3jZ7yp02nNEVg5JIRuG9Oq TEPafXMgLG+Z4o95k+DDFkFxnrHiOgDFdBGLKqIzYj8wmf1qmqjb3x9a9vMEbPs19jfd9x8JcKBF7 NVwTLzTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBbOF-00BNrG-34; Tue, 20 Jun 2023 13:27:23 +0000 Received: from smtp-out1.suse.de ([195.135.220.28]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBbOD-00BNol-1Z for linux-nvme@lists.infradead.org; Tue, 20 Jun 2023 13:27:22 +0000 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id DC88E21228; Tue, 20 Jun 2023 13:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1687267636; 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=wKacNcJVLmesRp8TReg+QyYHTEChm9F06o8ZZWC2XNU=; b=etp644gKfqe6QazNfpm5X5Ns1cefjHGkwJoHwV3juMcvziqq3FoPUXrBunj2J9rbFDsQjj 2bG3Pwvu1YURas3RYqwKj5YvUrJ4TSEWxSzB/HgAZeERpUSFJo2QjOaJ7S3mSZpuH5COqU S8mh0cRjFzv2Y0u4FNLQul22WA85S3A= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1687267636; 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=wKacNcJVLmesRp8TReg+QyYHTEChm9F06o8ZZWC2XNU=; b=BMBGRqQFIOvcvE3Oey9DaN31ZhziAS9EXA9VOjgFljUINLT5vyTbNAhOYPA/6ZBxCWvLO0 GXMDyHHavClkOwCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id CE1751346D; Tue, 20 Jun 2023 13:27:16 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id FnxKMjSpkWSaOAAAMHmgww (envelope-from ); Tue, 20 Jun 2023 13:27:16 +0000 From: Daniel Wagner To: linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Chaitanya Kulkarni , Shin'ichiro Kawasaki , Sagi Grimberg , Hannes Reinecke , James Smart , Martin Belanger , Daniel Wagner Subject: [PATCH blktests v1 0/3] More fixes for FC enabling Date: Tue, 20 Jun 2023 15:27:00 +0200 Message-ID: <20230620132703.20648-1-dwagner@suse.de> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230620_062721_668099_E7090C5F X-CRM114-Status: GOOD ( 14.64 ) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org The first patch is addressing the problem, that the FC transport is way faster in reconnecting and the test didn't observe all the states from live -> resetting -> connecting -> live. Instead trying to see these transitions just test for the final state which is live and the correct number of queues. This makes this test also a little bit more robust. So this patch is necessary. The next two patches are more in RFC state but I think it makes sense to post them along side the rest. The second and the third patch rely on the not yet released nvme-cli features 'volatile configuration' and 'execution context awareness'. These two feature allow nvme-cli to figure out if a 'nvme connect' should actually be done or just ignored. If the FC autoconnect udev/systemd rules are enabled on a host, this is interfering with blktests. Note, this is also a way to get nvme-stas and nvme-cli play nicely with each other. In case anyone wants to run blktest with FC as transport needs either to disable the autoconnect feature or use the unreleased features of nvme-cli. Daniel Wagner (3): nvme/048: Check for queue count check directly nvme/rc: Avoid triggering host nvme-cli autoconnect nvme/{041,042,043,044,045}: Use default hostnqn and hostid tests/nvme/041 | 8 ++---- tests/nvme/042 | 8 ++---- tests/nvme/043 | 8 ++---- tests/nvme/044 | 8 ++---- tests/nvme/045 | 8 ++---- tests/nvme/048 | 35 ++++++++++++++++-------- tests/nvme/rc | 73 +++++++++++++++++++++++++++++++++++++++++++------- 7 files changed, 97 insertions(+), 51 deletions(-) -- 2.41.0