drm/amdgpu: correct default gfx wdt timeout setting
Subsystems (2)
PATCH 1/1 drm/amdgpu: correct default gfx wdt timeout setting
When gfx wdt was configured to fatal_disable, the timeout period should be configured to 0x0 (timeout disabled)
Signed-off-by Hawking Zhang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +2 -2
@@ -189,7 +189,7 @@ uint amdgpu_ras_mask = 0xffffffff;int amdgpu_bad_page_threshold =-1 ;struct amdgpu_watchdog_timer amdgpu_watchdog_timer = { .timeout_fatal_disable = false, - .period =0x23 ,/* default to max. timeout = 1 << 0x23 cycles */ + .period =0x0 ,/* default to 0x0 (timeout disable) */ };/**
@@ -566,7 +566,7 @@ module_param_named(timeout_fatal_disable, amdgpu_watchdog_timer.timeout_fatal_di* DOC: timeout_period (uint) * Modify the watchdog timeout max_cycles as (1 << period) */ -MODULE_PARM_DESC (timeout_period,"watchdog timeout period (1 to 0x23(default), timeout maxCycles = (1 << period)" ); +MODULE_PARM_DESC (timeout_period,"watchdog timeout period (0 = timeout disabled, 1 ~ 0x23 = timeout maxcycles = (1 << period)" );module_param_named (timeout_period, amdgpu_watchdog_timer.period, uint,0644 );/**
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Official Use Only - Internal Distribution Only]
Reviewed-by Dennis Li <[email protected]>
-----Original Message-----
From: Zhang, Hawking <[email protected]>
Sent: Friday, April 16, 2021 2:46 PM
To: [email protected]; Li, Dennis <[email protected]>
Cc: Zhang, Hawking <[email protected]>
Subject: [PATCH] drm/amdgpu: correct default gfx wdt timeout setting
When gfx wdt was configured to fatal_disable, the timeout period should be configured to 0x0 (timeout disabled)
Signed-off-by Hawking Zhang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +3 -2
@@ -189,7 +189,7 @@ uint amdgpu_ras_mask = 0xffffffff; int amdgpu_bad_page_threshold = -1; struct amdgpu_watchdog_timer amdgpu_watchdog_timer = { .timeout_fatal_disable = false, - .period = 0x23, /* default to max. timeout = 1 << 0x23 cycles */ + .period = 0x0, /* default to 0x0 (timeout disable) */ };/**
@@ -566,7 +566,7 @@ module_param_named(timeout_fatal_disable, amdgpu_watchdog_timer.timeout_fatal_di* DOC: timeout_period (uint) * Modify the watchdog timeout max_cycles as (1 << period) */ -MODULE_PARM_DESC (timeout_period,"watchdog timeout period (1 to 0x23(default), timeout maxCycles = (1 << period)" ); +MODULE_PARM_DESC(timeout_period, "watchdog timeout period (0 = timeout +disabled, 1 ~ 0x23 = timeout maxcycles = (1 << period)");module_param_named (timeout_period, amdgpu_watchdog_timer.period, uint,0644 );
/**
--
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx