From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2A6FC2BB55 for ; Tue, 7 Apr 2020 11:26:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A970420678 for ; Tue, 7 Apr 2020 11:26:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=shipmail.org header.i=@shipmail.org header.b="piIxwkkk" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728121AbgDGL0p (ORCPT ); Tue, 7 Apr 2020 07:26:45 -0400 Received: from pio-pvt-msa1.bahnhof.se ([79.136.2.40]:36230 "EHLO pio-pvt-msa1.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbgDGL0p (ORCPT ); Tue, 7 Apr 2020 07:26:45 -0400 Received: from localhost (localhost [127.0.0.1]) by pio-pvt-msa1.bahnhof.se (Postfix) with ESMTP id 643853F368; Tue, 7 Apr 2020 13:26:42 +0200 (CEST) Authentication-Results: pio-pvt-msa1.bahnhof.se; dkim=pass (1024-bit key; unprotected) header.d=shipmail.org header.i=@shipmail.org header.b="piIxwkkk"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at bahnhof.se Received: from pio-pvt-msa1.bahnhof.se ([127.0.0.1]) by localhost (pio-pvt-msa1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vt4K3mBNS09h; Tue, 7 Apr 2020 13:26:41 +0200 (CEST) Received: from mail1.shipmail.org (h-205-35.A357.priv.bahnhof.se [155.4.205.35]) (Authenticated sender: mb878879) by pio-pvt-msa1.bahnhof.se (Postfix) with ESMTPA id 221013F332; Tue, 7 Apr 2020 13:26:36 +0200 (CEST) Received: from localhost.localdomain (h-205-35.A357.priv.bahnhof.se [155.4.205.35]) by mail1.shipmail.org (Postfix) with ESMTPSA id 3941D360153; Tue, 7 Apr 2020 13:26:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shipmail.org; s=mail; t=1586258796; bh=+12Mq5JWJsxkinHtNYSI6cx13fzoS7KcCMTCX6BhLGU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=piIxwkkkLZtVXLkSsBihv4EBeAbqPIMXEHGRNcwFHpIHptwXbmT412OMcik/NkAMb 9hVLdnvGQzBVm/tYKlT9OG+0bNW/WV+IoNBYlHyZyFvXMVz6Cx2INk93o1baclh8fH 5nVo5XXLMOGPE3PglGBTdep+S8d8VUpf2HKORMTA= Subject: Re: Bad rss-counter state from drm/ttm, drm/vmwgfx: Support huge TTM pagefaults To: "Alex Xu (Hello71)" , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Andrew Morton , =?UTF-8?Q?Christian_K=c3=b6nig?= , Dan Williams , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , "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> From: =?UTF-8?Q?Thomas_Hellstr=c3=b6m_=28VMware=29?= Organization: VMware Inc. Message-ID: <37624a1f-8e6b-fe9c-8e0e-a9139e1bbe18@shipmail.org> Date: Tue, 7 Apr 2020 13:26:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <1586219716.1a3fyi6lh5.none@localhost> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/7/20 2:38 AM, Alex Xu (Hello71) wrote: > Excerpts from Thomas Hellström (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. Thanks. Do you want me to add your Reported-by: and Tested-by: To this patch? /Thomas