Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14075168pxu; Mon, 4 Jan 2021 12:12:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1WVOwJx4VyfvB2IywD4xrj1NM1eUqoosUcERukaNfpHYyhftF3wk9yg1RJ3oiLA7Kd1HA X-Received: by 2002:a17:906:971a:: with SMTP id k26mr68909123ejx.279.1609791149905; Mon, 04 Jan 2021 12:12:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609791149; cv=none; d=google.com; s=arc-20160816; b=rn19s2hb5ml1ySCsCXNqT4DH7PEClkCoQxEO3OMxagYAQlbcbQcYKdj6hMvOVEqFTm LgaKahUaPGiCa2H0W1/5PsR4S3m89SdwncaaqSv8tO6mclFraBGdswaxgPFAb66FJyF1 pDyfD6VROxfFLNO0xWm0CA17Ul7P35xXJETpRzrtB5P+YmOdcrFJ3r4a3YYcJZbG0usW mlX52Uuo4HoyD0Zd+hEyLRVBz3KN4P7BUPEbD36RvkOqDF2lJ57JXWBOK/OTg41QeW98 2SSMYUCUHeQeokENIqc5JOvlfFbQTDrk5/x60vsOAwpduRh7BROff15zBq11SAhMVxbp Bh8g== 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=MLs4lOSwia7VVuKW2mZ/Q32qp8iJH2T1iJGlhcXRlsA=; b=F8+B7VHXmxmusIMQ4Bnt6/j4DfGKlHutjEZ2BLHZI+wslfsBQoszT2nnERteCzn+Ev HrCnN2sGGBPjr5O+kg5jMiWZTbbPyRdAOe1GBMpOQIHK9VRd1IrdOauar1WvQloSkhJH FG1DF78326VP3uH0JxH9JfsqR/XHdUC0wbDC6ItXfBtkukyLntPHK8oXkYeMwdBYJ8q3 FEfBAOujyOUrO1cXMGmLs2+jeAB1dgwzNj1jjuaol0HqfKURlLQczofgf5Xb0+REHucZ WjZJno7E3V4TZIYNntsVppsqmsDJyRAd97BXEKKXUN/t/Kg9IR4k/x7f+9/BeJW5JExD cJQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=PnAE02r6; 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 z7si34975501edm.477.2021.01.04.12.12.06; Mon, 04 Jan 2021 12:12:29 -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=PnAE02r6; 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 S1728019AbhADULC (ORCPT + 99 others); Mon, 4 Jan 2021 15:11:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728011AbhADULC (ORCPT ); Mon, 4 Jan 2021 15:11:02 -0500 Received: from vulcan.natalenko.name (vulcan.natalenko.name [IPv6:2001:19f0:6c00:8846:5400:ff:fe0c:dfa0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7944BC061574 for ; Mon, 4 Jan 2021 12:10:21 -0800 (PST) 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 DD8F19170DB; Mon, 4 Jan 2021 21:10:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1609791017; 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=MLs4lOSwia7VVuKW2mZ/Q32qp8iJH2T1iJGlhcXRlsA=; b=PnAE02r6UbSUII6M2v3mryUx4d+bRebvwUfSzi4RnFwd7uHTyz8DwdMHjuN1RJe6+NRDIS IdWteI0aUMlI6Uj4aw+nGXCXIQpRe/Rd+lefzIsOgVWY58UXr3YO2vgQm8Cf80/XLfx6Yd tUar3yyw+RGkD+LgUE+lLEnBVL8hezY= Date: Mon, 4 Jan 2021 21:10:16 +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: <20210104201016.bncnhyq25zz2y76h@spock.localdomain> References: <20201228125020.963311703@linuxfoundation.org> <20201228125051.444911072@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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)