From bbc23423317212d9f459a78314dde68fbc5d619f Mon Sep 17 00:00:00 2001 From: Mihir Thakkar Date: Tue, 17 Jan 2017 16:56:40 -0800 Subject: gpu: nvgpu: Debug spew for context priority & Gfxp Prints out Timeslice value, Interleave level, Graphics preemption mode and compute preempt mode along with chid, tsgid, pid. Enable it with setting dbg_mask with 8192 Bug 1855710 Change-Id: I60efef9810587f8fedd4e2ba62ba67d06d84faea Signed-off-by: Mihir Thakkar Reviewed-on: http://git-master/r/1287141 Reviewed-by: Alex Waterman GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gp10b/gr_gp10b.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.c') diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c index 84482d68..e04aec7d 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c @@ -2098,6 +2098,14 @@ static int gr_gp10b_set_preemption_mode(struct channel_gk20a *ch, return 0; if (g->ops.gr.set_ctxsw_preemption_mode) { + + gk20a_dbg(gpu_dbg_sched, "chid=%d tsgid=%d pid=%d " + "graphics_preempt=%d compute_preempt=%d", + ch->hw_chid, + ch->tsgid, + ch->tgid, + graphics_preempt_mode, + compute_preempt_mode); err = g->ops.gr.set_ctxsw_preemption_mode(g, gr_ctx, vm, class, graphics_preempt_mode, compute_preempt_mode); if (err) { -- cgit v1.2.2