Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14101782pxu; Mon, 4 Jan 2021 12:43:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyIZovcaO5d7rJJjuM8/30rKn1O+tYiWqvbbAKTnXJnZR0wiW3oG1OcLK3EpJcbbZQl8Zmr X-Received: by 2002:a17:906:4717:: with SMTP id y23mr27158037ejq.6.1609792997356; Mon, 04 Jan 2021 12:43:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609792997; cv=none; d=google.com; s=arc-20160816; b=n79xVyrF5EpLNPPLT3jSHSjOsQdanWWD2WfCAIubzyaxHWtRT+LHgemV8Gk4kzZqAb GX9lCwYF5uVpPJXrti1V7KoBt+GjtSWuNOs69YUp2iKIWyJBfOt2rkYmiIdIQkhiSqU5 4nKfPa7MqD3HgFrNz2E4zKXSt0K5vtqKRUlctiV0lfaiXV10kBOJvug4UhC0+tB7js7d M/LzCL+BTcuBu7NzI9gkdgRUovYsmmwHES0JswXdnDS47IFFUutckCyx956SpLZb7mwb 8jHrHB1qrUlHqh3ktESnOHjt2PWAWhBO3o0EaGxM6xur/B/MC8hCFaTMM+7gq23gwCaG ZTog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=m3kO4/0YnkBsr3+eyXx74q8og9elDAs3U+DeFXahA8A=; b=xXEJe6w6LX9Nf0oBDur69ZRp9/6fvP0W5svvT/0j99YcVTAYCkR/XNhrwtldje9rfc xZRnv92vFz13vb7KuKt5Z7UGwuekzfjkrm9S+p4DCk2MI/gdXbHtB/UA6QbIZ0fSxYVx OwthL57gGzI0RfCUGG8uoyyBXJaOyGPF1xOiX/Ft0uBwLai0aeco1hKzMxHU7aCYtOGX 2PwwRBYZ/hBiiU02t7w+1I3q8JQ9CssF9QPnmaYhaEYf+bzCjvgMK+8jVamWjW4OFjHS UoDCHjw1nwPAZpY6ZCyNZKkDIgPdLWkyyS6bIUBhglrWioH4l6eYGcQOIYJHeOM5dw2W Z72w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=FiJIQEVM; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r13si28040544edc.254.2021.01.04.12.42.53; Mon, 04 Jan 2021 12:43:17 -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; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=FiJIQEVM; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727310AbhADUlG (ORCPT + 99 others); Mon, 4 Jan 2021 15:41:06 -0500 Received: from vulcan.natalenko.name ([104.207.131.136]:49628 "EHLO vulcan.natalenko.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725840AbhADUlG (ORCPT ); Mon, 4 Jan 2021 15:41:06 -0500 Received: from localhost (home.natalenko.name [151.237.229.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vulcan.natalenko.name (Postfix) with ESMTPSA id A35E19171B5; Mon, 4 Jan 2021 21:40:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1609792823; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=m3kO4/0YnkBsr3+eyXx74q8og9elDAs3U+DeFXahA8A=; b=FiJIQEVMIEGPLRLwuTGiz0LgbHiNrwZda/w+m5WNew9UE/smj6ZbT7folHdXgHqguQydum pChH4fK/2zTYv6kdpT/RPyhrCv0lEV4MJbh5/hSOuQwAd6HpUd2nQEspDu24KX3iNtRvXo pxRLyacsJLJ6upCC2Nx0AVbC43LhTLA= Date: Mon, 4 Jan 2021 21:40:23 +0100 From: Oleksandr Natalenko To: Andre Tomt Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Harry Wentland , Alex Deucher , Nicholas Kazlauskas , Stylon Wang Subject: Re: [PATCH 5.10 637/717] drm/amd/display: Fix memory leaks in S3 resume Message-ID: <20210104204023.nloe547uwfxgjnl4@spock.localdomain> References: <20201228125020.963311703@linuxfoundation.org> <20201228125051.444911072@linuxfoundation.org> <20210104201016.bncnhyq25zz2y76h@spock.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210104201016.bncnhyq25zz2y76h@spock.localdomain> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 04, 2021 at 09:10:17PM +0100, Oleksandr Natalenko 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 > > Uh, it seems you've just saved me a ton of gray hair. I have the very > same issue and I'm going to revert this patch now in order to check > whether it makes any difference. Confirmed, reverting this patch makes my monitor light back after turning off/on. Also, during testing, I've noticed that with the stock v5.10.4 kernel once reboot sequence is initiated and xorg gets killed, the monitor also lights back and shows the console. My HW: 0a:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] (rev c7) > > Thanks! > > > > > 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. -- Oleksandr Natalenko (post-factum)