summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.h28
1 files changed, 19 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
index f44e96a7..0df88988 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
@@ -24,9 +24,6 @@
24#ifndef GR_GK20A_H 24#ifndef GR_GK20A_H
25#define GR_GK20A_H 25#define GR_GK20A_H
26 26
27#ifdef CONFIG_ARCH_TEGRA_18x_SOC
28#include "gr_t18x.h"
29#endif
30#ifdef CONFIG_TEGRA_19x_GPU 27#ifdef CONFIG_TEGRA_19x_GPU
31#include "gr_t19x.h" 28#include "gr_t19x.h"
32#endif 29#endif
@@ -316,6 +313,11 @@ struct gr_gk20a {
316 } ctxsw_regs; 313 } ctxsw_regs;
317 int regs_base_index; 314 int regs_base_index;
318 bool valid; 315 bool valid;
316
317 u32 preempt_image_size;
318 bool force_preemption_gfxp;
319 bool force_preemption_cilp;
320 bool dump_ctxsw_stats_on_channel_close;
319 } ctx_vars; 321 } ctx_vars;
320 322
321 struct nvgpu_mutex ctx_mutex; /* protect golden ctx init */ 323 struct nvgpu_mutex ctx_mutex; /* protect golden ctx init */
@@ -409,9 +411,11 @@ struct gr_gk20a {
409 bool sw_ready; 411 bool sw_ready;
410 bool skip_ucode_init; 412 bool skip_ucode_init;
411 413
412#ifdef CONFIG_ARCH_TEGRA_18x_SOC 414 struct nvgpu_preemption_modes_rec preemption_mode_rec;
413 struct gr_t18x t18x; 415
414#endif 416 u32 fecs_feature_override_ecc_val;
417
418 int cilp_preempt_pending_chid;
415 419
416 u32 fbp_en_mask; 420 u32 fbp_en_mask;
417 u32 *fbp_rop_l2_en_mask; 421 u32 *fbp_rop_l2_en_mask;
@@ -433,9 +437,15 @@ struct gr_ctx_desc {
433 u32 graphics_preempt_mode; 437 u32 graphics_preempt_mode;
434 u32 compute_preempt_mode; 438 u32 compute_preempt_mode;
435 bool boosted_ctx; 439 bool boosted_ctx;
436#ifdef CONFIG_ARCH_TEGRA_18x_SOC 440
437 struct gr_ctx_desc_t18x t18x; 441 struct nvgpu_mem preempt_ctxsw_buffer;
438#endif 442 struct nvgpu_mem spill_ctxsw_buffer;
443 struct nvgpu_mem betacb_ctxsw_buffer;
444 struct nvgpu_mem pagepool_ctxsw_buffer;
445 u32 ctx_id;
446 bool ctx_id_valid;
447 bool cilp_preempt_pending;
448
439#ifdef CONFIG_TEGRA_GR_VIRTUALIZATION 449#ifdef CONFIG_TEGRA_GR_VIRTUALIZATION
440 u64 virt_ctx; 450 u64 virt_ctx;
441#endif 451#endif