Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp817639iob; Thu, 12 May 2022 05:26:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQPNHpBSwBNwFam6KTq17OofpIAd7/VTzeZI00OenziNVeL3fmK0eqLZW6DOfC11/RprRe X-Received: by 2002:a17:906:90d5:b0:6fd:eefb:8803 with SMTP id v21-20020a17090690d500b006fdeefb8803mr1776093ejw.244.1652358373015; Thu, 12 May 2022 05:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652358373; cv=none; d=google.com; s=arc-20160816; b=ygKMoRRnamhwVIiN3fGq0OeFVDp3ZAAjFTgG9Gjxx+qhE/ZhQPAwtvEhNjGOhcMAWE o+zPbLF5EW/0tCinqVFCB/vPcNWSZcOKdzgd24Q1+NYGIaPkwXL0U9bmbx/jCwvhN9EA 6BReMfKZwJ6VRoM/QqEIkfaYw5ovb9JmpaZh63tgf8eBxEE6JbTGBW4b6BRrcIOoyvW/ mX6xPSpTXK/a0f0QlXJ2ZFUPjdyGYcT+Y/i9OeM5Eml2UIHIdMinWYt7p5w+AAKKGOND q4cMIw3lwjFOteoUOCYwwOCyXSXGA/k4FG5W6c+tkX2LWVWq9Y/2YkD6RQZ9CDsznp/x 3zsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hZIhjLMbOoF976Pa2gp/bTHKHDJhsmozC2Xdhlo7Go4=; b=RNBgszz6sI96cZxRICBPuC2yPpOBtsR6wQznsO/Yj6trziFMQdDDuAAI7LEDotPF9w g8/SfC6kEuvePKPYKKF8hgosi2p/D5o7PhbtMWTsiilgiJ0+gYJ5EQ0uoFciVCt+9ftn +MVZv+ltS5ljNpw7Y4/I3zDcG5v+Y7nENZDp91NpTyIH/vSzef9a+YPKnWsI4ybg7ToZ ECVQ+ChJqwgQPIi6B0sz93aaf4HKR6C4fd9x/jfmdu2kUaozXPyFJx5owv/y2TtSLbQl e3fGT7WBMuT3EAgg5VucY8O8m4wJFuM5yC7XYBIWdCHiIxL9IKT/YGKYvVm1HU4lVfSL 6IAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WbaD35RE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho8-20020a1709070e8800b006f361fc2eafsi8005385ejc.192.2022.05.12.05.25.46; Thu, 12 May 2022 05:26:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WbaD35RE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345780AbiEKRqn (ORCPT + 99 others); Wed, 11 May 2022 13:46:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345040AbiEKRqj (ORCPT ); Wed, 11 May 2022 13:46:39 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8120F5DA1A; Wed, 11 May 2022 10:46:38 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id bg25so1649391wmb.4; Wed, 11 May 2022 10:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hZIhjLMbOoF976Pa2gp/bTHKHDJhsmozC2Xdhlo7Go4=; b=WbaD35REy4RkuI+0jS9Yz9GZbFYslRKSN3kwXxem7hTMwcXCJRi/7mSeJB4RNe+KUJ M7ikAVkz3pLJ/+A/Zd7OZof/hD0WjT2CoD6kwoRDnXii4/UIoRq//XkQr7rsw3AciJXV eW/JXs0byA6F9CltG3XlyUnpqrGxdk+vGhJD7UTD7aAaxjJrgivbmyq8JVh5cWGoAeoP GGy1NuKChyOz9ZnWmc4SmcP9lCn6EWUIuW4vdFKC2zBoerfScGv0yoBZZoBWfmS8DvH8 XpH1Vpu3fYyUfcUOC8sDv7lL97hTjYYhp/GdsFmzd41J/zvu+1oLbdC2iQhYcfKukri6 MdXQ== 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; bh=hZIhjLMbOoF976Pa2gp/bTHKHDJhsmozC2Xdhlo7Go4=; b=lxmYTeV6IZ0WxhJy7tIYe7JR3bvypDoz/8rBC/8PYmjurIyxFXujrT1uJGN5fcgZEd o9vA/+501rDhrFaM6WaY/rNvU9Gb9uz528h3XMMBMrMxhV1A4PNnavcBiKKzLtFmjD5m ujtlhWlMOxox9Fif+Bw+1ojGbTaBtXToeozlpeFA0yLXXLgxkapdVMfo/DoXLpAF1P4f xm1gt7F+bMclVMs/CLkVZN/EB5Odf/meGQxLGHfwBrQOZYdn97blK8wYZi4rAxiYUZw7 wUYBSDJ8uYBsd0wVhMNbKVdRhbhk/rmAhaZLnTWbUM8/tnwzi1nOvPHEdo+UPEjmoHEO toSw== X-Gm-Message-State: AOAM532xo3aVIDObhkg+t+D+3J+KnhPgKBKzg/2zgTh1pfylOuaiPC4h qDRBGtq3X29z+NCCwGWY2+/dDcJX98p4OZhxafi9RFkH X-Received: by 2002:a05:600c:a53:b0:394:7a51:cb71 with SMTP id c19-20020a05600c0a5300b003947a51cb71mr6322859wmq.148.1652291196975; Wed, 11 May 2022 10:46:36 -0700 (PDT) MIME-Version: 1.0 References: <20220510070140.45407-1-tomeu.vizoso@collabora.com> <20220510141329.54414-1-tomeu.vizoso@collabora.com> In-Reply-To: From: Rob Clark Date: Wed, 11 May 2022 10:46:24 -0700 Message-ID: Subject: Re: [Freedreno] [RFC v2] drm/msm: Add initial ci/ subdirectory To: Daniel Vetter Cc: Jessica Zhang , Tomeu Vizoso , "open list:DOCUMENTATION" , linux-arm-msm , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Jonathan Corbet , Sean Paul , Abhinav Kumar , Linux Kernel Mailing List , dri-devel , freedreno Content-Type: text/plain; charset="UTF-8" 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_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 11, 2022 at 10:12 AM Daniel Vetter wrote: > > On Tue, 10 May 2022 at 22:26, Rob Clark wrote: > > > > On Tue, May 10, 2022 at 12:39 PM Jessica Zhang > > wrote: > > > > > > > > > > > > On 5/10/2022 7:13 AM, Tomeu Vizoso wrote: > > > > And use it to store expectations about what the drm/msm driver is > > > > supposed to pass in the IGT test suite. > > > > > > > > Also include a configuration file that points to the out-of-tree CI > > > > scripts. > > > > > > > > By storing the test expectations along the code we can make sure both > > > > stay in sync with each other, and so we can know when a code change > > > > breaks those expectations. > > > > > > > > This will allow all contributors to drm/msm to reuse the infrastructure > > > > already in gitlab.freedesktop.org to test the driver on several > > > > generations of the hardware. > > > > > > > > v2: > > > > - Fix names of result expectation files to match SoC > > > > - Don't execute tests that are going to skip on all boards > > > > > > > > Signed-off-by: Tomeu Vizoso > > > > --- > > > > Documentation/gpu/msm_automated_testing.rst | 70 +++++++++ > > > > drivers/gpu/drm/msm/ci/gitlab-ci.yml | 11 ++ > > > > drivers/gpu/drm/msm/ci/msm.testlist | 148 ++++++++++++++++++ > > > > .../gpu/drm/msm/ci/msm_apq8016_results.txt | 140 +++++++++++++++++ > > > > .../gpu/drm/msm/ci/msm_apq8096_results.txt | 140 +++++++++++++++++ > > > > drivers/gpu/drm/msm/ci/msm_sc7180_results.txt | 141 +++++++++++++++++ > > > > drivers/gpu/drm/msm/ci/msm_sdm845_results.txt | 141 +++++++++++++++++ > > > > 7 files changed, 791 insertions(+) > > > > create mode 100644 Documentation/gpu/msm_automated_testing.rst > > > > create mode 100644 drivers/gpu/drm/msm/ci/gitlab-ci.yml > > > > create mode 100644 drivers/gpu/drm/msm/ci/msm.testlist > > > > create mode 100644 drivers/gpu/drm/msm/ci/msm_apq8016_results.txt > > > > create mode 100644 drivers/gpu/drm/msm/ci/msm_apq8096_results.txt > > > > create mode 100644 drivers/gpu/drm/msm/ci/msm_sc7180_results.txt > > > > create mode 100644 drivers/gpu/drm/msm/ci/msm_sdm845_results.txt > > > > [snip] > > > > diff --git a/drivers/gpu/drm/msm/ci/msm_sc7180_results.txt b/drivers/gpu/drm/msm/ci/msm_sc7180_results.txt > > > > new file mode 100644 > > > > index 000000000000..01f7b4b399b5 > > > > --- /dev/null > > > > +++ b/drivers/gpu/drm/msm/ci/msm_sc7180_results.txt > > > > @@ -0,0 +1,141 @@ > > > > +igt@core_auth@getclient-simple,dmesg-warn > > > > +igt@core_auth@getclient-master-drop,pass > > > > +igt@core_auth@basic-auth,pass > > > > +igt@core_auth@many-magics,pass > > > > +igt@core_getclient,pass > > > > +igt@core_getstats,pass > > > > +igt@core_getversion,pass > > > > +igt@core_setmaster_vs_auth,pass > > > > +igt@drm_read@invalid-buffer,pass > > > > +igt@drm_read@fault-buffer,pass > > > > +igt@drm_read@empty-block,pass > > > > +igt@drm_read@empty-nonblock,pass > > > > +igt@drm_read@short-buffer-block,pass > > > > +igt@drm_read@short-buffer-nonblock,pass > > > > +igt@drm_read@short-buffer-wakeup,pass > > > > +igt@kms_addfb_basic@unused-handle,pass > > > > +igt@kms_addfb_basic@unused-pitches,pass > > > > +igt@kms_addfb_basic@unused-offsets,pass > > > > +igt@kms_addfb_basic@unused-modifier,pass > > > > +igt@kms_addfb_basic@legacy-format,dmesg-warn > > > > +igt@kms_addfb_basic@no-handle,pass > > > > +igt@kms_addfb_basic@basic,pass > > > > +igt@kms_addfb_basic@bad-pitch-0,pass > > > > +igt@kms_addfb_basic@bad-pitch-32,pass > > > > +igt@kms_addfb_basic@bad-pitch-63,pass > > > > +igt@kms_addfb_basic@bad-pitch-128,pass > > > > +igt@kms_addfb_basic@bad-pitch-256,pass > > > > +igt@kms_addfb_basic@bad-pitch-1024,pass > > > > +igt@kms_addfb_basic@bad-pitch-999,pass > > > > +igt@kms_addfb_basic@bad-pitch-65536,pass > > > > +igt@kms_addfb_basic@size-max,pass > > > > +igt@kms_addfb_basic@too-wide,pass > > > > +igt@kms_addfb_basic@too-high,dmesg-warn > > > > > > For test results on Trogdor, is is possible to have them be > > > success/fail/skip only? > > > > > > Results such as dmesg-warn/dmesg-fail are igt_runner specific and > > > because there isn't support for igt_runner on ChromeOS, they will be > > > difficult to replicate and debug. > > > > Actually, I wonder if it would be better to just treat > > dmesg-warn/dmesg-fail as pass/fail? I'd noticed some flakes on > > rockchip which looked just like unrelated dmesg msg which just > > happened to show up while the test was running. > > This is kinda the reason behind standardizing on drm dmesg logging, so > that we have some chances at filtering stuff out. Not sure that's a > good idea, since when your entire box splats and lockdep is dead, then > continuing to run drm tests is still fairly pointless. I'm not sure if we are using it yet for drm-ci, but for mesa-ci we monitor dmesg (over serial port, from the controller) for splats, so we already have the tech for restarting or aborting the CI run. We don't need igt-runner to tell us. > I think this is another reason why trying at least to standardize this > stuff over drivers would be pretty good idea. > > > Additionally, some of the tests, like msm_recovery, are *expected* to > > generate some dmesg spam since they are intentionally triggering GPU > > hangs to test the recovery mechanism. > > Uh I don't like that. It just allows userspace to spam dmesg, which > doesn't seem like a great idea. That's at least why i915 dumps these > at a lower level, and in the past had a special "I'm going to whack > the gpu real hard expect hangs" knob in debugfs. > > Having tests which intentionally spam dmesg above info level isn't > really good since then you need endless amounts of test-specific > encoding of what is considered a success and what not. Like when a > backmerge breaks a testcases which is already at dmesg-fail, is that > bad or not? Probably bad, but was the situation before that really > good or already kinda on fire? I guess I could add some debugfs knobs to squelch the dmesg msgs on gpu hangs. In the normal case, I'd prefer that gpu hangs are not silent.. since that is something we get in feedback reports if a user (or dogfooder) reports a bug. The rockchip case I mentioned was some unrelated dmesg about linktraining failing.. presumably because there was no display attached? IDK, I didn't look too closely. But my point is we could be getting unrelated and asynchronous dmesg spam, even from other kernel subsystems. Letting that be part of the test results just sounds like asking for flakes. BR, -R > -Daniel > > > BR, > > -R > >