From patchwork Wed Jul 1 15:07:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Micha=C5=82_Winiarski?= X-Patchwork-Id: 11636629 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9619F913 for ; Wed, 1 Jul 2020 15:07:54 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6ACBA20760 for ; Wed, 1 Jul 2020 15:07:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=hardline-pl.20150623.gappssmtp.com header.i=@hardline-pl.20150623.gappssmtp.com header.b="YVPm5NJJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6ACBA20760 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=hardline.pl Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 090406E924; Wed, 1 Jul 2020 15:07:54 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id AA4E36E924 for ; Wed, 1 Jul 2020 15:07:52 +0000 (UTC) Received: by mail-lj1-x241.google.com with SMTP id t25so22868926lji.12 for ; Wed, 01 Jul 2020 08:07:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardline-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GZWfNtSKQQY4wCNgTWXjUMXGsW6kiYbsbMq6PK1VWTY=; b=YVPm5NJJYoEk4goORkoFJfhX8Tkz56WYL2lhPbjrasWMa8QU0x0YgaxY473HQrjxEm 4/oHPptro2L+GQDpCAK8W01Z2WfVQQPkFCzROwNrNVCnQIoauiyQYWYzgKl/Qc0bQ56k YDq38aQoRVU66clLXmtQ9RdQee6YnzxL7eIhGAPKdjXM+tn0NfZBy4ATNIWMpxaPHUpR mFNy84Sbx50Yo/gpf+Uaud6MZQhkP8D1Zbl34HUvTbTuPt6YofGDGWQR/Loyyae0cINo qST081TMMKcpqY9x8rzoeFaSdFd9E7DnaiI4rRdclKZb/lSfRhG0VZyx2OAfJ7ZWBpqP VYnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GZWfNtSKQQY4wCNgTWXjUMXGsW6kiYbsbMq6PK1VWTY=; b=sbd6lswBL8e9aog/DGrfB1dbzDpctVknWflI4WXfqgpAKFAoeEu7ii6tirbg4+phAx 2qc4+1nTNy0O51h6+Iy+Adag7ztKCOOesK4elBoSvhhSVGgp9rwZLEs9AGluO2yEafzY vuK6xQgnFR4jyBoKcRxXNco4FluhdEQqEMuRWCwDfrkAoug0ymKWCYEIzcdtpTRPhaa0 8updOtT22JTOwOQCXdGYUkk1W0Z18ZJhUwdfbxlpT9DG5YTR7RdfF+EnjRKLmimnRhCE bqqWrXqcUFvJBDiUQrDF94lWPtobB/CftHNdrgg35pOFbb3FprrfDRLmWGOg67TDXSj9 TPCg== X-Gm-Message-State: AOAM5332NcdWTmXu0mQSro1JGMWfQrfLMYJvjmEvIM9DuYjHoFmF6imr Kiy4/W65AyM9+Bt/vZMYXQHcwxebXAg= X-Google-Smtp-Source: ABdhPJzmjmB8kbm/JwyBqQ79h1y8ar594UojPqcvznrn/+jdgmslj1hXmfjSTsTk+1WGzwvPrG1n4g== X-Received: by 2002:a2e:4612:: with SMTP id t18mr12537055lja.212.1593616070408; Wed, 01 Jul 2020 08:07:50 -0700 (PDT) Received: from localhost (109241244009.gdansk.vectranet.pl. [109.241.244.9]) by smtp.gmail.com with ESMTPSA id 83sm2147122lfk.84.2020.07.01.08.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 08:07:49 -0700 (PDT) From: =?utf-8?q?Micha=C5=82_Winiarski?= To: intel-gfx@lists.freedesktop.org Date: Wed, 1 Jul 2020 17:07:21 +0200 Message-Id: <20200701150721.423630-1-michal@hardline.pl> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH] drm/i915: Reboot CI if we get wedged during driver init X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Micha=C5=82_Winiarski?= , Chris Wilson Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Michał Winiarski Getting wedged device on driver init is pretty much unrecoverable. Since we're running verious scenarios that may potentially hit this in CI (module reload / selftests / hotunplug), and if it happens, it means that we can't trust any subsequent CI results, we should just apply the taint to let the CI know that it should reboot (CI checks taint between test runs). Signed-off-by: Michał Winiarski Cc: Chris Wilson Cc: Petri Latvala Reviewed-by: Chris Wilson Reviewed-by: Michal Wajdeczko --- drivers/gpu/drm/i915/gt/intel_reset.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/intel_reset.c b/drivers/gpu/drm/i915/gt/intel_reset.c index 0156f1f5c736..d27e8bb7d550 100644 --- a/drivers/gpu/drm/i915/gt/intel_reset.c +++ b/drivers/gpu/drm/i915/gt/intel_reset.c @@ -1360,6 +1360,8 @@ void intel_gt_set_wedged_on_init(struct intel_gt *gt) I915_WEDGED_ON_INIT); intel_gt_set_wedged(gt); set_bit(I915_WEDGED_ON_INIT, >->reset.flags); + + add_taint_for_CI(TAINT_WARN); } void intel_gt_init_reset(struct intel_gt *gt)