diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/gr_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h index 39d12b3f..17e5e9e3 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GV11B GPU GR | 2 | * GV11B GPU GR |
3 | * | 3 | * |
4 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * Permission is hereby granted, free of charge, to any person obtaining a | 6 | * Permission is hereby granted, free of charge, to any person obtaining a |
7 | * copy of this software and associated documentation files (the "Software"), | 7 | * copy of this software and associated documentation files (the "Software"), |
@@ -46,6 +46,7 @@ struct zbc_query_params; | |||
46 | struct channel_ctx_gk20a; | 46 | struct channel_ctx_gk20a; |
47 | struct nvgpu_warpstate; | 47 | struct nvgpu_warpstate; |
48 | struct nvgpu_gr_sm_error_state; | 48 | struct nvgpu_gr_sm_error_state; |
49 | struct gr_ctx_desc; | ||
49 | struct gr_gk20a_isr_data; | 50 | struct gr_gk20a_isr_data; |
50 | struct gk20a_debug_output; | 51 | struct gk20a_debug_output; |
51 | 52 | ||
@@ -218,4 +219,14 @@ void gr_gv11b_init_gfxp_wfi_timeout_count(struct gk20a *g); | |||
218 | unsigned long gr_gv11b_get_max_gfxp_wfi_timeout_count(struct gk20a *g); | 219 | unsigned long gr_gv11b_get_max_gfxp_wfi_timeout_count(struct gk20a *g); |
219 | void gr_gv11b_ecc_init_scrub_reg(struct gk20a *g); | 220 | void gr_gv11b_ecc_init_scrub_reg(struct gk20a *g); |
220 | 221 | ||
222 | int gr_gv11b_set_ctxsw_preemption_mode(struct gk20a *g, | ||
223 | struct gr_ctx_desc *gr_ctx, | ||
224 | struct vm_gk20a *vm, u32 class, | ||
225 | u32 graphics_preempt_mode, | ||
226 | u32 compute_preempt_mode); | ||
227 | |||
228 | void gr_gv11b_update_ctxsw_preemption_mode(struct gk20a *g, | ||
229 | struct channel_ctx_gk20a *ch_ctx, | ||
230 | struct nvgpu_mem *mem); | ||
231 | |||
221 | #endif | 232 | #endif |