summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/module.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/module.c3
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 d74d824f..c153b56f 100644
--- a/drivers/gpu/nvgpu/common/linux/module.c
+++ b/drivers/gpu/nvgpu/common/linux/module.c
@@ -290,6 +290,8 @@ int gk20a_pm_finalize_poweron(struct device *dev)
290 return err; 290 return err;
291 } 291 }
292 292
293 g->sw_ready = true;
294
293done: 295done:
294 if (err) 296 if (err)
295 g->power_on = false; 297 g->power_on = false;
@@ -1041,6 +1043,7 @@ void gk20a_driver_start_unload(struct gk20a *g)
1041 /* GR SW ready needs to be invalidated at this time with the busy lock 1043 /* GR SW ready needs to be invalidated at this time with the busy lock
1042 * held to prevent a racing condition on the gr/mm code */ 1044 * held to prevent a racing condition on the gr/mm code */
1043 g->gr.sw_ready = false; 1045 g->gr.sw_ready = false;
1046 g->sw_ready = false;
1044 up_write(&l->busy_lock); 1047 up_write(&l->busy_lock);
1045 1048
1046 if (g->is_virtual) 1049 if (g->is_virtual)