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.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c
index 34850013..f00b3cce 100644
--- a/drivers/gpu/nvgpu/common/linux/module.c
+++ b/drivers/gpu/nvgpu/common/linux/module.c
@@ -218,7 +218,7 @@ int gk20a_pm_finalize_poweron(struct device *dev)
218 struct gk20a_platform *platform = gk20a_get_platform(dev); 218 struct gk20a_platform *platform = gk20a_get_platform(dev);
219 int err; 219 int err;
220 220
221 gk20a_dbg_fn(""); 221 nvgpu_log_fn(g, " ");
222 222
223 if (g->power_on) 223 if (g->power_on)
224 return 0; 224 return 0;
@@ -331,7 +331,7 @@ static int gk20a_pm_prepare_poweroff(struct device *dev)
331 struct gk20a_platform *platform = gk20a_get_platform(dev); 331 struct gk20a_platform *platform = gk20a_get_platform(dev);
332 bool irqs_enabled; 332 bool irqs_enabled;
333 333
334 gk20a_dbg_fn(""); 334 nvgpu_log_fn(g, " ");
335 335
336 nvgpu_mutex_acquire(&g->poweroff_lock); 336 nvgpu_mutex_acquire(&g->poweroff_lock);
337 337
@@ -1013,7 +1013,7 @@ static int gk20a_pm_init(struct device *dev)
1013 struct gk20a *g = get_gk20a(dev); 1013 struct gk20a *g = get_gk20a(dev);
1014 int err = 0; 1014 int err = 0;
1015 1015
1016 gk20a_dbg_fn(""); 1016 nvgpu_log_fn(g, " ");
1017 1017
1018 /* Initialise pm runtime */ 1018 /* Initialise pm runtime */
1019 if (g->railgate_delay) { 1019 if (g->railgate_delay) {
@@ -1043,7 +1043,7 @@ void gk20a_driver_start_unload(struct gk20a *g)
1043{ 1043{
1044 struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); 1044 struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
1045 1045
1046 gk20a_dbg(gpu_dbg_shutdown, "Driver is now going down!\n"); 1046 nvgpu_log(g, gpu_dbg_shutdown, "Driver is now going down!\n");
1047 1047
1048 down_write(&l->busy_lock); 1048 down_write(&l->busy_lock);
1049 __nvgpu_set_enabled(g, NVGPU_DRIVER_IS_DYING, true); 1049 __nvgpu_set_enabled(g, NVGPU_DRIVER_IS_DYING, true);
@@ -1134,8 +1134,6 @@ static int gk20a_probe(struct platform_device *dev)
1134 return -ENODATA; 1134 return -ENODATA;
1135 } 1135 }
1136 1136
1137 gk20a_dbg_fn("");
1138
1139 platform_set_drvdata(dev, platform); 1137 platform_set_drvdata(dev, platform);
1140 1138
1141 if (gk20a_gpu_is_virtual(&dev->dev)) 1139 if (gk20a_gpu_is_virtual(&dev->dev))
@@ -1148,6 +1146,9 @@ static int gk20a_probe(struct platform_device *dev)
1148 } 1146 }
1149 1147
1150 gk20a = &l->g; 1148 gk20a = &l->g;
1149
1150 nvgpu_log_fn(gk20a, " ");
1151
1151 nvgpu_init_gk20a(gk20a); 1152 nvgpu_init_gk20a(gk20a);
1152 set_gk20a(dev, gk20a); 1153 set_gk20a(dev, gk20a);
1153 l->dev = &dev->dev; 1154 l->dev = &dev->dev;
@@ -1248,7 +1249,7 @@ int nvgpu_remove(struct device *dev, struct class *class)
1248 struct gk20a_platform *platform = gk20a_get_platform(dev); 1249 struct gk20a_platform *platform = gk20a_get_platform(dev);
1249 int err; 1250 int err;
1250 1251
1251 gk20a_dbg_fn(""); 1252 nvgpu_log_fn(g, " ");
1252 1253
1253 err = nvgpu_quiesce(g); 1254 err = nvgpu_quiesce(g);
1254 WARN(err, "gpu failed to idle during driver removal"); 1255 WARN(err, "gpu failed to idle during driver removal");
@@ -1288,7 +1289,7 @@ int nvgpu_remove(struct device *dev, struct class *class)
1288 if (platform->remove) 1289 if (platform->remove)
1289 platform->remove(dev); 1290 platform->remove(dev);
1290 1291
1291 gk20a_dbg_fn("removed"); 1292 nvgpu_log_fn(g, "removed");
1292 1293
1293 return err; 1294 return err;
1294} 1295}