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.1 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 5F4B1C2BA1A for ; Mon, 6 Apr 2020 20:26:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0F542206B8 for ; Mon, 6 Apr 2020 20:26:06 +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="j4IsSgXC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726416AbgDFU0F (ORCPT ); Mon, 6 Apr 2020 16:26:05 -0400 Received: from ste-pvt-msa2.bahnhof.se ([213.80.101.71]:46023 "EHLO ste-pvt-msa2.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725957AbgDFU0E (ORCPT ); Mon, 6 Apr 2020 16:26:04 -0400 Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTP id A8CC343DF6; Mon, 6 Apr 2020 22:26:02 +0200 (CEST) Authentication-Results: ste-pvt-msa2.bahnhof.se; dkim=pass (1024-bit key; unprotected) header.d=shipmail.org header.i=@shipmail.org header.b=j4IsSgXC; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at bahnhof.se Authentication-Results: ste-ftg-msa2.bahnhof.se (amavisd-new); dkim=pass (1024-bit key) header.d=shipmail.org Received: from ste-pvt-msa2.bahnhof.se ([127.0.0.1]) by localhost (ste-ftg-msa2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4SIvHs6jCMD6; Mon, 6 Apr 2020 22:26:01 +0200 (CEST) Received: from mail1.shipmail.org (h-205-35.A357.priv.bahnhof.se [155.4.205.35]) (Authenticated sender: mb878879) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTPA id AEB7B43DF7; Mon, 6 Apr 2020 22:25:53 +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 00151360153; Mon, 6 Apr 2020 22:25:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shipmail.org; s=mail; t=1586204753; bh=WbUdhT5dg8z6hiyUYRS2nHJSvQqFxrl6lLG86/Mrvrw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=j4IsSgXCnt5Bt0aXP9MiHm1kUCfwxku/J/HE5dUuMTKMOEMowSsbZEHrWcuUNN0yH WDg9Fkb77WT1LTTjQ+N2NawXF8q8m2i5RnfAxXl442JoAsMc1xjDwrnanD0DAp+Sbo SoUUE3bwPLSNgtYb+QJg2M+7TmotgzrwwCvNB0jk= Subject: Re: Bad rss-counter state from drm/ttm, drm/vmwgfx: Support huge TTM pagefaults To: "Alex Xu (Hello71)" , linux-mm@kvack.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: pv-drivers@vmware.com, linux-graphics-maintainer@vmware.com, Andrew Morton , Michal Hocko , "Matthew Wilcox (Oracle)" , "Kirill A. Shutemov" , Ralph Campbell , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , =?UTF-8?Q?Christian_K=c3=b6nig?= , Dan Williams , Roland Scheidegger References: <1586138158.v5u7myprlp.none.ref@localhost> <1586138158.v5u7myprlp.none@localhost> From: =?UTF-8?Q?Thomas_Hellstr=c3=b6m_=28VMware=29?= Organization: VMware Inc. Message-ID: <249c73d2-991a-56b0-53b5-677e9ca54aae@shipmail.org> Date: Mon, 6 Apr 2020 22:25:49 +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: <1586138158.v5u7myprlp.none@localhost> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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/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. Hmm. That sounds bad. Could you send a copy of your config? Meanwhile, I'll prepare a small patch that disables the non-vmwgfx huge_fault() until we've figured out what's happening. /Thomas 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.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,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 0A94FC2BA2B for ; Mon, 6 Apr 2020 20:26:08 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DC6B6206B8 for ; Mon, 6 Apr 2020 20:26:07 +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="j4IsSgXC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DC6B6206B8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=shipmail.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B92FD6E4C5; Mon, 6 Apr 2020 20:26:06 +0000 (UTC) Received: from ste-pvt-msa2.bahnhof.se (ste-pvt-msa2.bahnhof.se [213.80.101.71]) by gabe.freedesktop.org (Postfix) with ESMTPS id D7DBD6E4C5 for ; Mon, 6 Apr 2020 20:26:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTP id A8CC343DF6; Mon, 6 Apr 2020 22:26:02 +0200 (CEST) Authentication-Results: ste-pvt-msa2.bahnhof.se; dkim=pass (1024-bit key; unprotected) header.d=shipmail.org header.i=@shipmail.org header.b=j4IsSgXC; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at bahnhof.se Authentication-Results: ste-ftg-msa2.bahnhof.se (amavisd-new); dkim=pass (1024-bit key) header.d=shipmail.org Received: from ste-pvt-msa2.bahnhof.se ([127.0.0.1]) by localhost (ste-ftg-msa2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4SIvHs6jCMD6; Mon, 6 Apr 2020 22:26:01 +0200 (CEST) Received: from mail1.shipmail.org (h-205-35.A357.priv.bahnhof.se [155.4.205.35]) (Authenticated sender: mb878879) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTPA id AEB7B43DF7; Mon, 6 Apr 2020 22:25:53 +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 00151360153; Mon, 6 Apr 2020 22:25:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shipmail.org; s=mail; t=1586204753; bh=WbUdhT5dg8z6hiyUYRS2nHJSvQqFxrl6lLG86/Mrvrw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=j4IsSgXCnt5Bt0aXP9MiHm1kUCfwxku/J/HE5dUuMTKMOEMowSsbZEHrWcuUNN0yH WDg9Fkb77WT1LTTjQ+N2NawXF8q8m2i5RnfAxXl442JoAsMc1xjDwrnanD0DAp+Sbo SoUUE3bwPLSNgtYb+QJg2M+7TmotgzrwwCvNB0jk= Subject: Re: Bad rss-counter state from drm/ttm, drm/vmwgfx: Support huge TTM pagefaults To: "Alex Xu (Hello71)" , linux-mm@kvack.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <1586138158.v5u7myprlp.none.ref@localhost> <1586138158.v5u7myprlp.none@localhost> From: =?UTF-8?Q?Thomas_Hellstr=c3=b6m_=28VMware=29?= Organization: VMware Inc. Message-ID: <249c73d2-991a-56b0-53b5-677e9ca54aae@shipmail.org> Date: Mon, 6 Apr 2020 22:25:49 +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: <1586138158.v5u7myprlp.none@localhost> Content-Language: en-US X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ralph Campbell , Michal Hocko , pv-drivers@vmware.com, Roland Scheidegger , Dan Williams , "Matthew Wilcox \(Oracle\)" , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , linux-graphics-maintainer@vmware.com, Andrew Morton , =?UTF-8?Q?Christian_K=c3=b6nig?= , "Kirill A. Shutemov" Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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. Hmm. That sounds bad. Could you send a copy of your config? Meanwhile, I'll prepare a small patch that disables the non-vmwgfx huge_fault() until we've figured out what's happening. /Thomas _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel