diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2016-03-15 22:06:43 -0400 |
---|---|---|
committer | Ken Adams <kadams@nvidia.com> | 2016-05-05 12:25:02 -0400 |
commit | 93678f571c323861458992de16d552ea7313e831 (patch) | |
tree | 7a1faae97be3a9be5f180b011d66075ab8a1541c /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 8beea96fad15724bc1fb7302668077617c9dbcee (diff) |
gpu: nvgpu: Add trace and debugfs for sched params
JIRA EVLR-244
JIRA EVLR-318
Change-Id: Ie95f42212dadcf2d0c1737eeb28812afb03b712f
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/1120603
GVS: Gerrit_Virtual_Submit
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Ken Adams <kadams@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 15f838d9..0b15783b 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1074,4 +1074,30 @@ int gk20a_pm_init(struct device *dev); | |||
1074 | int gk20a_pm_finalize_poweron(struct device *dev); | 1074 | int gk20a_pm_finalize_poweron(struct device *dev); |
1075 | void gk20a_remove_support(struct device *dev); | 1075 | void gk20a_remove_support(struct device *dev); |
1076 | 1076 | ||
1077 | static inline struct tsg_gk20a *tsg_gk20a_from_ch(struct channel_gk20a *ch) | ||
1078 | { | ||
1079 | struct tsg_gk20a *tsg = NULL; | ||
1080 | |||
1081 | if (gk20a_is_channel_marked_as_tsg(ch)) | ||
1082 | { | ||
1083 | struct gk20a *g = ch->g; | ||
1084 | struct fifo_gk20a *f = &g->fifo; | ||
1085 | tsg = &f->tsg[ch->tsgid]; | ||
1086 | } | ||
1087 | |||
1088 | return tsg; | ||
1089 | } | ||
1090 | |||
1091 | |||
1092 | #define GK20A_TP_ARGS_SCHED(ch) \ | ||
1093 | ch->hw_chid, \ | ||
1094 | ch->tsgid, \ | ||
1095 | ch->pid, \ | ||
1096 | gk20a_is_channel_marked_as_tsg(ch) ? \ | ||
1097 | tsg_gk20a_from_ch(ch)->timeslice_us : ch->timeslice_us, \ | ||
1098 | ch->timeout_ms_max, \ | ||
1099 | gk20a_fifo_interleave_level_name(ch->interleave_level), \ | ||
1100 | gr_gk20a_preempt_mode_name(ch->ch_ctx.gr_ctx ? \ | ||
1101 | ch->ch_ctx.gr_ctx->preempt_mode : 0) | ||
1102 | |||
1077 | #endif /* GK20A_H */ | 1103 | #endif /* GK20A_H */ |