Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp981825rdb; Tue, 19 Sep 2023 17:00:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+uofHLPpT8DEhfIeQgP64zIklOxcB5qrPf+UkLIjp/kNr2XpEEbPg+36rj9wfeB7rW0JK X-Received: by 2002:a05:6a00:2284:b0:68f:bbc3:df44 with SMTP id f4-20020a056a00228400b0068fbbc3df44mr1516121pfe.0.1695168038388; Tue, 19 Sep 2023 17:00:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695168038; cv=none; d=google.com; s=arc-20160816; b=Ol5VYU8HZC5gWI4kaRYG1I1kVm4bUd6GJI+u70woEEI4uVxtgrEIVN8a/9uQ10qBBn dPaQZCIyjwsNos7mZSJ601nlM7W0e+U6q5ScfSiKuMbVonQmAox3V21bXg5ZJ8KB9f3f cT+gQQGYg3jUDzyAy6ncHqiUE+DPhRTEl54oFs41bLSn80kUbgr2jV9BwkJkg3eG9AQ8 0DKc8MfNmgBacbL+UyiG68p7Wpu5vXAh1fBqYjxJsui6SenvZrBrWHNIbE6H6pxKGGfI X1UKXLp1pifRYsIQM6DIdQRiW1ngxZunQjYn48lIRQm5lr/OI63ioWrsafOTGgAObPQZ mW6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dZMuR0d3fMuzTTg9AbhRGR2xkVbdfI0ojr0EnSeYVZs=; fh=RE9vxGWu9qVR16+rr8QIAN+fcabTBFggemqrniMJrEI=; b=yAGN8fdlvJBCYHxofUaXnvEomWH7O8b92yZf0RKICH1MfIVT8xvDU8FndqB5jb3XLS kRhUq0YO/UiN5jBibPSpFmg6t+L1jo+vrOgEpHLZHAEM6lPjggCJCkQVC4A0RY+r3+Oj LCMHPx+7JoLvUBu4KqDqrFWz2FhkQMX/P0r1tEe96okdxxXHph3mhGHWc6qzKa3WFZG5 352Jm9YFr4QGqD5uRlMl/qVzIEO7XLKe3mVOrB6AGJF7EMtE9loUy1OzjX2tmjO1lSfD t62k8d+i1/t+dV7gntGbwpOiXi6WCU6Du/eF/2so95i/0Thfl9KJdvkQSpN8Ln/fseqa fRkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nNc6yhOt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id m5-20020a056a00080500b0068a3a2984ccsi10653116pfk.236.2023.09.19.17.00.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 17:00:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nNc6yhOt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7F6C28194761; Tue, 19 Sep 2023 09:03:25 -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 S232663AbjISQDK (ORCPT + 99 others); Tue, 19 Sep 2023 12:03:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232573AbjISQDI (ORCPT ); Tue, 19 Sep 2023 12:03:08 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAF809F for ; Tue, 19 Sep 2023 09:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=dZMuR0d3fMuzTTg9AbhRGR2xkVbdfI0ojr0EnSeYVZs=; b=nNc6yhOtVNP+puR0lYFU0ZIT0s 0XPpHQJ/LVJwC13oib4Qqkf3m8XKUagH7maED5JTQb786bFBCmxX3SqbkCk8UK4PZyaiceOf96NLi keLbH+TfFQNorG6OTLMcfZCwjxtLeechmefl7gvPQ6XARJjNcMJQPUqrc++9JfWafDIu5gODO+M6o ViopTh0QbLShwC3C+onnAmVxezWMNRXpLGEvPi2Wb7JhPwM+fjGtTIJupOd9pWkmeiFACxEQCdqPp cxVIwioSzdha0hIz2vp2TFnaGfF8CbCX0AyHBQJ77A5glt5Ty4nGvJfnwrj/pe8HFiSx4yGieBKAs l/6a7d2w==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qidBi-000VvE-KN; Tue, 19 Sep 2023 16:02:58 +0000 Date: Tue, 19 Sep 2023 17:02:58 +0100 From: Matthew Wilcox To: Oleksandr Natalenko Cc: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , Andi Shyti , Andrzej Hajda , Matthew Auld , Matt Roper , Aravind Iddamsetty , Fei Yang , Thomas =?iso-8859-1?Q?Hellstr=F6m?= , Nathan Chancellor , Chris Wilson , Daniele Ceraolo Spurio , Andrew Morton , linux-mm@kvack.org Subject: Re: [REGRESSION] [BISECTED] Panic in gen8_ggtt_insert_entries() with v6.5 Message-ID: References: <4857570.31r3eYUQgx@natalenko.name> <6287208.lOV4Wx5bFT@natalenko.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 19 Sep 2023 09:03:25 -0700 (PDT) On Tue, Sep 19, 2023 at 04:43:41PM +0100, Matthew Wilcox wrote: > Could I ask you to try this patch? I'll follow up with another patch > later because I think I made another assumption that may not be valid. Ah, no, never mind. I thought we could start in the middle of a folio, but we always start constructing the sg list from index 0 of the file, so we always start at the first page of a folio. If this patch solves your problem, then I think we're done.