Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3857641ybb; Mon, 6 Apr 2020 17:41:28 -0700 (PDT) X-Google-Smtp-Source: APiQypI0B2bpu+XDVcriJG7+yHPyma99lhe0yQ1iE0AxWCfWN2Oveowmfnn4zTwa8ohBDHd89uAJ X-Received: by 2002:a4a:1882:: with SMTP id 124mr1525242ooo.60.1586220088043; Mon, 06 Apr 2020 17:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586220088; cv=none; d=google.com; s=arc-20160816; b=yRWTatX7QGtrMpzsIbHAocc8a4eEGwNYOYJimfX92vwhTxbqpY8aftIwe+zhxhRHgK nxG5gBnLQsRwpFVtSA3ZALuDlUtwwFCUj4oZ/+V35zTMStixkdVP1uiHc+UPciDAgIU1 mJzL08vQfJnpyaxsly3yqQmat1d4x7XZx0lAgSr+DtY5C2pgUEmKYhkYfM9DjWzWiEZs LcBimGFzFBrK/E1GrHGkAVXsLZdPuQCECC6gP6gUkIGyGrisT8UyWFBL/GoQ3Om3+y4B uTPyo0bgGq9k+cZB79XnqX/DS/dG/WldBlSMvAqvWjKxnhpHmNEY1eblUZQo1YvUB6xy 2JIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:message-id :mime-version:in-reply-to:references:cc:to:subject:from:date :dkim-signature; bh=WqkBupthajN/wVNjyMab6WjNkJYjZbWKiQLkiDzGuL8=; b=sz71brtfNJ2BMsn5vk0t5/VOgJFQcWq66/O8fTWetT5LCMfWS76/f0WGrM3r6zHIRL 4hXMJAxlQkO67NU/zZCbz6PVrTa+o9Z2KWvDLwYqJJoXxUYnElOJMj3onvII7KfH816s sco0LTf2wS5TBntYu1BQUH7VsFA3m+x6liGO6ufGixc1V+EmW9GEplD79fMkAC9Hplp6 OJ7ZD94h5DsqVdEzNuEPHTObvJn0PSMjdDoeL1JpsLRLEMmdchDHAaxgkgX48/8JuMPV KlDLHnZP0j8i38KeY996SPuuosReOpm3q1e4Goj2nQeW1O+IQhhfaS5EpiFoza1aSZIB QDZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=M1ZyPm84; 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=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u199si7989167oif.110.2020.04.06.17.41.15; Mon, 06 Apr 2020 17:41:28 -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=@yahoo.ca header.s=s2048 header.b=M1ZyPm84; 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=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726370AbgDGAkl (ORCPT + 99 others); Mon, 6 Apr 2020 20:40:41 -0400 Received: from sonic310-49.consmr.mail.gq1.yahoo.com ([98.137.69.175]:35341 "EHLO sonic310-49.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbgDGAkl (ORCPT ); Mon, 6 Apr 2020 20:40:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1586220039; bh=WqkBupthajN/wVNjyMab6WjNkJYjZbWKiQLkiDzGuL8=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From:Subject; b=M1ZyPm84VdFE7nGdaCFwWB9dJFOU2AswpxkEQomEJzw9T0vV4NJG9RNfVmohcSg8mL2bEJEquJ6QW5EgoDGrp9iZ03c/41vIOhn4a2yr4ECZ5b3thfguhpBSoAgaRGyP/3OcAfwV68h5MKIs5s1fVsyEaZtue93megk8RR3qJOeIx9nagkd+ieOQt+ujWesq7Lyjr5Lhnx60jXnqQC7gWlOLqKpJMJN+Lf1pidgM/Eupa/RnUjTs3CRltdACwJPpUvLgoWVk3+RNL3reAYJDhtOKgw6/8MG+WEs6K8OmcOQh2WoVMVRftK1HBov8RLWQi2slsPgLLXfVFPQiBICMNw== X-YMail-OSG: N_6BpMEVRDvd.miR6A7lED5GPdAEx7ojsA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Tue, 7 Apr 2020 00:40:39 +0000 Received: by smtp426.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 56102bb25bec285dc24cdcfca4dac9a3; Tue, 07 Apr 2020 00:38:38 +0000 (UTC) Date: Mon, 06 Apr 2020 20:38:34 -0400 From: "Alex Xu (Hello71)" Subject: Re: Bad rss-counter state from drm/ttm, drm/vmwgfx: Support huge TTM pagefaults To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Thomas =?iso-8859-1?q?Hellstr=F6m?= "(VMware)" Cc: Andrew Morton , Christian =?iso-8859-1?b?S/ZuaWc=?= , Dan Williams , =?iso-8859-1?b?Suly9G1l?= Glisse , "Kirill A. Shutemov" , linux-graphics-maintainer@vmware.com, Michal Hocko , pv-drivers@vmware.com, Ralph Campbell , Roland Scheidegger , "Matthew Wilcox (Oracle)" References: <1586138158.v5u7myprlp.none.ref@localhost> <1586138158.v5u7myprlp.none@localhost> <0b12b28c-5f42-b56b-ea79-6e3d1052b332@shipmail.org> In-Reply-To: <0b12b28c-5f42-b56b-ea79-6e3d1052b332@shipmail.org> MIME-Version: 1.0 Message-Id: <1586219716.1a3fyi6lh5.none@localhost> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.15620 hermes Apache-HttpAsyncClient/4.1.4 (Java/11.0.6) Content-Length: 822 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Excerpts from Thomas Hellstr=C3=B6m (VMware)'s message of April 6, 2020 5:0= 4 pm: > Hi, >=20 > On 4/6/20 9:51 PM, Alex Xu (Hello71) wrote: >> Using 314b658 with amdgpu, starting sway and firefox causes "BUG: Bad >> rss-counter state" and "BUG: non-zero pgtables_bytes on freeing mm" to >> start filling dmesg, and then closing programs causes more BUGs and >> hangs, and then everything grinds to a halt (can't start more programs, >> can't even reboot through systemd). >> >> Using master and reverting that branch up to that point fixes the >> problem. >> >> I'm using a Ryzen 1600 and AMD Radeon RX 480 on an ASRock B450 Pro4 >> board with IOMMU enabled. >=20 > If you could try the attached patch, that'd be great! >=20 > Thanks, >=20 > Thomas >=20 Yeah, that works too. Kernel config sent off-list. Regards, Alex.