Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4370886pxj; Wed, 12 May 2021 04:17:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvllxx2jRVq3MmMZuDoBqpYK5gpmjU1rqMXqWxQXm6Oc5BDX9dBPx9j4X9oOvEWoPr74aV X-Received: by 2002:a92:d2c5:: with SMTP id w5mr6402325ilg.146.1620818247887; Wed, 12 May 2021 04:17:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620818247; cv=none; d=google.com; s=arc-20160816; b=Fk8uo50bvTCtbqxWjiqbd7GNN46q9Jan/nFmXnO0v/RoxLNantfVJwuGOekPWyRtrD wDF74UL78iQ3zTHvInb0mwAZAUwWIGWXrWLUcCBhziNB2cAII3QWthcm3OLtXltTrJ5U 8iEK8gpZBpfYAbGIoNUH49M/ovMMKXdJpHPpoHH3hfUEKcAQ5k1OlOqhGtQY93vATi4o b/0M08Miez6FT/GDrm20HrKWOFpLVE9WWwiZ0/dPK9Ao1HWyK7s4/5dKj3X+8jFyJxBx g6lAogfR1b6smV7ypWM3aiFfMk8PlNOILiCyVa8wdsfMB/3PJSMHnb8K3QD2WfvSgM3w w7Sg== 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=/YzIPVf0TSTnsIiEebVAwyDbe66VAQBxqqFJbqGyDhM=; b=bo2ST/UI3MV7HN6nryF1gnmwAx8AjUUuMDiFdtCZ3sPz8R+imsq9BODJmOAR3j0BDJ lOcqSnV9u02LvJ3AxthcZewEZMSsJWKy9j/mSsFBuIWTBWH8oHaVSwGpWTSdi/zU0IaQ Di3Bnxd/L7VynikHTjHOPVCmceym9WWAaVTjC7g/SusaTAWXi8QJXP2Y3yjqsRKatYTv eIoJoWRjaYtfs4ud0Q94V6OpqxukT/Dp6VZddqmMzCEtyRfzTAgw1xLZuwtreAaYnFX9 iu7kigPzkh+OBd5IEnBkRiStr5H9L/myx408j8JwxPoyHev7s4IJDsTm+GIOPvGZ9unq 4LQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="t6WgltO/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 7si22803388ilj.22.2021.05.12.04.17.15; Wed, 12 May 2021 04:17:27 -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=@infradead.org header.s=casper.20170209 header.b="t6WgltO/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230357AbhELLRS (ORCPT + 99 others); Wed, 12 May 2021 07:17:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230182AbhELLRQ (ORCPT ); Wed, 12 May 2021 07:17:16 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1380FC061574 for ; Wed, 12 May 2021 04:16:08 -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=/YzIPVf0TSTnsIiEebVAwyDbe66VAQBxqqFJbqGyDhM=; b=t6WgltO/8euk95nxU3pgCRIET1 TBjLWJTUgj0j+tgtmL5Ksuz3zF7W99rqn/72myM45MaxGNie0oYHW+BcjkYHxdhuUia2clhFIJnHv PLAJ9lfxm5XVdyCWu2p70zI0Il2KJBqp62saEs0WfG0qnd4vt5toydMYMtmqajCgtpk5z3jMCAKpj yA9TDDDVs2q37/AKF9WtEiLeb0jRwzHIxSpJRzCqTkNrqEOn1A4i6RRJ5KjXVlFJoX+tCaI7aYjjq pnf9ydfiQDIIGFKCVzGBEalJYEKiBIe7v5bKRUYhbKUsdbYtHPgZx6mTVQqb5XU+5Gqs0BJC3mtg+ bALQOHdQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lgmpU-008D7l-Vl; Wed, 12 May 2021 11:15:11 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 06921300242; Wed, 12 May 2021 13:15:04 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E5F5C20B5CA97; Wed, 12 May 2021 13:15:03 +0200 (CEST) Date: Wed, 12 May 2021 13:15:03 +0200 From: Peter Zijlstra To: Hans de Goede Cc: intel-gfx@lists.freedesktop.org, Linux Kernel Mailing List , x86@kernel.org, hch@lst.de Subject: Re: 5.13 i915/PAT regression on Brasswell, adding nopat to the kernel commandline worksaround this Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 12, 2021 at 11:57:02AM +0200, Hans de Goede wrote: > Hi All, > > I'm not sure if this is a i915 bug, or caused by changes elsewhere in the kernel, > so I thought it would be best to just send out an email and then see from there. > > With 5.13-rc1 gdm fails to show and dmesg contains: > > [ 38.504613] x86/PAT: Xwayland:683 map pfn RAM range req write-combining for [mem 0x23883000-0x23883fff], got write-back > > [ 39.484766] x86/PAT: gnome-shell:632 map pfn RAM range req write-combining for [mem 0x1c6a3000-0x1c6a3fff], got write-back > > [ 54.314858] Asynchronous wait on fence 0000:00:02.0:gnome-shell[632]:a timed out (hint:intel_cursor_plane_create [i915]) > [ 58.339769] i915 0000:00:02.0: [drm] GPU HANG: ecode 8:1:86dfdffb, in gnome-shell [632] > [ 58.341161] i915 0000:00:02.0: [drm] Resetting rcs0 for stopped heartbeat on rcs0 > [ 58.341267] i915 0000:00:02.0: [drm] gnome-shell[632] context reset due to GPU hang > > Because of the PAT errors I tried adding "nopat" to the kernel commandline > and I'm happy to report that that works around this. > > Any hints on how to debug this further (without doing a full git bisect) would be > appreciated. IIRC it's because of 74ffa5a3e685 ("mm: add remap_pfn_range_notrack"), which added a sanity check to make sure expectations were met. It turns out they were not. The bug is not new, the warning is. AFAIK the i915 team is aware, but other than that I've not followed.