Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4279157ybb; Tue, 7 Apr 2020 04:27:33 -0700 (PDT) X-Google-Smtp-Source: APiQypI9Z12/2iCzZQEg3w2xgInS0jCAYDMyoAyqsbelrL9qxFPpVD6yfAWNfwn4Pu22P2ljgXBt X-Received: by 2002:a05:6830:11d5:: with SMTP id v21mr1130620otq.91.1586258853504; Tue, 07 Apr 2020 04:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586258853; cv=none; d=google.com; s=arc-20160816; b=K0Wv2fPE65/q7wQalrOUrRUHy3Onkf6BpYBq5yGV/G63T+OPENsvOk5aMP/ThHHtqS xh7Zihn9SMp2ZJp4fN0ilJCQn61wkzeziTKH79jTkmB1IYPCAZwBO1qcVGy9MXNGQRBa AyzZaMMN8ucMTa2mKPxafq9LSMPBfbNHHLV/t/oYwBQ8NRQU+f2MhEw6SsK9gfRspwR6 oWzHXeKblqAsHe7w+cRrnrscgKtxPWzPUU2WPRXq29wCNygGpphMSXaiSXAwSyZIrJM3 RILROvVztv1ezDaEQ+VH2je5H04Z8Omi6QA7GycTZhJ2Sf+gupdM7xGrfOG4Di1nRJ1I PXcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=+12Mq5JWJsxkinHtNYSI6cx13fzoS7KcCMTCX6BhLGU=; b=dpDrC6wDTbeZ/xDT58pQpUlXWyKYWVYFRl5B0mK4MQd5dpuKDyjOYog8THjpuUrAOJ 29s7UPS5RlC/Xy9skuAaV0i/qY3/d6TcVdshyfeZrzUhaFgpqKi4Uu8SIEK4UWUJTTEO rsGiyeD5x+by7upDiUk2xY0h7aah8oD9uAOGpufEwFFU2XJjDg+Elc8/O/h0MHK1Hxif 4VGznkguWJe6CTc6ej2Z9C1zx/voAPLGAOylhTGCy+dV97kejYronLlL2OrZqMYOZyN7 yO9y8bM/f1C6XarrL5MswSVQV5dafSxq8Ra4/7eu6fS/2PAZZF6wYyAD1doJiqxVzJj4 gHCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@shipmail.org header.s=mail header.b=piIxwkkk; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w129si499284oia.232.2020.04.07.04.27.20; Tue, 07 Apr 2020 04:27:33 -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=fail (test mode) header.i=@shipmail.org header.s=mail header.b=piIxwkkk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728023AbgDGL0p (ORCPT + 99 others); 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 X-Spam-Flag: NO X-Spam-Score: -2.099 X-Spam-Level: X-Spam-Status: No, score=-2.099 tagged_above=-999 required=6.31 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no 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