Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1461892ybb; Thu, 2 Apr 2020 00:58:55 -0700 (PDT) X-Google-Smtp-Source: APiQypK97o0zKXfEfwwyHuj12TGG1zpFKQWqMpzkrB+MXcwjrxIITJ8xgJD9rSQEyBRPeyRV+VDd X-Received: by 2002:a9d:748a:: with SMTP id t10mr1516251otk.244.1585814335176; Thu, 02 Apr 2020 00:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585814335; cv=none; d=google.com; s=arc-20160816; b=fxDnMVEAD8HI4o3E97N7PgTVLbr8KVz2Bl3gECcs4IYr1nHwhOPi+uC+Ot9Tn8nqV0 5x4mT/qn4fCL8XmO3Vm9kwBSYG9Eb2upkTROHmDhkAy1BUFy5R7NE0rnS1bSO5Hjn8jh OI6qa6KzauJVBvVOwRzxystQsssthi/f4QaM4nrSVqkuogsr6u/j7s6DBcoyPni5ab5d w1+3eOEUVREqon/4CYNc6GnyzD+A7EE5tHswLvDRUJgFeT6ewSUGz6ZEOyMTbPL8VSKU xL0g0XCj7S9KP9j+6vJiDaYkN+rctFAQdwn4i/skDKCHw+qDX+g/ahco6w7IlmPt+7pS MAtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=lbDh9sGXngdhn9Jh8C6oZaKlG1DNYVAa7PojnE5vWdk=; b=ndqT4Ud7nLgM92apPWtJS8KQ8VKR9HWVtsaeK8Iok3uNns3DS2Pbbkmd2We29HOHy3 HiSOeZijHrJMeOB94YQnzqCbW2OHT5rUmtr/HxYo4wxY467wJtynPLhACGy2cDaCQSP3 6fLS5Km9y5dM4HI/9bYvKmJ9naspUDx718VTwtUDjWKy66HOCtKaCl3uay0lkfd9G9nO riKPGIlGcqKpvUIF/LcwilkGf+nA8sqGDOVkSmx3PJVtEc45qDU6sUo1hmoVgQbSv/7j uHgcRaTMwzqtkEF++Exn7eTpvmKqNBUwmZKXqL90djQqYpMyLbGG0rd1dETZw+Eofpaf r46A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DD6JgrL8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si2139590ots.270.2020.04.02.00.58.41; Thu, 02 Apr 2020 00:58:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DD6JgrL8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387635AbgDBH6P (ORCPT + 99 others); Thu, 2 Apr 2020 03:58:15 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:36944 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387476AbgDBH6O (ORCPT ); Thu, 2 Apr 2020 03:58:14 -0400 Received: by mail-lj1-f193.google.com with SMTP id r24so2222077ljd.4 for ; Thu, 02 Apr 2020 00:58:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lbDh9sGXngdhn9Jh8C6oZaKlG1DNYVAa7PojnE5vWdk=; b=DD6JgrL8yF39MxS5PpkI2Rw/KTHYk4nI/6xo+IRW/zuqhtA9Hc4qIfIbx2LJCS+Cjs d6ZsqhG6yKe/C4XJX2JrdkNx7Y6urH55e8bLz4IyTF4IJ6AkpsdsHJPGhnk5Iqsp8FTk v6OoSBh0D8ccNE7HgfJ8gqyRvJdoBGnhocKFjtWJiwLRh8BQLsbjBWZcxiMHmDID7k3r yqN6qSkixvLWjszVqQuEqyfyXHSyGH1ObGLCfbyDF/Ma2NZt7QVLd3RvbQZwnrqrTIPR GYLJ9YM5loJ67+IuZ90XJxy3b+wVTHIJnpHxO5M+8asrx0W293watQBNLBwOayh9in75 n02Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lbDh9sGXngdhn9Jh8C6oZaKlG1DNYVAa7PojnE5vWdk=; b=bQ744yG6KSLKkHul2/KOBXzyXWXmJmxI9ejntCVjp1+ERWL+VxE3NmEjAJP2VshGDG h/n2D5z41j2adlAACs03ROAU7EPircXrtf+aNHTjxpZ1+S/AC3IAE7OADyC9Qalf5599 YvktukgqC5uy+ZrzviEf3nHdY3DXdxGHvNU6BhxWAruH6KD/54l4nsYGPQY0gZCC/iZ5 oNBKTc92fjntxUQo4LBS6CiVM1/lNcnCd3Q6RHPvb4ZINuEwwNZ5qUJJTfsi2084WArI qXB/IEp7et5lhyVe6oYSD6kuZezf3gd2C1PTBCcW3MkO41jq1YrN8wl8I786hvmz5L1J L5vw== X-Gm-Message-State: AGi0PuYs5EE0I3I/7AqlV/pYHvPrY/g3ylzz6AgJX7SSqylqET3LQpBK l14CX9NU6KlMg5/o3Z6EI5r3 X-Received: by 2002:a2e:9611:: with SMTP id v17mr1232229ljh.115.1585814291641; Thu, 02 Apr 2020 00:58:11 -0700 (PDT) Received: from ?IPv6:2a00:1370:8117:aa18:ddbf:b317:48a7:bf0f? ([2a00:1370:8117:aa18:ddbf:b317:48a7:bf0f]) by smtp.gmail.com with ESMTPSA id n17sm2721968ljc.76.2020.04.02.00.58.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Apr 2020 00:58:10 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: [PATCH v3] bitfield.h: add FIELD_MAX() and field_max() From: Maxim Kuvyrkov In-Reply-To: Date: Thu, 2 Apr 2020 10:58:09 +0300 Cc: Alex Elder , Arnd Bergmann , Bjorn Andersson , "David S. Miller" , Johannes Berg , Jakub Kicinski , LKML , Masahiro Yamada , Nathan Chancellor , Network Development , Alexander Viro Content-Transfer-Encoding: quoted-printable Message-Id: <5F165F1C-C1E8-43D0-AC8A-5572B36D3370@linaro.org> References: <20200311024240.26834-1-elder@linaro.org> <20200401173515.142249-1-ndesaulniers@google.com> <3659efd7-4e72-6bff-5657-c1270e8553f4@linaro.org> <3c878065-8d25-8177-b7c4-9813b60c9ff6@linaro.org> <5635b511-64f8-b612-eb25-20b43ced4ed3@linaro.org> To: Nick Desaulniers X-Mailer: Apple Mail (2.3608.60.0.2.5) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 2 Apr 2020, at 03:26, Nick Desaulniers = wrote: >=20 > On Wed, Apr 1, 2020 at 4:18 PM Alex Elder wrote: >>=20 >> On 4/1/20 5:26 PM, Nick Desaulniers wrote: >>>=20 >>> mainline is hosed for aarch64 due to some dtc failures. I'm not = sure >>> how TCWG's CI chooses the bisection starting point, but if mainline >>> was broken, and it jumped back say 300 commits, then the automated >>> bisection may have converged on your first patch, but not the = second. >>=20 >> This is similar to the situation I discussed with Maxim this >> morning. A different failure (yes, DTC related) led to an >> automated bisect process, which landed on my commit. And my >> commit unfortunately has the the known issue that was later >> corrected. >>=20 >> Maxim said this was what started the automated bisect: >> =3D=3D=3D >> +# 00:01:41 make[2]: *** = [arch/arm64/boot/dts/ti/k3-am654-base-board.dtb] Error 2 >> +# 00:01:41 make[2]: *** = [arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dtb] Error 2 >> +# 00:01:41 make[1]: *** [arch/arm64/boot/dts/ti] Error 2 >> +# 00:01:41 make: *** [dtbs] Error 2 >=20 > DTC thread: > = https://lore.kernel.org/linux-arm-kernel/20200401223500.224253-1-ndesaulni= ers@google.com/ >=20 > Maxim, can you describe how the last known good sha is chosen? If you > persist anything between builds, like ccache dir, maybe you could > propagate a sha of the last successful build, updating it if no > regression occurred? Then that can always be a precise last known > good sha. Though I don't know if the merge commits complicate this. Well, since you asked, the simplified version is =E2=80=A6 Bisection is done between =E2=80=9Cbaseline" commit and =E2=80=9Cregressed= =E2=80=9D commit, not between "last known-good=E2=80=9D commit and = =E2=80=9Cbad=E2=80=9D commit. Each build has a metric, and regression = happens when metric for new build is worse than metric for baseline = build. For tcwg_kernel jobs the metric is the number of .o files = produced in the kernel build (i.e., build with 18555 .o files is worse = than build with 18560 .o files). If a new build hasn=E2=80=99t regressed compared to the baseline build, = then baseline metric is set to that of the new build, and baseline = commit is set to sha1 of the new build. If the new build has regressed, then bisection between baseline sha1 and = new sha1 is triggered. Once bisection identifies the first bad commit, = CI notification is emailed, and baseline is reset to the first bad = commit =E2=80=94 so that we detect even worse regressions when they = occur. The baseline state is recorded in git repos (with one branch per CI = configuration): - metric / artifacts: = https://git.linaro.org/toolchain/ci/base-artifacts.git/refs/heads - linux kernel: https://git.linaro.org/toolchain/ci/linux.git/refs/heads - llvm: https://git.linaro.org/toolchain/ci/llvm-project.git/refs/heads -- Maxim Kuvyrkov https://www.linaro.org