diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/driver_common.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/driver_common.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/driver_common.c b/drivers/gpu/nvgpu/common/linux/driver_common.c index 769f7e03..edc8aca8 100644 --- a/drivers/gpu/nvgpu/common/linux/driver_common.c +++ b/drivers/gpu/nvgpu/common/linux/driver_common.c | |||
@@ -96,12 +96,15 @@ static void nvgpu_init_timeout(struct gk20a *g) | |||
96 | { | 96 | { |
97 | struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); | 97 | struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); |
98 | 98 | ||
99 | g->gr_idle_timeout_default = NVGPU_DEFAULT_GR_IDLE_TIMEOUT; | 99 | g->timeouts_disabled_by_user = false; |
100 | if (nvgpu_platform_is_silicon(g)) | 100 | nvgpu_atomic_set(&g->timeouts_disabled_refcount, 0); |
101 | g->timeouts_enabled = true; | 101 | |
102 | else if (nvgpu_platform_is_fpga(g)) { | 102 | if (nvgpu_platform_is_silicon(g)) { |
103 | g->gr_idle_timeout_default = NVGPU_DEFAULT_GR_IDLE_TIMEOUT; | ||
104 | } else if (nvgpu_platform_is_fpga(g)) { | ||
103 | g->gr_idle_timeout_default = GK20A_TIMEOUT_FPGA; | 105 | g->gr_idle_timeout_default = GK20A_TIMEOUT_FPGA; |
104 | g->timeouts_enabled = true; | 106 | } else { |
107 | g->gr_idle_timeout_default = (u32)ULONG_MAX; | ||
105 | } | 108 | } |
106 | g->ch_wdt_timeout_ms = platform->ch_wdt_timeout_ms; | 109 | g->ch_wdt_timeout_ms = platform->ch_wdt_timeout_ms; |
107 | } | 110 | } |