diff options
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/module.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index 2f6dd4c7..d19a7a45 100644 --- a/drivers/gpu/nvgpu/common/linux/module.c +++ b/drivers/gpu/nvgpu/common/linux/module.c | |||
@@ -81,8 +81,11 @@ int gk20a_busy(struct gk20a *g) | |||
81 | dev = dev_from_gk20a(g); | 81 | dev = dev_from_gk20a(g); |
82 | 82 | ||
83 | if (pm_runtime_enabled(dev)) { | 83 | if (pm_runtime_enabled(dev)) { |
84 | /* Increment usage count and attempt to resume device */ | ||
84 | ret = pm_runtime_get_sync(dev); | 85 | ret = pm_runtime_get_sync(dev); |
85 | if (ret < 0) { | 86 | if (ret < 0) { |
87 | /* Mark suspended so runtime pm will retry later */ | ||
88 | pm_runtime_set_suspended(dev); | ||
86 | pm_runtime_put_noidle(dev); | 89 | pm_runtime_put_noidle(dev); |
87 | atomic_dec(&g->usage_count); | 90 | atomic_dec(&g->usage_count); |
88 | goto fail; | 91 | goto fail; |