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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 2B740C433E0 for ; Tue, 5 Jan 2021 06:54:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D9EAB229C6 for ; Tue, 5 Jan 2021 06:54:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726097AbhAEGyr (ORCPT ); Tue, 5 Jan 2021 01:54:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:58500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725290AbhAEGyr (ORCPT ); Tue, 5 Jan 2021 01:54:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9609622482; Tue, 5 Jan 2021 06:54:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609829646; bh=3QGjJ+c7OISO2HWA6+TOFeLlK1G4pSZMoaTyNzDtunM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SOx4lAdwDB08JCW+czYwOp8LEBjBQrc0U0rbItCl0VpgfXqqG3G0bOu8XMUw1QDTq PeOQyDHx+6sCF64wf5bsIgrmOtUJnefZ38mFJTmf+xzL1IozwNC57oUfuFQyZat1tj z+2WVTmx8FS/W2WwTd9jamEEteP1c07GBddPzCGk= Date: Tue, 5 Jan 2021 07:54:02 +0100 From: Greg Kroah-Hartman To: Andre Tomt Cc: 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: 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 > > 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? thanks, greg k-h