Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4450605ioa; Wed, 27 Apr 2022 04:16:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCaPuHngnlVsLHGQRZ9HQu+rHOu7c9kSL+XMTWV8Eo3pC8rUKZyZpvRrKoKxABdCLBAaG4 X-Received: by 2002:a63:3d0b:0:b0:37f:ef34:1431 with SMTP id k11-20020a633d0b000000b0037fef341431mr23253974pga.547.1651058175746; Wed, 27 Apr 2022 04:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651058175; cv=none; d=google.com; s=arc-20160816; b=YzD8gxmOd/GL9NQzjZQkSXkuyQYwVOsl6hpyIYUW2NNIIw7cgAUGsDOdV7W/ZNlMEg VPhIAJ7vQEF3/pAdPrfsJwWqN+9FRjImQeJinhyezndhDpQlcNMi3Zov73fHBFV0TWtA HCh+XkBFr9tpQ5+kCx7LSfUDAotDje+WoKGz1cZLlwLg9nmQp/5v/1nWD+kW8skb6m6b pjYnGybOI9/wnIFtYLPOx5oglzQiDVyjAyvvARGWzE6ahKaUb8ap419SSKPXq8cwH3+C UgWYU3jwNux1fHSYSifMxvSX5q79xl4pZ/xB4tslq6NRbQLV7JsMIAajgBkGUZjg8VGT Xzyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=fZ70D0cVnnPXPK9Ej6Zn6n9gKcidZRyOEp+MolYSflo=; b=e4kamKOvY09RovDZ1D4mqop9tYmlk28jdOz9pmwHB1g0md0Bz26AbLt10v/OvqXr4+ csSNnNBKQOHO5ZDZyphX8TJ+h5YnuqB0ySr5LZiRtAk0nmmEIEkK8ABtcmHJoFd1zTM2 4Ofkpcf+IW+NZHU1PgWsEA5CefprCz3btfBzuaJOj4tH9Y3AFt/o2WS+0vKIpFSPxkMK EoVlKlI76hQyD+SWadBT6Zi+PKzvQ0WI6+cvqQqLJHZM2dQUrMAiWxXWRjNNyOipMbJ8 czTjyS3qLoPS19C5yaBZnKwtU2EN0kA1mT/uFTxT+dy/KO4MAGjRd44EC20v0nTIDIPT A4IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b="ntgDgHv/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 85-20020a630158000000b003a91660c8d2si1165338pgb.276.2022.04.27.04.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:16:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b="ntgDgHv/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E7CDD4355CF; Wed, 27 Apr 2022 03:09:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353271AbiDZQxh (ORCPT + 99 others); Tue, 26 Apr 2022 12:53:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353434AbiDZQvd (ORCPT ); Tue, 26 Apr 2022 12:51:33 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E59B1506D5 for ; Tue, 26 Apr 2022 09:47:30 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id i24so18466181pfa.7 for ; Tue, 26 Apr 2022 09:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=fZ70D0cVnnPXPK9Ej6Zn6n9gKcidZRyOEp+MolYSflo=; b=ntgDgHv/lSQpRZFmn+4MX9RayrJeGNGq4yCFYzNqgnmwtVFv2aJRd4ProEqNgs6dgW 1KVM1HcTg/y5YnxlAoSwqJJhugcj8nf0rI6143nSvZeaWSeyBurvUFNA3Gz5x0Q9y+jn HMJ8k5rudB7CuL2+RGTf/Cv0nWQagFCzTOmOjDH9NWI+3pOrHgFqYr//mUDuVoYHmywz NhHGrk9iYlRs4OAIS/AMowc13fbjVz0QTkX4ItEKzncaYQTf99jUMebqeo4wmA9nrhFB 0EwVn3aH9D5l9zoeGIPZHcqMBQHuX7HdzgJAR0xNDaj1TTL3jnR+6HM89/am8WO5ojaK M1kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fZ70D0cVnnPXPK9Ej6Zn6n9gKcidZRyOEp+MolYSflo=; b=r55kYTbcTA99+UI3D+ZxmHVv3ITnHc7auWZ7m4C2XKDB39VCgyuV5/e++glLF9hapV b+MM8J9mFznFzA3grrpXQp9f4OhQKX0g5wJ1mjdZSJnjWfRloFFzzPDjxkGN9okYpq7q c1HCeBwFoaZytIjMtemlEMB1l6GHiXcjvjd/ItxiOTmHLCIk0BuAInlgMIG5Euf4UwdW ZbHX8werC5GmQIKvwlI/zutzQpS3FiHWJApL6ckfXg1UFZ830YHUPZekk4FNKU9RScv2 oztcj1O5i2MkvKPt+WfNnmkb0W/BKw5AOP2DTOoCw3ZU4ej9e0wqa8fHU0EEQzXnYd1T 7buw== X-Gm-Message-State: AOAM531tGYcD3kyhDFrE1rRJCVGXlOUCH3dfiNemkZ95fv2bv2xTHcch nQSwhSQKqvpTPirOywTboAWqUhstIjdH6RYGw/wStCcSAfw= X-Received: by 2002:a63:1117:0:b0:399:2df0:7fb9 with SMTP id g23-20020a631117000000b003992df07fb9mr20802671pgl.40.1650991650440; Tue, 26 Apr 2022 09:47:30 -0700 (PDT) MIME-Version: 1.0 References: <20220426123839.GF163591@kunlun.suse.cz> <20220426161435.GH163591@kunlun.suse.cz> <20220426163834.GI163591@kunlun.suse.cz> In-Reply-To: <20220426163834.GI163591@kunlun.suse.cz> From: Dan Williams Date: Tue, 26 Apr 2022 09:47:19 -0700 Message-ID: Subject: Re: ndctl tests usable? To: =?UTF-8?Q?Michal_Such=C3=A1nek?= Cc: Linux Kernel Mailing List , Linux NVDIMM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 26, 2022 at 9:43 AM Michal Such=C3=A1nek wr= ote: > > On Tue, Apr 26, 2022 at 09:32:24AM -0700, Dan Williams wrote: > > On Tue, Apr 26, 2022 at 9:15 AM Michal Such=C3=A1nek wrote: > > > > > > On Tue, Apr 26, 2022 at 08:51:25AM -0700, Dan Williams wrote: > > > > On Tue, Apr 26, 2022 at 5:39 AM Michal Such=C3=A1nek wrote: > > > > > > > > > > Hello, > > > > > > > > > > there is some testsuite included with ndctl, and when following t= he > > > > > instructions to build it most tests fail or are skipped: > > > > > > > > > > [ 95s] Ok: 3 > > > > > [ 95s] Expected Fail: 0 > > > > > [ 95s] Fail: 5 > > > > > [ 95s] Unexpected Pass: 0 > > > > > [ 95s] Skipped: 15 > > > > > [ 95s] Timeout: 0 > > > > > > > > > > Is this the expected outcome or is this a problem with the ndctl = build? > > > > > > > > > > Attaching test run log. > > > > > > > > I see a few missing prerequisites: > > > > > > > > [ 78s] /usr/src/packages/BUILD/ndctl-73/test/pmem-errors.sh: line > > > > 64: mkfs.ext4: command not found > > > > [ 95s] /usr/src/packages/BUILD/ndctl-73/test/security.sh: line 25= : > > > > jq: command not found > > > > > > Indeed, with those installed I get much more tests passing: > > > > > > [ 148s] Ok: 13 > > > [ 148s] Expected Fail: 0 > > > [ 148s] Fail: 4 > > > [ 148s] Unexpected Pass: 0 > > > [ 148s] Skipped: 6 > > > [ 148s] Timeout: 0 > > > > > > > > > > > This report: > > > > > > > > [ 51s] 1/23 ndctl:ndctl / libndctl SKIP > > > > 0.02s exit status 77 > > > > > > > > ...seems to indicate that the nfit_test modules did not appear to l= oad > > > > correctly. I never expected that the nfit_test modules would be > > > > redistributable, so I was surprised to see them being installed by = an > > > > actual package "nfit_test-kmp-default-0_k5.17.4_1-6.1". The reason > > > > they are not redistributable is because they require replacing the > > > > production build of the kernel provided modules libnvdimm.ko, > > > > nd_pmem.ko, etc... What I expect is happening is that the productio= n > > > > version of libnvdimm.ko is already loaded (or is the only one on th= e > > > > > > AFAICT neither is the case, that's why I dump the module information = in > > > the log. > > > > The modinfo just tells you what modules are available, but it does not > > necessarily indicate which modules are actively loaded in the system > > which is what ndctl_test_init() validates. > > Isn't what modinfo lists also what modrobe loads? It shows what modprobe would load on the next invocation, but sometimes when nfit_test fails it's because the initramfs or something else loaded the modules without respecting the extra/ (or updates/ in your case) override modules. > There isn't any pmem so I don't see why production modules would be > loaded before the test modules are installed. Unloading the modules > first does not really make any difference. Ok, my first guess was wrong... would need more debug to see what those other skip tests are complaining about.