From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from queue02a.mail.zen.net.uk (queue02a.mail.zen.net.uk [212.23.3.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFA072C81 for ; Wed, 10 Nov 2021 23:17:43 +0000 (UTC) Received: from [212.23.1.1] (helo=smarthost01a.sbp.mail.zen.net.uk) by queue02a.mail.zen.net.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkwbn-0000e4-H2; Wed, 10 Nov 2021 23:02:23 +0000 Received: from [217.155.148.18] (helo=swift) by smarthost01a.sbp.mail.zen.net.uk with esmtp (Exim 4.90_1) (envelope-from ) id 1mkwbf-0001qC-Kc; Wed, 10 Nov 2021 23:02:15 +0000 Received: from localhost (localhost [127.0.0.1]) by swift (Postfix) with ESMTP id 5C0B02C9AAC; Wed, 10 Nov 2021 23:02:15 +0000 (GMT) X-Virus-Scanned: Debian amavisd-new at badpenguin.co.uk Received: from swift ([127.0.0.1]) by localhost (swift.badpenguin.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MUzU4ESzhFYb; Wed, 10 Nov 2021 23:02:13 +0000 (GMT) Received: from [192.168.42.11] (katana [192.168.42.11]) by swift (Postfix) with ESMTPS id 2EE552C9A31; Wed, 10 Nov 2021 23:02:13 +0000 (GMT) Subject: Re: kernel 5.15.1: AMD RX 6700 XT - Fails to resume after screen blank To: Greg KH Cc: stable@vger.kernel.org, regressions@lists.linux.dev References: From: Mark Boddington Message-ID: Date: Wed, 10 Nov 2021 23:02:13 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Precedence: bulk X-Mailing-List: regressions@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-smarthost01a-IP: [217.155.148.18] Feedback-ID: 217.155.148.18 I think I've found the problem. The amdgpu_amdkfd_resume_iommu(adev) call has been moved around a few times recently, but in 5.15.1 it's been removed completely. I think reverting this patch fixes the issue: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c?h=linux-5.15.y&id=f17dca0ab3f38b19c0f1b935f417f62d4a528723 See also: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c?h=linux-5.15.y&id=714d9e4574d54596973ee3b0624ee4a16264d700 Cheers, Mark On 10/11/2021 17:38, Greg KH wrote: > On Wed, Nov 10, 2021 at 04:27:39PM +0000, Mark Boddington wrote: >> Hi all, >> >> I run the mainline Linux kernel on Ubuntu 20.04, built from >> https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15.1/ >> >> There appears to be a regression in 5.15.1 which causes the GPU to fail to >> resume after power saving. >> >> Could it be this change??: >> >> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c?h=v5.15.1&id=8af3a335b5531ca3df0920b1cca43e456cd110ad > If you revert it, does it solve the problem for you? > > If not, what kernel version did work for you with this hardware? > > thanks, > > greg k-h