summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-11-09 18:12:41 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-17 19:29:41 -0500
commit9d04e970937657d11620d812c29a5d10828440fc (patch)
tree78d06a0773317241ddfdc9d2b1bc6c871f3175c7 /drivers/gpu/nvgpu/gk20a/gr_gk20a.h
parent35ae4194a05d47aa6d79353428f81f2ca47ce90f (diff)
gpu: nvgpu: Remove separation of t18x code
Remove separation of t18x specific code and fields and the associated ifdefs. We can build T18x code in always. Change-Id: I4e8eae9c30335632a2da48b418c6138193831b4f Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1595431 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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