Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp371461pxu; Tue, 5 Jan 2021 13:27:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJyX4sYCW8hGOhuOWJKRROCmSt+HMfBgEnaQkX8kbtH0BV2yf5rkANdfIjs4d15JKICUht4q X-Received: by 2002:a50:bf4a:: with SMTP id g10mr1677742edk.201.1609882059580; Tue, 05 Jan 2021 13:27:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609882059; cv=none; d=google.com; s=arc-20160816; b=jgCF3p2MGSmZrbGWuOw3D47LTo6xJd/yHEPoa4nQftSDCFAgdIUFApqd/7FKvOIcw9 h8MuLG4gwZPLQNMOkmCRjZICTu5PJmUYqTOFJ+ewF5qPqoVDTVNjVS7RfPwVA4JpQl4G ZrJSpgwgfW5fs0No7xI69k/NpRzq/ic9MZ1f0gnNfzPx5G9jGA5fXrXzPLguGrklc+Qa YrksT/BPX+8SC9aZhPLt7HgANQc0Ovt1FKPAbIHe/YtGxV1RAr0vEZOQ3pTQhwN07YrA E1InaNqH3Pec0jvMWiRa7JlQX8lkKghEuqJieLqQxd+bkdqyO1rDlYaisNtLbgIZhm6y EOOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=erX/2pgJZ5bPfxRB/O7fqV+RkQuGJH7b9QbI8ou0L34=; b=qI1JoCVe9zJrTke813WtcHrC6g7/EY2zc8Wrs97N55WoOwKpm40kZGpkRXBGlb7aYD v/XyXVK04DRLVcR4+SSBG2RfRjSdImuYuN0feshWMAJLa4oHE55nJgnQpieGSqDfYt8b N55QGOqvNkSrQICIU/AHrpDlzqg8TNcJ/qcVRG8//6QzyPw1+J9NyzVPqPIGJwpePVSg 9+WfngSvaK5G87SeHL/npdk2Ur+sfQXYXX7iV/TWHY1n/jVkCIOWXwcJ7i3pYXCieUor yG/QNx8uiKvwT5sTZUW+jRsVugT8kIkpGPVf6x3sDELAvF9bsYskYmo3VsA4O5ACwD0F lWXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p20si127484eds.141.2021.01.05.13.27.16; Tue, 05 Jan 2021 13:27:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728927AbhAEQdK (ORCPT + 99 others); Tue, 5 Jan 2021 11:33:10 -0500 Received: from mail1.ugh.no ([178.79.162.34]:58008 "EHLO mail1.ugh.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728752AbhAEQdK (ORCPT ); Tue, 5 Jan 2021 11:33:10 -0500 Received: from localhost (localhost [127.0.0.1]) by mail1.ugh.no (Postfix) with ESMTP id EB58D253956; Tue, 5 Jan 2021 17:32:28 +0100 (CET) Received: from mail1.ugh.no ([127.0.0.1]) by localhost (catastrophix.ugh.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pfSrOnDksqq7; Tue, 5 Jan 2021 17:32:28 +0100 (CET) Received: from [IPv6:2a0a:2780:4d57:40:54fd:5612:86a2:2c2f] (unknown [IPv6:2a0a:2780:4d57:40:54fd:5612:86a2:2c2f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: andre@tomt.net) by mail.ugh.no (Postfix) with ESMTPSA id 439CA253954; Tue, 5 Jan 2021 17:32:28 +0100 (CET) Subject: Re: [PATCH 5.10 637/717] drm/amd/display: Fix memory leaks in S3 resume To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Harry Wentland , Alex Deucher , Nicholas Kazlauskas , Stylon Wang References: <20201228125020.963311703@linuxfoundation.org> <20201228125051.444911072@linuxfoundation.org> From: Andre Tomt Message-ID: <8db47895-e7e4-ed9a-e996-c071b5c6f750@tomt.net> Date: Tue, 5 Jan 2021 17:32:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05.01.2021 07:54, Greg Kroah-Hartman wrote: > On Mon, Jan 04, 2021 at 08:04:08PM +0100, Andre Tomt wrote: >> On 28.12.2020 13:50, Greg Kroah-Hartman wrote: >>> From: Stylon Wang >>> >>> commit a135a1b4c4db1f3b8cbed9676a40ede39feb3362 upstream. >>> >>> EDID parsing in S3 resume pushes new display modes >>> to probed_modes list but doesn't consolidate to actual >>> mode list. This creates a race condition when >>> amdgpu_dm_connector_ddc_get_modes() re-initializes the >>> list head without walking the list and results in memory leak. >> >> This commit is causing me problems on 5.10.4: when I turn off the display (a >> LG TV in this case), and turn it back on again later there is no video >> output and I get the following in the kernel log: >> >> [ 8245.259628] [drm:dm_restore_drm_connector_state [amdgpu]] *ERROR* >> Restoring old state failed with -12 >> >> I've found another report on this commit as well: >> https://bugzilla.kernel.org/show_bug.cgi?id=211033 >> >> And I suspect this is the same: >> https://bugs.archlinux.org/task/69202 >> >> Reverting it from 5.10.4 makes things behave again. >> >> Have not tested 5.4.86 or 5.11-rc. >> >> I'm using a RX570 Polaris based card. > > Can you test 5.11-rc to see if this issue is there as well? Just did, and have the same issue on 5.11-rc2. Reverting it also solves the problem on 5.11-rc2, as it does on 5.10.4 FWIW one easy way to reproduce seems to be unplugging and re-plugging the HDMI.