summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorHarini T <harini.t@amd.com>2024-09-13 14:32:30 +0300
committerWim Van Sebroeck <wim@linux-watchdog.org>2024-11-04 15:12:59 +0300
commit006778844c2c132c28cfa90e3570560351e01b9a (patch)
treea919458889f0871ce2b80621f3ea8940e658232f /tools/perf/scripts/python/export-to-postgresql.py
parentdaa814d784ac034c62ab3fb0ef83daeafef527e2 (diff)
downloadlinux-006778844c2c132c28cfa90e3570560351e01b9a.tar.xz
watchdog: xilinx_wwdt: Calculate max_hw_heartbeat_ms using clock frequency
In the current implementation, the value of max_hw_heartbeat_ms is set to the timeout period expressed in milliseconds and fails to verify if the close window percentage exceeds the maximum value that the hardware supports. 1. Calculate max_hw_heartbeat_ms based on input clock frequency. 2. Update frequency check to require a minimum frequency of 1Mhz. 3. Limit the close and open window percent to hardware supported value to avoid truncation. 4. If the user input timeout exceeds the maximum timeout supported, use only open window and the framework supports the higher timeouts. Fixes: 12984cea1b8c ("watchdog: xilinx_wwdt: Add Versal window watchdog support") Signed-off-by: Harini T <harini.t@amd.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20240913113230.1939373-1-harini.t@amd.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions