From patchwork Fri Dec 6 13:51:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Aptel X-Patchwork-Id: 13897255 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2076.outbound.protection.outlook.com [40.107.212.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E9B7201016 for ; Fri, 6 Dec 2024 13:51:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.212.76 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733493117; cv=fail; b=L1iUzb1yF5iZaM5SQcI7MPKfMywFM9jTwskZFfzgR2ubeU51mcGrX44p6jAHga/hXMU8zn43IzHjqryJ6Ab3WEoLvj5g375IZfgVuj+okOIMHAIihde2Dza617ialzn2jN7R4X0bpKnckAMjfTbMeOgv2N5cCjdj6GECwXa4VyQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733493117; c=relaxed/simple; bh=RLCnhaXNJjacmqyj6sJgmUy9o/OtD4y1V6IobTtbty8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=p5/IQcgSNSX7CpTvRRKxTJ3qkooJMCUqvKLscAhqQOu7/201QJ8OYeaQR5Eljes6LK9gk89Fq/b6p7ecGDivW/Yx9KtDZl2KO2p8mf5eHwaAsCrIOJPnch5728c/iEP+wkjXDjJNSOPQP8Cd00tzhE53ZpP/a3XcupVjp0OdCRI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=dTSoDrn9; arc=fail smtp.client-ip=40.107.212.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="dTSoDrn9" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=zMitzZAj/KAIvtkp8Oz614E1IRdWYN+cyy+p7F1c1cnFlm2Xz7YL+c/2UegJkERv9hAkHlytBWBfsneLwxi1s8/v3Is0zVGhwUAn0h9i7pT+eVsFT4Xn2DIig8UuG57xktXKoco50NfiXYeVkKJqOsLszphbeufcLiWiWFWYNW3wgF6VVu3pMk5UxXOBxjjyKGQy0nOIV1KCww91E3UWe5UD4GLRqymM0xOajZb8c5/OmEzTDN+z4i5ze3sWV/cql1FvQNzrH8SOxBygUpZmgPlQB/wf23x50rYkhDkNL+lK4A+zqzSX22pDTURStpWRdvaAadX2RXuVvZwTPsFCkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hEkjaBFN6bFN0SYaBG9boKuGJbuRL2X5cdHeCjirrSc=; b=s7TXV5dd/hg4pz2OWJK9ZtkalSFlYORCFhHVVvV8ZyE3pogM9ZNnAIKXISWpyfOgi/fS4Z3kdGrDl8ODvdE7rPaCWD7GakQC3KUvNXgkwnW81azr1v8xT4dzRROP6f0txOiDmZcpjbSw+4QDS+jEbeEGIoZztjzmziuBBz+wPpBgIcm1K7UYJaqevrrjM8ZeI8SJv02Ma3G9MkZxHVubXKmucHavMek4ncZ9l22xQM/QzXQGcX88ZDp2I6gf1UU2QdhKeWPT8Vt/NApK4bIu5BxJ0ynUvijP1kb+8t3gTP+vgsFxqEyCOlNaHHsbSfyC/np9qBi1hMJvqheSwA10jA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hEkjaBFN6bFN0SYaBG9boKuGJbuRL2X5cdHeCjirrSc=; b=dTSoDrn93x/zRyNyS2IZSEJ6M0LbjwtcN2HitoBP7kzKX/IqqLJn5DXQ0iaY43/hqNoB9E3p+jrRgyonUbEMNclXn+fRkoQXkTsxrcQb2i2KRXLrFiAAzCCFezK3RCwdZyi64oio2B2J77QjH51NHjY6aO32Q2Qw6peTKBFVfpBEy8pQ+jNQX5Wm7NsHgBEgFTDrP1IRA87IYaAJw1l4q+68MDzXbbxZA8fNnScHpLbAbkm4xw42lNMbnsaTV5bJkiJH48R31GW6Rpf8T+N/MPAT0PYIKtg/c/uye6U262C3joTK2Lhywu+qKjoAU7CXL6ytJDt7h4ItUnpOEtjzew== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from SJ2PR12MB8943.namprd12.prod.outlook.com (2603:10b6:a03:547::17) by BY5PR12MB4209.namprd12.prod.outlook.com (2603:10b6:a03:20d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.15; Fri, 6 Dec 2024 13:51:51 +0000 Received: from SJ2PR12MB8943.namprd12.prod.outlook.com ([fe80::7577:f32f:798c:87cc]) by SJ2PR12MB8943.namprd12.prod.outlook.com ([fe80::7577:f32f:798c:87cc%7]) with mapi id 15.20.8230.010; Fri, 6 Dec 2024 13:51:51 +0000 From: Aurelien Aptel To: aaptel@nvidia.com, linux-block@vger.kernel.org, linux-nvme@lists.infradead.org Cc: Daniel Wagner , Chaitanya Kulkarni , Shai Malin , Shin'ichiro Kawasaki Subject: [PATCH blktests v5 3/5] nvme/030: only run against kernel soft target Date: Fri, 6 Dec 2024 15:51:18 +0200 Message-Id: <20241206135120.5141-4-aaptel@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241206135120.5141-1-aaptel@nvidia.com> References: <20241206135120.5141-1-aaptel@nvidia.com> X-ClientProxiedBy: YT3PR01CA0029.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:86::35) To SJ2PR12MB8943.namprd12.prod.outlook.com (2603:10b6:a03:547::17) Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR12MB8943:EE_|BY5PR12MB4209:EE_ X-MS-Office365-Filtering-Correlation-Id: dd0c2c9f-338a-4a83-469f-08dd15fd22e5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|1800799024; X-Microsoft-Antispam-Message-Info: ZXTpLsa+xoklWVym8GCdsx9R9ZnBuswKjsieDydCJnH/o17WQE5Gz5iYqMGVFkmsf/TIu0ZD9D896FTwKZ239xtQ4/YOp2nhwHba0ZLCk8d17h3eGPNv8UPXOHjRZoRvFv5mvrKpv5VbmS2EeiegGlJe8MyFpwfho9wZX1siTvvNCDv/LtTe4zhaEBl6F0PvBVjTwGC0yW3Hpx7fmzE0zJacq1yBSTs8bVWS3VWR6kBDiRu7rDr2jtxAeqx3Ql1JqwfqBQ5lQNBhaLWUBPc2Mh2tCMP32GYIhFYoQrcurSsiEQqiNgDlTNlyr1nQSvteX5cdZHE0CA6ya1XVGcGGlOIjWJgILdNF7e1evYEWFF65a1jT2uGu5P9/s1Vt+ZdM/Rl8qdMTS7/3jFRmeqn2sax6Oiyvh1el4yB5leCghWEelgcjUlJA0J90AAsrBwA9KJBMZn6nv4+Wpvimc9pofo/+4BUgga7XdMmHtiQngKnLQeHiQV0AR2KUx3Mdr0auhv9SepaUZ8O1uI9onfBnNC4VJK3HkGCsw7E24NO/8SRjiGzMH4BiEt0HigBuveuh6MNc8PEh0YNH/2xa2JVDRRGoFRiIHe6BTAQNKvIO7q22iBUXrKaD+UT7SBqW41l6A5JPMHQvVQ35vgCLeRO28CVBm+Ljoo2vBqYqG/j6k9yIHik98QM1EIolO0i7J1LITwpqXQCfnSbcVboHcQ4LGjd6oqMUraxNcK8exiJEuPgnChvi/V2VMQWf0crU/B9quuXmlrqymxiV9ISivLsci7Ga7Plw4XZIy0Bggopx7m0yfB+q8E76Unrye2xVBlsybp/Oaf5gzUC3tRloAgLt0E6I+ozCWB2LDNjWswooJUIEibjKQzalxS0pOoZFQFat/Bmlhew5jPemngb/JioufB8ykrGnIcm5uYiS/54sq/WUisF/IF1Qj8BzVGs/d83dkrJPc5aQFObr/bx7d7o0yVC7PHwm/sgi3/DHBTuwMMLNKNR0Qv1Yk4w9eYt7aO48ovPRslU0UCT4s9ftuhsIOOqGLUjSWn1rA1V4iLH3u7piL1JOunr0kdJeFY5/lsU99AmWxxdiK+QPPnqxrrJP84EyNTxNlG6LO/7/nERENrXIxvPCC9VmZ+YzUZG21J2hQpjqOUSMj7OwfUyvhsuh+DqnIYTt5Uy1IATW1lRf+FcLZKZCZE1v3YQtNuY5eHVCm0sMS89JfSpzaqX1ufY+g1eieJ9hrfn4Ifq+wr6wdKlEDA5YRxgTwj8MfSntN4Wsybc8gYODDa3uxsrMdlR36xXn+i41q+DDPtr3Z86zz0SYF5LyyzglTzG18dV5taDC5keBK7iazg61T0A/gbXBfw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR12MB8943.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(1800799024);DIR:OUT;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7Rsq38uGUMhEQR6HzuaCjQEwR0+qj+CNbdjRfFbjociKmPkLuHtM1hX0gh2q/0r48xY039mSEjeTjwNy0W90eg2/8RAe+Nw+zBMaoqgVdcX34CHZstSwSKcCxDFcaIxOKjtI/8tnzMl1twAU7YyaIOWsndUIMw18n5T1h0yrPUSDpocCFq1QipQzHDqSeKTWoUGILLXyuUDJHN1vIAr9Iqj1qk/uhtqBt1c+VfEFBokuupdH0WyEbnRTQO/RLJUfD0Jp+Ayg3pBOCvS4tKqdBtA+WeNb/rNiHq2sC/xp++nWtUQCxqTSHoFI271yowOSzR0aetl67GVgmQjlqKJkHNsL2l8Kohms3q2dmB7lm3q6QIjLqoxDZlb7ogz3mHAI024lEOBYHk0m6FISTstbKUg1Tn1WeUMv5f/k2zieulTbIIdiIF+FXaeGnNsoPB571QLj5hHnEMGJvhlWux6oHijT9mrEtYlVSYzrskQaviXgTpW5G291oNZct6CSWyLIJLdd1wLAis4nzdOt12cPEroGLNT15XPAZHzd9ZZZt281r/PrZ6h/QKxhLHohMdGgRlWtmUER/lqNZP X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: dd0c2c9f-338a-4a83-469f-08dd15fd22e5 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR12MB8943.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2024 13:51:51.5889 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: r8YRT7P0O8lNcI4Q4Aa/0B+HFeDJsq+F9DMtBhGh3kC8CNTiaO9lyBE+Jetku1URmwAbvgOGf2vRaHSBBrvbQA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4209 From: Daniel Wagner This tests is exercising the target code and not so much the host side. The problem with nvme/030 is that it depends on interface to interact with the target which is not covered by the standard. Thus we can't run it against an arbitrary target. Just skip it when we run against a arbitrary target. Signed-off-by: Daniel Wagner Reviewed-by: Chaitanya Kulkarni --- tests/nvme/030 | 1 + tests/nvme/rc | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/tests/nvme/030 b/tests/nvme/030 index 596e411..fe74849 100755 --- a/tests/nvme/030 +++ b/tests/nvme/030 @@ -13,6 +13,7 @@ requires() { _nvme_requires _have_loop _require_nvme_trtype_is_fabrics + _require_kernel_nvme_target } set_conditions() { diff --git a/tests/nvme/rc b/tests/nvme/rc index 9ad9a52..d1a4c01 100644 --- a/tests/nvme/rc +++ b/tests/nvme/rc @@ -191,6 +191,14 @@ _require_kernel_nvme_fabrics_feature() { return 0 } +_require_kernel_nvme_target() { + if [[ -n "${nvme_target_control}" ]]; then + SKIP_REASONS+=("Linux kernel soft target not available") + return 1; + fi + return 0 +} + _test_dev_nvme_ctrl() { echo "/dev/char/$(cat "${TEST_DEV_SYSFS}/device/dev")" }