kernel/0170-to-je-disable-je-timeout-check.patch

33 lines
1.2 KiB
Diff
Raw Permalink Normal View History

2025-01-03 03:30:57 +00:00
From 6057a48485355ebc1cd026995a0bf522140097f4 Mon Sep 17 00:00:00 2001
2024-12-15 18:29:23 +00:00
From: zouxiaojun <zouxiaojun@eswincomputing.com>
Date: Wed, 11 Sep 2024 10:12:37 +0800
2024-12-27 22:35:16 +00:00
Subject: [PATCH 170/222] to(je):disable je timeout check
2024-12-15 18:29:23 +00:00
Changelogs:
Disable je timeout check; No JE hang found.
Signed-off-by: zouxiaojun <zouxiaojun@eswincomputing.com>
---
drivers/staging/media/eswin/venc/vc8000_vcmd_driver.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/media/eswin/venc/vc8000_vcmd_driver.c b/drivers/staging/media/eswin/venc/vc8000_vcmd_driver.c
index d08a8effc7f2..e0ccc2ab9673 100644
--- a/drivers/staging/media/eswin/venc/vc8000_vcmd_driver.c
+++ b/drivers/staging/media/eswin/venc/vc8000_vcmd_driver.c
@@ -734,7 +734,10 @@ static void _vcmd_watchdog_stop(struct hantrovcmd_dev *dev){
static void _vcmd_watchdog_feed(struct hantrovcmd_dev *dev){
u32 exetime = dev_wait_job_exetime(dev);
- if (exetime == 0) {
+ /** 1. stop watchdog for the idle devices;
+ * 2. disable watchdog for the non-VE devcies;
+ */
+ if (exetime == 0 || dev->vcmd_core_cfg.sub_module_type != VCMD_TYPE_ENCODER) {
if (dev->watchdog_active)
_vcmd_watchdog_stop(dev);
} else {
--
2.47.0