Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14372629pxu; Mon, 4 Jan 2021 22:56:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9FnQz9F7ycyJzDX6Nlk9FCl/ArwPPFtxc8ndi2wvdgBAKzUSqfLbidGZppUVAdRbI9GV+ X-Received: by 2002:a05:6402:31b5:: with SMTP id dj21mr76054815edb.90.1609829760307; Mon, 04 Jan 2021 22:56:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609829760; cv=none; d=google.com; s=arc-20160816; b=odnfEffqvTx2hkBSABUByadv1TSqNzRcyg6CPhZTJGHtIoKIGjfeyyTHZoHbosB6MT hF0lD8uBJdi3REVSUGbnF5PQottu0+33YrNV4dKZTcDVnLbYPnntHmIJDtPnhexvHkiZ IK+lDCF9k6JXl6hLrl7zH+DJoznGGePWrhlRlI31jWs1tcxL9Z81h7aI0xAOfrnYH2yT JWDkfozX+1GQ4qvEQpukqEY6iDMh/ZN8FKRybJtEy7QSgMTEFRlChIAP1u3JVU/Tq4dh pcKw+amTPzniFqRF+dCoavnuFz+PEi9vyq8OGAVF73OkkOytHXgMbBB4HrLflq0om6nT Yc4Q== 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=hrn/Y6i6YQu2ndfOy4NSmb1mNjNJC0f/6vGB6cz4Pnw=; b=YbP1FvBUH2uk6GLq7aQ+YAt+S07qJLWKLMuqKYRQbXL7XjkpirFxErqhe7sFIRRAF5 2uIPr90Y+MS/PcadGVMxsg3ub7JmHSl0oz0o+k8WtDPhEnBIJzQji5QpIVpsNcCK04HL KIZ7I66pu6vh2qJSC08jEK94ROdli5huB2Z0EnY5a0Zc7BW6DxuUZYxPbFaiz8sQF3XW C5oL8cr4I6S7+zirsXdd4D6jA9UuAezKrk9ZPQwJvrp0e8sItvXYxTHw++WyojMD3y5C 6U8ccrFxxMEXv5Fj180h7Rs5ikNBISxV0ccWo6dVoo2Su7jJTkFHYmHjSENXFnAX76O3 lZyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SOx4lAdw; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v4si36151374edi.191.2021.01.04.22.55.36; Mon, 04 Jan 2021 22:56:00 -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=@linuxfoundation.org header.s=korg header.b=SOx4lAdw; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726029AbhAEGyr (ORCPT + 99 others); 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