From patchwork Wed Feb 24 07:14:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Po-Hsu Lin X-Patchwork-Id: 1443725 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DlnHJ52XKz9sVX; Wed, 24 Feb 2021 18:14:51 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1lEoNj-0004s2-Oq; Wed, 24 Feb 2021 07:14:47 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lEoNg-0004ro-ON for kernel-team@lists.ubuntu.com; Wed, 24 Feb 2021 07:14:44 +0000 Received: from mail-pl1-f199.google.com ([209.85.214.199]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lEoNg-0005lN-Ba for kernel-team@lists.ubuntu.com; Wed, 24 Feb 2021 07:14:44 +0000 Received: by mail-pl1-f199.google.com with SMTP id m1so981234pll.0 for ; Tue, 23 Feb 2021 23:14:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=crqNICx43iQKHObMbJhZxnqofUBHflR8xxEUBSxW/nM=; b=XQP1lcAuANM2n4HE0B9erVImrry0WBM5LrDtD70hGSA8EHnF0VlK4p0OvYfYDhNJGC WT/4DTfLUOuyKhrnZpG46tRuWF8mkgj1yFkJpscBj4GBS4kwOerhW/CnevG89xePmECk zMJAAypTQw8B8CTZhGn2hoMmjC8a1I4Zk2Cz0I5qKn+FUhE5CAWZvc5cid3Gc3T98/zc +71yBhpxN48FxGiH5BLQabygbneS8na20f6i9Ml3pMneb6Rr7R9oH4H+gNWNcMuXzu9N bqUOk1658YWsu+5BA+xGy8oGWMEqbRthtgUBtquQVtTnEaTeQNiwmYPhJlR1bA6pmWKu Q0cg== X-Gm-Message-State: AOAM531CkbWGN8K7KeMTetNrj1fFuvQNM791JBawlKRe4LB9l+sx5Tmn D+ltfBdbhIKS2syLCLwZAF7boUljZVu9wqlyTHm3JXzMMv+YWp5YC04gYYT1XN/vmiWLdSUfN/o YiRUs7iSytyvPqTg/e8uqbibSO12wqlFTWv0hWnkZ X-Received: by 2002:a17:902:e54f:b029:e2:8f59:6fe0 with SMTP id n15-20020a170902e54fb02900e28f596fe0mr31506836plf.76.1614150882988; Tue, 23 Feb 2021 23:14:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzfwO3uZsMXYj77K5/eMtByX0LHlw02OxG5yPiaGdHEKW95o/YoFd3a8vLbRSOZTc8mssF1fQ== X-Received: by 2002:a17:902:e54f:b029:e2:8f59:6fe0 with SMTP id n15-20020a170902e54fb02900e28f596fe0mr31506817plf.76.1614150882707; Tue, 23 Feb 2021 23:14:42 -0800 (PST) Received: from localhost.localdomain (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id o129sm1216112pgo.27.2021.02.23.23.14.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Feb 2021 23:14:41 -0800 (PST) From: Po-Hsu Lin To: kernel-team@lists.ubuntu.com Subject: [F][SRU][PATCH 1/1] selftests/eeh: Skip ahci adapters Date: Wed, 24 Feb 2021 15:14:23 +0800 Message-Id: <20210224071423.30317-2-po-hsu.lin@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210224071423.30317-1-po-hsu.lin@canonical.com> References: <20210224071423.30317-1-po-hsu.lin@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Michael Ellerman BugLink: https://bugs.launchpad.net/bugs/1916468 The ahci driver doesn't support error recovery, and if your root filesystem is attached to it the eeh-basic.sh test will likely kill your machine. So skip any device we see using the ahci driver. Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20200326061144.2006522-1-mpe@ellerman.id.au (cherry picked from commit bbe9064f30f06e7791d04f9f61a842226a6a44fe) Signed-off-by: Po-Hsu Lin Acked-by: Stefan Bader Acked-by: Kleber Sacilotto de Souza Acked-by: Guilherme G. Piccoli --- tools/testing/selftests/powerpc/eeh/eeh-basic.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/testing/selftests/powerpc/eeh/eeh-basic.sh b/tools/testing/selftests/powerpc/eeh/eeh-basic.sh index cf001a2..0d783e1 100755 --- a/tools/testing/selftests/powerpc/eeh/eeh-basic.sh +++ b/tools/testing/selftests/powerpc/eeh/eeh-basic.sh @@ -43,6 +43,11 @@ for dev in `ls -1 /sys/bus/pci/devices/ | grep '\.0$'` ; do continue; fi + if [ "ahci" = "$(basename $(realpath /sys/bus/pci/devices/$dev/driver))" ] ; then + echo "$dev, Skipped: ahci doesn't support recovery" + continue + fi + # Don't inject errosr into an already-frozen PE. This happens with # PEs that contain multiple PCI devices (e.g. multi-function cards) # and injecting new errors during the recovery process will probably