Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14042865pxu; Mon, 4 Jan 2021 11:14:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmYOWn5ZjdYohqsLGrcDEWD+g2k4jlBVUcKVEcjhNFUKPqAuDA6RoAEcxM2QPJuxkRR8RO X-Received: by 2002:a17:907:961b:: with SMTP id gb27mr49458876ejc.313.1609787663617; Mon, 04 Jan 2021 11:14:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609787663; cv=none; d=google.com; s=arc-20160816; b=NvJESjyh9X0dJrWWA2QRLFki+oBCFUDM6DD9q0Fo0nIMB9sI+pxu4Fdw59n1qyw5Si 7jWAemg7CGu3k1JUtJ4+Mz4qh/eOnVOGz08OWbFTWsMDSs25210StaWTSUx+Afjzg1XC azByx+hajeW0IjURmTcIk+Q3SHrTHWiYC9kxI1gI7qbeq7xS6DFrtiSyxkOS+PntnPeF hGtZ09ZPufD77r0dWdbAb/UXTv2OIYl1gj1liOk/Yece4QUR9NWJV+ftBeuPKrgeF7Yj IICCKswCxQ5g3Sq+1ApBQEThbZzGjsPKmglEqB/yJH9iIASZfQu9P2h4EIW97PhXoi8U F8XA== 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=hIhtuv6XVGxb2PiewkRvHewto8T5JDSwB55QBj+c0vI=; b=Hyx3Oxm+xPfJ0OtlL1XK+/usTvBKUJJvhe4GX6VoLq0L0JCJ/7OdjsOlxdYv3oRp6t IZG67yNsQky+XTeijnqa12KFRZCmmybzTKSpGJBh1eaGxD2REEgq5Sv/0yjZ8+Abywjg HN7Z/v1Ccrif5nVxgeo7TwV9HHilpf+yxSrREIqim1O8zB0MlRoj8TyLZPSsD65QgucP lVeLlB3e1dydCERKg5vIenoCrq6KGTtWzGBVJOgI6qLwv25PMG5Rz+NP1I4QntEKVeuS toBdoLdHZdcmmyZBFyB44po71uf9WN0fjEnFMCj2F5PC+ETL93rt5YXRoc2kKNChmkaS bWrg== 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 o2si28632796ejn.501.2021.01.04.11.13.58; Mon, 04 Jan 2021 11:14:23 -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 S1726176AbhADTMe (ORCPT + 99 others); Mon, 4 Jan 2021 14:12:34 -0500 Received: from mail1.ugh.no ([178.79.162.34]:53764 "EHLO mail1.ugh.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725889AbhADTMe (ORCPT ); Mon, 4 Jan 2021 14:12:34 -0500 X-Greylist: delayed 462 seconds by postgrey-1.27 at vger.kernel.org; Mon, 04 Jan 2021 14:12:33 EST Received: from localhost (localhost [127.0.0.1]) by mail1.ugh.no (Postfix) with ESMTP id 7B0D42538B6; Mon, 4 Jan 2021 20:04:10 +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 qqLuc-hxzn-r; Mon, 4 Jan 2021 20:04:09 +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 4A6DD2538FB; Mon, 4 Jan 2021 20:04:09 +0100 (CET) Subject: Re: [PATCH 5.10 637/717] drm/amd/display: Fix memory leaks in S3 resume To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: 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: Date: Mon, 4 Jan 2021 20:04:08 +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: <20201228125051.444911072@linuxfoundation.org> 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 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.