Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4498141ybb; Tue, 7 Apr 2020 08:37:39 -0700 (PDT) X-Google-Smtp-Source: APiQypKYaXr1efng/7Rb4znACvMuUHfskJ3l2RaDX6c7b1lawTiyay3Rca01GIEih+4FZEiQCZP5 X-Received: by 2002:a4a:e144:: with SMTP id p4mr2340795oot.55.1586273858949; Tue, 07 Apr 2020 08:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586273858; cv=none; d=google.com; s=arc-20160816; b=bF2D+RhVefEpjD5WuwUfcX1s5rzNhhKinSzuu5LVFpe8RV6xFb+Kh7E+xIReJ5xgld I0kKj+Gv6LJZkzAMm6kw+Mz57Z/guRHVJMgn/QY8xePPIAk/jXFxJGD3dcV81AsAJfTN 9faQ+MN5Q23catcwIyLSbiFhfni5Vx55Sc2KyaomyHauCA27jjD/jTcTB9uS9XDsU3c/ DAQxjalrPMDAQd49sz+Ps8iySNAJ0Hi2ONkNR399kbF6StxFz1/t6kKS9Aafc1EHcp4D TDIctMlFAsb6tH4yWnu6cY6YN4fKQoI6ntp8vbCWDY57ip/rcg74myDUlGVRrywdhqDF 7kGA== 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=DRcjw4RWlx/WffnvzoKrFTQcWvavqs2gXoWOXywXOCk=; b=szpwWtiPkiV62enIb3yTsv/y0y023SUbgR7nuPPkzKtdjcef5IOGDZZbR+7boxEvbY mTdg/WsPXFVTc4SWmez85Y7fH2itLg5qtWbiB6MRkfTmb99W1ego/1rW0+2myHcZzvD1 g1hoM6tcUpnFy7UWhzBHiw92EiAlmrJxeBgThc1bDLmsJ7jg4XrFM0cWb32dLVTqbMy2 SOj0Pa8rjY2jqPRWyppPM7k5bRogLLuO3gqz/2cWlZhcmt81hb8Q6nDr6BL7ozHMwdB1 hL986jS9AOvKHJqB9brcuKQKnCJJSKlJa7DvM9q0xZQbOl24RmxWGGb1hc4yEnC6LvHP FwGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b="LuiZA/a8"; 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 w18si1315596otp.73.2020.04.07.08.37.24; Tue, 07 Apr 2020 08:37:38 -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="LuiZA/a8"; 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 S1729103AbgDGPgs (ORCPT + 99 others); Tue, 7 Apr 2020 11:36:48 -0400 Received: from sonic313-19.consmr.mail.gq1.yahoo.com ([98.137.65.82]:43881 "EHLO sonic313-19.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728917AbgDGPgs (ORCPT ); Tue, 7 Apr 2020 11:36:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1586273807; bh=DRcjw4RWlx/WffnvzoKrFTQcWvavqs2gXoWOXywXOCk=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From:Subject; b=LuiZA/a8J4tRv8OVyXpyrJG3TSZ8cWvWlv0C8Hb7y2zk+OODgV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OLy88bz_bLM1vSG8MACf2gYwygY6aaA3wQm4reNGx K01we4heQm1bV1hj6WfOdhGjglVO0SDKc_hEn44tuQQ3ahSMx5km_iFfVt2zy4V5VC.itVHKvUuQ wYnlCGxj6BDNTbpOzarAkWhJhvN1zgeiWvKXmyAH42yQ6PcFjZZc6NcKtf7QiDRw8FNziHcPV343 bmF.oZlF7zbDfEjicxH9BUHmJLoqFZ63G9q3bLk5Wn46t8wegXSMGlIDa.pXUe6DMsXb_oBOsGvW Gen_7eZ4vVRHgMgXzS02.VvbmROcQzVuXEp0Dh7igqbqvCWMXfm5MQq4X2D2anGxK9tpL_3LNBDQ UmlAIXTVRIMPX0VIIDW17OsaNxC4LIy2FQnpVpswgy8XThGlQgNvHpRfTIrN8spsim4LvK5enMN. 4YfvUu1s6bsY18FYwTXkyckVX1kZ8Omar5erlWhLXn25WrNROGO7wbkIBUUu8aXeHv2eF2BuDrG8 eDF.AppJEZsPCbWwrYRrznjUJK_O_RDbdPIB.8sqcFzstQhEpMWcFni4j.LY_O1YTlHvkWMBTLN6 A.WCHw50Nhut4OOKQhIfNc1mR2TxklNTq4DO1TbKgu0qoDLYd_0kjMujgMEbbNSrvuaE9DWZd2.C lKXXUpniCGnMLktTt43mSyiRV4A-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Tue, 7 Apr 2020 15:36:47 +0000 Received: by smtp427.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 8d3a3a4d22c2dc4e05ca5abcebba6325; Tue, 07 Apr 2020 15:36:42 +0000 (UTC) Date: Tue, 07 Apr 2020 11:36:39 -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> <1586219716.1a3fyi6lh5.none@localhost> <37624a1f-8e6b-fe9c-8e0e-a9139e1bbe18@shipmail.org> In-Reply-To: <37624a1f-8e6b-fe9c-8e0e-a9139e1bbe18@shipmail.org> MIME-Version: 1.0 Message-Id: <1586273767.0q72rozj3x.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: 1150 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 7, 2020 7:2= 6 am: > On 4/7/20 2:38 AM, Alex Xu (Hello71) wrote: >> Excerpts from Thomas Hellstr=C3=B6m (VMware)'s message of April 6, 2020 = 5:04 pm: >>> Hi, >>> >>> 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. >>> If you could try the attached patch, that'd be great! >>> >>> Thanks, >>> >>> Thomas >>> >> Yeah, that works too. Kernel config sent off-list. >> >> Regards, >> Alex. >=20 > Thanks. Do you want me to add your >=20 > Reported-by: and Tested-by: To this patch? >=20 > /Thomas >=20 >=20 Sure. Shouldn't we fix it properly though?