mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: Add rail gating trace events
Change-Id: I661f14b2858fb7bc993157a597d4a278859da837 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/418789 Reviewed-by: Automatic_Commit_Validation_User
This commit is contained in:
committed by
Dan Willemsen
parent
614b804159
commit
f551891483
@@ -805,6 +805,8 @@ static int gk20a_pm_finalize_poweron(struct device *dev)
|
|||||||
if (g->power_on)
|
if (g->power_on)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
trace_gk20a_finalize_poweron(dev_name(dev));
|
||||||
|
|
||||||
nice_value = task_nice(current);
|
nice_value = task_nice(current);
|
||||||
set_user_nice(current, -20);
|
set_user_nice(current, -20);
|
||||||
|
|
||||||
@@ -915,6 +917,8 @@ static int gk20a_pm_finalize_poweron(struct device *dev)
|
|||||||
gk20a_channel_resume(g);
|
gk20a_channel_resume(g);
|
||||||
set_user_nice(current, nice_value);
|
set_user_nice(current, nice_value);
|
||||||
|
|
||||||
|
trace_gk20a_finalize_poweron_done(dev_name(dev));
|
||||||
|
|
||||||
done:
|
done:
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
@@ -1213,6 +1217,8 @@ static int gk20a_pm_unrailgate(struct generic_pm_domain *domain)
|
|||||||
struct gk20a *g = container_of(domain, struct gk20a, pd);
|
struct gk20a *g = container_of(domain, struct gk20a, pd);
|
||||||
struct gk20a_platform *platform = platform_get_drvdata(g->dev);
|
struct gk20a_platform *platform = platform_get_drvdata(g->dev);
|
||||||
|
|
||||||
|
trace_gk20a_pm_unrailgate(dev_name(&g->dev->dev));
|
||||||
|
|
||||||
return _gk20a_pm_unrailgate(platform->g->dev);
|
return _gk20a_pm_unrailgate(platform->g->dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,21 @@ DEFINE_EVENT(gk20a, gk20a_channel_release,
|
|||||||
TP_ARGS(name)
|
TP_ARGS(name)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
DEFINE_EVENT(gk20a, gk20a_pm_unrailgate,
|
||||||
|
TP_PROTO(const char *name),
|
||||||
|
TP_ARGS(name)
|
||||||
|
);
|
||||||
|
|
||||||
|
DEFINE_EVENT(gk20a, gk20a_finalize_poweron,
|
||||||
|
TP_PROTO(const char *name),
|
||||||
|
TP_ARGS(name)
|
||||||
|
);
|
||||||
|
|
||||||
|
DEFINE_EVENT(gk20a, gk20a_finalize_poweron_done,
|
||||||
|
TP_PROTO(const char *name),
|
||||||
|
TP_ARGS(name)
|
||||||
|
);
|
||||||
|
|
||||||
TRACE_EVENT(gk20a_push_cmdbuf,
|
TRACE_EVENT(gk20a_push_cmdbuf,
|
||||||
TP_PROTO(const char *name, u32 mem_id,
|
TP_PROTO(const char *name, u32 mem_id,
|
||||||
u32 words, u32 offset, void *cmdbuf),
|
u32 words, u32 offset, void *cmdbuf),
|
||||||
|
|||||||
Reference in New Issue
Block a user