From fa594ab9a7c3f6cf1e1fb69a112d709472bddba7 Mon Sep 17 00:00:00 2001 From: hrdl <31923882+hrdl-github@users.noreply.github.com> Date: Wed, 14 May 2025 11:41:41 +0200 Subject: [PATCH] rockchip_ebc: emergency fix: don't allow temperatures < 19 Early cancellation is broken for DU sequences with >29 phases and can cause damages to the display. --- drivers/gpu/drm/rockchip/rockchip_ebc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_ebc.c b/drivers/gpu/drm/rockchip/rockchip_ebc.c index aa10d712bdef..499328855bbf 100644 --- a/drivers/gpu/drm/rockchip/rockchip_ebc.c +++ b/drivers/gpu/drm/rockchip/rockchip_ebc.c @@ -1110,6 +1110,8 @@ static void rockchip_ebc_upd_temp(struct rockchip_ebc *ebc) printk(KERN_INFO "rockchip-ebc: override temperature from %i to %i\n", temperature, temp_override); temperature = temp_override; } + // Early cancellation is broken right now for lower temperatures + temperature = max(temperature, 19); ebc->temperature = temperature; // TODO: figure out exclusivity/inclusivity and lowest and highest temperature range