mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: make preemption modes unsigned
graphics and compute preemption modes are currently defined as int But it is more logical to have them as unsigned int Also, we treat preemption modes as unsigned almost everywhere in the code Fix prints in gk20a_fifo_sched_debugfs_seq_show() to print U32_MAX with %d which is same as printing -1 Bug 200263471 Change-Id: Iabd0ee3923b76d81620898e90a9b1fc5dd75b530 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1272514 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
ec102080ab
commit
e4e0a32c7c
@@ -3214,8 +3214,8 @@ static int gk20a_fifo_sched_debugfs_seq_show(
|
||||
tsg ? tsg->timeslice_us : ch->timeslice_us,
|
||||
ch->timeout_ms_max,
|
||||
tsg ? tsg->interleave_level : ch->interleave_level,
|
||||
ch->ch_ctx.gr_ctx ? ch->ch_ctx.gr_ctx->graphics_preempt_mode : -1,
|
||||
ch->ch_ctx.gr_ctx ? ch->ch_ctx.gr_ctx->compute_preempt_mode : -1);
|
||||
ch->ch_ctx.gr_ctx ? ch->ch_ctx.gr_ctx->graphics_preempt_mode : U32_MAX,
|
||||
ch->ch_ctx.gr_ctx ? ch->ch_ctx.gr_ctx->compute_preempt_mode : U32_MAX);
|
||||
gk20a_channel_put(ch);
|
||||
}
|
||||
return 0;
|
||||
|
||||
@@ -124,8 +124,8 @@ struct gr_ctx_buffer_desc {
|
||||
struct gr_ctx_desc {
|
||||
struct mem_desc mem;
|
||||
|
||||
int graphics_preempt_mode;
|
||||
int compute_preempt_mode;
|
||||
u32 graphics_preempt_mode;
|
||||
u32 compute_preempt_mode;
|
||||
#ifdef CONFIG_ARCH_TEGRA_18x_SOC
|
||||
struct gr_ctx_desc_t18x t18x;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user