Message ID | 20231006173205.371205-1-robdclark@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp488807vqo; Fri, 6 Oct 2023 10:32:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGgCxwBXEPcrPstdpfQX29zU3SHnsl+Odl0B1uxqxqF0zdEjsUGlIpNZwaT8rBnu1bDZSd X-Received: by 2002:a17:902:9a01:b0:1c1:f0b4:f68f with SMTP id v1-20020a1709029a0100b001c1f0b4f68fmr7218950plp.10.1696613540896; Fri, 06 Oct 2023 10:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696613540; cv=none; d=google.com; s=arc-20160816; b=U+AsgObXL5CqbujnBdnOEQEkbYEJYcL/Ke6muOFCv+qiw3lbQsHtHmUTJtQSs7l5Eo lY3FJytHRD1TgnCPyMoQu3/OekCUUEl9c50ONGmZfF70iwr3Vk78fRJEv5gTMscNFPiC LzOYDNyphIXXWi1JLUIQk5WcW/Isdm4TMWqTb5Fkw9mH5uf5wx9RaW0lSpm2HYfLHRTc 2RWuARRipoTviO48Wmo1dGoNdxqdspZ4dNjV5wii4+uNbe5PVlIu+uk29Bos8OyZuGeg 2uvjv6IRnSbBKlBVR1G4fGKTRlZBHDQkBGdzh1IpLWOKgXKNQGEbcfFRAG6omPDi5fbM nRNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Uht+32O1H7tS91EbXmyBFBF49QB3RXcTs2kBCgDMo1c=; fh=hFnh27yPznjojkG+V91vKC9h3n1hBoGQdibCiQKXfkU=; b=icJbcgniYLqQrIvLHMSot0UGnpx03wSSDXYIuakVkrQaf8Diz/QF6xmfAJtKAlz6QP s8K/3+3+8qV7HjUJfIo4UEK7UDBVfrg/MdTEvzBIwCFBMRgkh17h+WjWkPyRQKLY6x+f k3DWoWGaf9xpVytSsqjCQN/1LaCkKa8ZO8nO1NT7Z8iTxJE3jl8eyh3JjDvhaSIh7PUT WbachMsCrKZfjYwbyePKhHEnhmKbuEwGW5HzAEvGfkKMpqHqaptJsvjPrQhvhyYrxPzP S3Hk3Z0+gEnycgPemV7qwplh7buuDp7+AC7f2yrp1QvN/0uvboz+H/vlnQLkrchDA+rw 3YWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XlVwCyAW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id e5-20020a170902f10500b001c3b2d40b3csi3880966plb.330.2023.10.06.10.32.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 10:32:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XlVwCyAW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1789D80A2646; Fri, 6 Oct 2023 10:32:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233058AbjJFRcM (ORCPT <rfc822;ezelljr.billy@gmail.com> + 18 others); Fri, 6 Oct 2023 13:32:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232774AbjJFRcL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 6 Oct 2023 13:32:11 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 035FFD8 for <linux-kernel@vger.kernel.org>; Fri, 6 Oct 2023 10:32:10 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-690d2441b95so1884107b3a.1 for <linux-kernel@vger.kernel.org>; Fri, 06 Oct 2023 10:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696613529; x=1697218329; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Uht+32O1H7tS91EbXmyBFBF49QB3RXcTs2kBCgDMo1c=; b=XlVwCyAWmU8ndqXRIJA7TfC4EvPbZrwe8odwn4qzeERELDMpVsYEcVieocMAg9LPyo VuvH4TLUEggostVeCCCQYZmfznbAihPRVPwL5Sr4p5zuKCpSJesB+KPdiWMVZVsdPXok 71+wVP68t9gKXgKqMn6ZAmWu+bUQ+wyZ7NmVGY/MP4I+/mtbYM8R6myIEmKhfkLSl0ei VWTdgcZQCSsyW+hr0wpEjfaqA0u/YqkjwQAT6KZCUyYBRyxjZ/l0os+N7XIgCiOSmlfy bHb/gfPVJvBIxcDdUmbU3a++O/tOtRqzEIvo67nqSyVhkcN1X9UnQRaLVpMDlJ/+IK43 Fe/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696613529; x=1697218329; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Uht+32O1H7tS91EbXmyBFBF49QB3RXcTs2kBCgDMo1c=; b=rlz+2SwlFi/cJjx1UY2pfaYyG7q7iiTpyf1XbE6/4kAS+SmtGCxjQ8J13rGfyQU/6J p8mTNeTkBTKayXuAyLSREPOVk1EkqWrUKZ3WDIqkgNFbXxldxiQ/sMIE7991dBauB5ER DyZrGNJITA5M+kuRBOO0N7DuXhw9fiWewf8XPiMjDiY4BhS1V1czfhmn5eaeHg5DfKMK xJpTMSKsNrEar0+MZWKoGeLNhjwKZibW+9lHYDLVnoKnmMzU9/7Lf1wgpKaf7YoJEy09 oBFPAtpaj3zEUEJ3EsfPLYLsDICxCZJO1qRuAiL6To6IM0hrLssA6zaIsEw8Z64lO04N 0ZiA== X-Gm-Message-State: AOJu0YxDeh2+KqgQSHsM7HnwlcyJ27QOqRCik3ayh8vU0qpUDGfSKKF4 /Gy57QJyrFZcwDZyAjjXBeI= X-Received: by 2002:a05:6a00:b82:b0:68b:a137:373d with SMTP id g2-20020a056a000b8200b0068ba137373dmr9853667pfj.17.1696613529169; Fri, 06 Oct 2023 10:32:09 -0700 (PDT) Received: from localhost ([2a00:79e1:abd:4a00:6c80:7c10:75a0:44f4]) by smtp.gmail.com with ESMTPSA id k2-20020a632402000000b005898e4acf2dsm1577574pgk.49.2023.10.06.10.32.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 10:32:08 -0700 (PDT) From: Rob Clark <robdclark@gmail.com> To: dri-devel@lists.freedesktop.org Cc: Emma Anholt <emma@anholt.net>, Helen Koike <helen.koike@collabora.com>, Rob Clark <robdclark@chromium.org>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, linux-kernel@vger.kernel.org (open list) Subject: [PATCH] drm/ci: Default to UART for logging Date: Fri, 6 Oct 2023 10:32:04 -0700 Message-ID: <20231006173205.371205-1-robdclark@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 06 Oct 2023 10:32:20 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779028240604122584 X-GMAIL-MSGID: 1779028240604122584 |
Series |
drm/ci: Default to UART for logging
|
|
Commit Message
Rob Clark
Oct. 6, 2023, 5:32 p.m. UTC
From: Rob Clark <robdclark@chromium.org> ssh logging is the default for mesa, as it is generally more reliable. But if there are kernel issues, especially at boot, UART logging is infinitely more useful. Signed-off-by: Rob Clark <robdclark@chromium.org> --- drivers/gpu/drm/ci/gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+)
Comments
cc +guilherme On 06/10/2023 14:32, Rob Clark wrote: > From: Rob Clark <robdclark@chromium.org> > > ssh logging is the default for mesa, as it is generally more reliable. > But if there are kernel issues, especially at boot, UART logging is > infinitely more useful. > > Signed-off-by: Rob Clark <robdclark@chromium.org> > --- > drivers/gpu/drm/ci/gitlab-ci.yml | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/gpu/drm/ci/gitlab-ci.yml b/drivers/gpu/drm/ci/gitlab-ci.yml > index 2c4df53f5dfe..7c55f02f7313 100644 > --- a/drivers/gpu/drm/ci/gitlab-ci.yml > +++ b/drivers/gpu/drm/ci/gitlab-ci.yml > @@ -27,6 +27,12 @@ variables: > > LAVA_JOB_PRIORITY: 30 > > + # Default to UART logging. Mesa uses ssh by default, as that is more > + # reliable if you have a stable kernel. But kernel CI is more likely > + # to encounter unstable kernels (and has lower volume of CI jobs so is > + # less likely to be troubled by occasional UART flakes) > + LAVA_FORCE_UART: 1 > + > default: > before_script: > - export SCRIPTS_DIR=$(mktemp -d)
On Fri, 6 Oct 2023 at 18:32, Rob Clark <robdclark@gmail.com> wrote: > ssh logging is the default for mesa, as it is generally more reliable. > But if there are kernel issues, especially at boot, UART logging is > infinitely more useful. Hmm, we should still be capturing the UART boot logs regardless. Those go into a collapsed 'LAVA boot' section but they don't just disappear ... ?
On Fri, Oct 13, 2023 at 9:28 AM Daniel Stone <daniel@fooishbar.org> wrote: > > On Fri, 6 Oct 2023 at 18:32, Rob Clark <robdclark@gmail.com> wrote: > > ssh logging is the default for mesa, as it is generally more reliable. > > But if there are kernel issues, especially at boot, UART logging is > > infinitely more useful. > > Hmm, we should still be capturing the UART boot logs regardless. Those > go into a collapsed 'LAVA boot' section but they don't just disappear > ... ? Hmm, I wasn't seeing anything in the raw log, which doesn't collapse sections.. That said, I still think uart is preferable to ssh for kernel CI.. we aren't running jobs at the scale of mesa CI jobs so even if we get UART flakes 1/1000 (or even 1/100) times, that is an acceptable trade-off for the fact that uart can still work when things are too fubar for ssh. BR, -R
diff --git a/drivers/gpu/drm/ci/gitlab-ci.yml b/drivers/gpu/drm/ci/gitlab-ci.yml index 2c4df53f5dfe..7c55f02f7313 100644 --- a/drivers/gpu/drm/ci/gitlab-ci.yml +++ b/drivers/gpu/drm/ci/gitlab-ci.yml @@ -27,6 +27,12 @@ variables: LAVA_JOB_PRIORITY: 30 + # Default to UART logging. Mesa uses ssh by default, as that is more + # reliable if you have a stable kernel. But kernel CI is more likely + # to encounter unstable kernels (and has lower volume of CI jobs so is + # less likely to be troubled by occasional UART flakes) + LAVA_FORCE_UART: 1 + default: before_script: - export SCRIPTS_DIR=$(mktemp -d)