Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795026177; b=r00Z5rkSMSG+JAwzv6VU/UX7sqd8um7k6BHMRr3X8FQZ75CDyz8/MKTdvrxw3TtAWKxt V3M26D7JOnXL/b32TXv+otkRNcixL2xa8CdMv7fRZpIvwVjUrROLDhe9fsiD+0ElUqD+l NCldMtMn8AnMn/Jykfoce4b/WWru2m2VFfJzGVjaWheZDUeRFjmZ3BnmQl7uQix/AytaJ EFYGNbCwV9woMB0ToWJeH9KgJryCC3Nlo/A2m5fkIK+GhS50NiTQhk4nZzdWcZ4Wfytl+ mvvfsCf1ARvfMzm6R8M6AAtki8IpniDDWSzp7g7kpsWfhaju+pQTaEE66rmkrqZfTrQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795026177; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=OX0l3m/9EQRuIQrSa5Hxc+M3pE2aPXlfM1VS7PRXsvM=; b=JPQeYqP7PjEPND0c0bs7A1jz3HCNS0P3Bde6BXzjTLRRobYxPH00MielwceQhjBl/M81 oFyLUcoJbwXCF0Q1dNzET3zOYmZZQocTrVLfdMqLmnQ5qS/qHZWLXy6vcnCpz8IrYNA4X m5wmNPblBd+8GcV87XP2uDIOxcse7/NkybQCvByn0qtDkVkHRIQHczH+O7nUm6M/v96zm MaxFwUkEpVVouTexKmFwBWvkbcCRmJgKcFTWgSCgMf4/AnijunZutOftRzEoFF1DzOLKI 1KESKlyKjxc4ujLaRUnUAUK4yvS/785YEmTm9HiA4QvPC85WVA5EeZWd+WJc1yFT54w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ZGAKfpPf; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D15760A2618; Wed, 18 Nov 2026 18:22:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ZGAKfpPf Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCAF51F000C5; Wed, 18 Nov 2026 18:22:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795026177; bh=OX0l3m/9EQRuIQrSa5Hxc+M3pE2aPXlfM1VS7PRXsvM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ZGAKfpPfdpREN2XWwqaum5CNYZnpY4IFoSYbL72H3jUGvgHobH9sjlzgaprtymMQ6 cHDlyrCzGcUSyUa9CJ2JA+cGrGOKbpHDn6YbUQy5zHXzozRouQLDOh361iEdCaS5J9 LU2Fl8ekz7qitCuKM/c/HJLx64pkq5hEnsTjpDy4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sashiko , =?UTF-8?q?Robin=20R=C3=A4ber?= , Cristian Ciocaltea , Heiko Stuebner , Sasha Levin , Igor Paunovic Subject: [PATCH 6.18 1343/2151] drm/rockchip: dw_hdmi_qp: Cancel pending HPD work on suspend Date: Wed, 18 Nov 2026 15:51:18 +0100 Message-ID: <20261118150210.973360293@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150121.603863898@linuxfoundation.org> References: <20261118150121.603863898@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Cristian Ciocaltea [ Upstream commit 5d0aa771a5308f6a6c83eeaa89351a472ae580c3 ] The HPD threaded handler debounces hotplug events by delaying hdmi->hpd_work for 150 ms. Nothing discards that work when the system goes to sleep: drm_kms_helper_poll_disable() only disables the HPD IRQ line via the bridge .hpd_disable() op, and disable_irq() merely waits for the threaded handler, which has already returned after arming the timer. If the debounce expires during suspend, its non-freezable work may probe the connector and read the EDID over DDC. Since genpd powers off the HDMI controller's power domain in ->suspend_noirq(), this access may hit unpowered hardware and hang the system. Cancel the work in the suspend callback. The DRM device is registered as a consumer of the HDMI device, so it always suspends first and the HPD IRQ is already disabled by that point, meaning nothing can re-arm the work behind our back. No counterpart is needed on resume, as the work gets scheduled again on the next hotplug interrupt. Fixes: 128a9bf8ace2 ("drm/rockchip: Add basic RK3588 HDMI output support") Reported-by: Sashiko Closes: https://lore.kernel.org/all/20260723015909.7F79A1F000E9@smtp.kernel.org/ Tested-by: Robin Räber Tested-by: Igor Paunovic # RK3588 Orange Pi 5 Plus, dual HDMI Signed-off-by: Cristian Ciocaltea Signed-off-by: Heiko Stuebner Link: https://patch.msgid.link/20261005-dw-hdmi-qp-scramb-v12-7-195157ba0b40@collabora.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c index d834d637655ea..0953ff8073103 100644 --- a/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c @@ -598,8 +598,12 @@ static int __maybe_unused dw_hdmi_qp_rockchip_suspend(struct device *dev) { struct rockchip_hdmi_qp *hdmi = dev_get_drvdata(dev); - if (hdmi) - dw_hdmi_qp_suspend(dev, hdmi->hdmi); + if (!hdmi) + return 0; + + cancel_delayed_work_sync(&hdmi->hpd_work); + + dw_hdmi_qp_suspend(dev, hdmi->hdmi); return 0; } -- 2.53.0