mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
gpu: nvgpu: Remove gk20a_dbg* functions
Switch all logging to nvgpu_log*(). gk20a_dbg* macros are intentionally left there because of use from other repositories. Because the new functions do not work without a pointer to struct gk20a, and piping it just for logging is excessive, some log messages are deleted. Change-Id: I00e22e75fe4596a330bb0282ab4774b3639ee31e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1704148 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
7e66f2a63d
commit
dd739fcb03
@@ -218,7 +218,7 @@ int gk20a_pm_finalize_poweron(struct device *dev)
|
||||
struct gk20a_platform *platform = gk20a_get_platform(dev);
|
||||
int err;
|
||||
|
||||
gk20a_dbg_fn("");
|
||||
nvgpu_log_fn(g, " ");
|
||||
|
||||
if (g->power_on)
|
||||
return 0;
|
||||
@@ -331,7 +331,7 @@ static int gk20a_pm_prepare_poweroff(struct device *dev)
|
||||
struct gk20a_platform *platform = gk20a_get_platform(dev);
|
||||
bool irqs_enabled;
|
||||
|
||||
gk20a_dbg_fn("");
|
||||
nvgpu_log_fn(g, " ");
|
||||
|
||||
nvgpu_mutex_acquire(&g->poweroff_lock);
|
||||
|
||||
@@ -1013,7 +1013,7 @@ static int gk20a_pm_init(struct device *dev)
|
||||
struct gk20a *g = get_gk20a(dev);
|
||||
int err = 0;
|
||||
|
||||
gk20a_dbg_fn("");
|
||||
nvgpu_log_fn(g, " ");
|
||||
|
||||
/* Initialise pm runtime */
|
||||
if (g->railgate_delay) {
|
||||
@@ -1043,7 +1043,7 @@ void gk20a_driver_start_unload(struct gk20a *g)
|
||||
{
|
||||
struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
|
||||
|
||||
gk20a_dbg(gpu_dbg_shutdown, "Driver is now going down!\n");
|
||||
nvgpu_log(g, gpu_dbg_shutdown, "Driver is now going down!\n");
|
||||
|
||||
down_write(&l->busy_lock);
|
||||
__nvgpu_set_enabled(g, NVGPU_DRIVER_IS_DYING, true);
|
||||
@@ -1134,8 +1134,6 @@ static int gk20a_probe(struct platform_device *dev)
|
||||
return -ENODATA;
|
||||
}
|
||||
|
||||
gk20a_dbg_fn("");
|
||||
|
||||
platform_set_drvdata(dev, platform);
|
||||
|
||||
if (gk20a_gpu_is_virtual(&dev->dev))
|
||||
@@ -1148,6 +1146,9 @@ static int gk20a_probe(struct platform_device *dev)
|
||||
}
|
||||
|
||||
gk20a = &l->g;
|
||||
|
||||
nvgpu_log_fn(gk20a, " ");
|
||||
|
||||
nvgpu_init_gk20a(gk20a);
|
||||
set_gk20a(dev, gk20a);
|
||||
l->dev = &dev->dev;
|
||||
@@ -1248,7 +1249,7 @@ int nvgpu_remove(struct device *dev, struct class *class)
|
||||
struct gk20a_platform *platform = gk20a_get_platform(dev);
|
||||
int err;
|
||||
|
||||
gk20a_dbg_fn("");
|
||||
nvgpu_log_fn(g, " ");
|
||||
|
||||
err = nvgpu_quiesce(g);
|
||||
WARN(err, "gpu failed to idle during driver removal");
|
||||
@@ -1288,7 +1289,7 @@ int nvgpu_remove(struct device *dev, struct class *class)
|
||||
if (platform->remove)
|
||||
platform->remove(dev);
|
||||
|
||||
gk20a_dbg_fn("removed");
|
||||
nvgpu_log_fn(g, "removed");
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user