Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2232828pxb; Sat, 2 Oct 2021 10:21:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXpetnquQucSlYzX6XM51u+b66rR0Em6knRFQbeQdYnaBtEblPQoeHiAZlkwdzRZRQWAys X-Received: by 2002:aa7:ca19:: with SMTP id y25mr5172690eds.197.1633195306642; Sat, 02 Oct 2021 10:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633195306; cv=none; d=google.com; s=arc-20160816; b=dJ66NptrPnLRrG2He6Wws1Gy8lRRF1P2pYNsAC2jPsDs7D5B8KWVCPm94d8iM5kIPf xX/d2iuPvLGlR4eJfEgazQV8gd8W0dYNW9y9jAnT3s9BrwCzoCgaiIgcXe4GHUeEyEqN tTHsizpdkLsomZ0b2FGlOyOwmr+YtO+4UgxYVjlBb/GBgtyd55XzLASwA/ORu8W8xcHx DTG/W8Qnz3m2H0CUuGyDmUjdIxvsakDdixCg6lb1AZ7ZwjNGWaiFwyNmtnPSG9r8xX28 njtEObCvAeg+Q9JvnrXuDl/pLpu31d52Iny0lSU3exyv00jKNcxtXn6CMeXRJ6HwDMan +Yhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=9q20jCB/8sn5bDHr3IGoBfkQutiabiPZ1w2nFE/nDSs=; b=CNkbzc6ePywIyFMT01GBs1fJKG/pQyV52CWqkgNEDAswcEbrMJTuwawocLwkCccL51 dgioXkJTk63zBNTlkKlJiBJnvAMSHgxZDvCnNY+iIpshcVUquBy0AS5amn4z8/t48Zrq 2+If4mcIm5RedQ6uxZgWXp7IMPyzjpZ/sVx1CJ37GhHVzvvNZQYXpTL5yTUMPr+CR1Ra lpydwdd++XmH0ZCJ2X6iivcapzynJDeK8mcoeajC4mE8KV03OJdn1o6O8m2Cq/TAVbCy Zo5jjIyCOzb+MHrcFdyaDlCUyCUDo6EVHVnysaZxagz4B3/bi/vb40WHAR6l7KCWlWd8 Ly4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=kBfN4KYQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b15si8586729edj.23.2021.10.02.10.21.21; Sat, 02 Oct 2021 10:21:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=kBfN4KYQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233634AbhJBRMs (ORCPT + 99 others); Sat, 2 Oct 2021 13:12:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233451AbhJBRMr (ORCPT ); Sat, 2 Oct 2021 13:12:47 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F0D8C0613EC for ; Sat, 2 Oct 2021 10:11:01 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id x12so1908275qkf.9 for ; Sat, 02 Oct 2021 10:11:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=9q20jCB/8sn5bDHr3IGoBfkQutiabiPZ1w2nFE/nDSs=; b=kBfN4KYQe3lN2gGnf1sqQi3F8SPDvASfSfkugkvx8qSUwrk4gk1ljDBSYst+w55Mfq K2ZI8Eb2C7DxUqfxZpmPMKdtLzPwtEQSErlYUPAZ/tNNcjPYdXMzyVi1WiJUonUNmoMS +pgyEUe5f1xt2JhXUfl+TfXJ6WUD+NKqeOSOA2MPj1ZVkoudFYS5zMUopskqYS74+WgY sPmxoWNyA7+KW9YVuAbP4uEvVDG2JiAPuKztNc5g+zp+lp+dj7jUdRm6ELD0j43fGdMN PakbOTfPt3vGL3bV+VYH2kfKdh99GpKGc6ciD9FmCUO2JUJbAytLct3OUpYw5ln3Uy71 wCoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=9q20jCB/8sn5bDHr3IGoBfkQutiabiPZ1w2nFE/nDSs=; b=NVLtjpmw5hwpQ0m6Z6/ViY+5RWLigEn2z5vGVjeNipWsUyuCYHQ4lN0774qh6NaTzM 6zfzX0haZSd91nNkvkWgQnOHuNCKwbAJ7D5Xb+TLVPxkgp5HsoGQ2Dw6u5+jEguYAYbg BX8mb0VX/B9McS0mdq4npTyzqdFLo8SlGyPg159u2sk56tN4DoyKTo5QXgrz6jZJEI83 FMcLQGI/KC6yP9snWk3eWdUhPfn0oTlGqiY98g0ClCFNHUSXIRgLkYSO8ORDBeywvagv 6bxXGFJNrzIu4TLOHcFPo6Szs3WFmJpIDvYJ/haTVAmQIl//psPeWxiD0kt679i8Dt2w ORyA== X-Gm-Message-State: AOAM5321AX4kUttA0xkJTn/rpE8/JNysCNX0gS5VTkD50yJzNmk4h2FT G3PadACh5WDS/KwY7S9CY/FyfA== X-Received: by 2002:a37:6d6:: with SMTP id 205mr3226555qkg.466.1633194660126; Sat, 02 Oct 2021 10:11:00 -0700 (PDT) Received: from ripple.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id l7sm5733936qtr.87.2021.10.02.10.10.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Oct 2021 10:10:59 -0700 (PDT) Date: Sat, 2 Oct 2021 10:10:40 -0700 (PDT) From: Hugh Dickins X-X-Sender: hugh@ripple.anvils To: Linus Torvalds cc: Steven Rostedt , Hugh Dickins , Daniele Ceraolo Spurio , Matt Roper , Lucas De Marchi , Tvrtko Ursulin , Caz Yokoyama , LKML , Jani Nikula , Matthew Brost , intel-gfx , dri-devel Subject: Re: [BUG 5.15-rc3] kernel BUG at drivers/gpu/drm/i915/i915_sw_fence.c:245! In-Reply-To: Message-ID: <7bad278d-ff81-21aa-48a-b46b9453b2b@google.com> References: <20211002020257.34a0e882@oasis.local.home> <259ff554-76b8-8523-033-9e996f549c70@google.com> <20211002081750.7eec92dd@oasis.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2 Oct 2021, Linus Torvalds wrote: > On Sat, Oct 2, 2021 at 5:17 AM Steven Rostedt wrote: > > On Sat, 2 Oct 2021 03:17:29 -0700 (PDT) > > Hugh Dickins wrote: > > > > > Yes (though bisection doesn't work right on this one): the fix > > > > Interesting, as it appeared to be very reliable. But I didn't do the > > "try before / after" on the patch. > > Well, even the before/after might well have worked, since the problem > depended on how that sw_fence_dummy_notify() function ended up > aligned. So random unrelated changes could re-align it just by > mistake. Yup. > > Patch applied directly. Great, thanks a lot. > > I'd also like to point out how that BUG_ON() actually made things > worse, and made this harder to debug. If it had been a WARN_ON_ONCE(), > this would presumably not even have needed bisecting, it would have > been obvious. > > BUG_ON() really is pretty much *always* the wrong thing to do. It > onl;y results in problems being harder to see because you end up with > a dead machine and the message is often hidden. Jani made the same point. But I guess they then went off into the weeds of how to recover when warning, that the fix itself did not progress. Hugh