From 6319c8aaaef14b897131264b8b245b4c169c1fba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 09:35:42 +0300 Subject: [PATCH] B4: ec-hw poisoned() is HwReset and reports the GPU reset poisoned() built a Config error, so callers treated a dead decoder as a caller mistake and did not fall back. It now reports the reset and returns HwReset, like the other lost-session paths. --- crates/ec-hw/src/error.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ec-hw/src/error.rs b/crates/ec-hw/src/error.rs index 7318bf43..a2327bf1 100644 --- a/crates/ec-hw/src/error.rs +++ b/crates/ec-hw/src/error.rs @@ -55,7 +55,8 @@ impl Error { /// The decoder was poisoned by a hung or lost GPU context. pub fn poisoned(what: impl Into) -> Error { - Error::Config(format!("hardware decoder poisoned: {}", what.into())) + crate::reset::report_gpu_reset(); + Error::hw_reset(format!("hardware decoder poisoned: {}", what.into())) } /// Build an [`Error::HwReset`].