From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B163F35DA68; Thu, 20 Aug 2026 17:37:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787247441; cv=none; b=cbxTWrGHNHC7rf69IZ+gBw+r+xqPF/EtSQPXdzlXe+OwP45fQEuDm3G9aKXtsahAcv0I/sNRY8E0eGDFrflUIdkWlachF70oZ0RIYou768OKRWpDdw1zqlIiyzWLISU4Ajezv7CqVM5ZBwSXHTVPh0t4Zx0fewwJ0EbSwklo7MI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787247441; c=relaxed/simple; bh=vIt/Hlr9p0lDcaHmuTGyiulSM1d630ZIk0nYr2J1Zis=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jrFVW7DdSUQECKNHk85mjk8mwwNxUFGq+sn9XwCGTjH5NgPEpl8VKLFz7aPqrUh503HFOWehUpRQibZUCYQWJ7ETNvZcro5N5G0+/1kiMuCUdfjCwbAOBHT2TdnuGzCMDmToAUkUgJLKJRGD2oTG4dvHztKKKr+rVmy1CPrEE8M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1vkvk9nB; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="1vkvk9nB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17F651F000E9; Thu, 20 Aug 2026 17:37:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787247440; bh=iEzO0l2LnXAXLhs1LCK+gDLBXxkdikpxXoXSyrkrGao=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=1vkvk9nBkVknhyAm9gf8gc8IDx4jVkDwDlJvgKzSM0pVl+mnjG1nvj6lnCXv/qXFE b3SD/bx/8pQuNuM604v8GTio2hRzibidkCXLZMRMlicvUSTs/fPmU5xnIn5D9f3VKX nxKux0p4iVdpqYZjgCL5SCamyDQpq84xuQD/i+A8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Guangshuo Li , Alex Deucher Subject: [PATCH 6.6 048/166] drm/radeon: fix autosuspend cleanup during teardown Date: Thu, 20 Aug 2026 16:55:07 +0200 Message-ID: <20260820145212.609211696@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260820145211.194104353@linuxfoundation.org> References: <20260820145211.194104353@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Guangshuo Li commit 587be7a17358ef8c0106775fcedae5a7bef50735 upstream. radeon_driver_load_kms() calls pm_runtime_use_autosuspend() for PX devices, but radeon_driver_unload_kms() does not call the matching pm_runtime_dont_use_autosuspend() during teardown. If the autosuspend delay is set to a negative value while autosuspend is enabled, the runtime PM core increments usage_count to prevent runtime suspend. Without calling pm_runtime_dont_use_autosuspend() during teardown, this reference is not dropped. The documentation for pm_runtime_use_autosuspend() also notes that it is important to undo it with pm_runtime_dont_use_autosuspend() at driver exit time, unless runtime PM was initially enabled with devm_pm_runtime_enable(). Add the missing pm_runtime_dont_use_autosuspend() call to the driver unload path. This issue was found by manual code inspection. Fixes: 10ebc0bc0934 ("drm/radeon: add runtime PM support (v2)") Signed-off-by: Guangshuo Li Signed-off-by: Alex Deucher (cherry picked from commit 0fdc1ff82ea14844c22795e9e0813c3ca03235e1) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/radeon/radeon_kms.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/radeon/radeon_kms.c +++ b/drivers/gpu/drm/radeon/radeon_kms.c @@ -71,6 +71,7 @@ void radeon_driver_unload_kms(struct drm if (radeon_is_px(dev)) { pm_runtime_get_sync(dev->dev); pm_runtime_forbid(dev->dev); + pm_runtime_dont_use_autosuspend(dev->dev); } radeon_acpi_fini(rdev);