diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gr_gp10b.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c index b5194223..9a7f4f97 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GP10B GPU GR | 2 | * GP10B GPU GR |
3 | * | 3 | * |
4 | * Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2015-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"), |
@@ -406,12 +406,8 @@ int gr_gp10b_commit_global_cb_manager(struct gk20a *g, | |||
406 | gk20a_dbg_fn(""); | 406 | gk20a_dbg_fn(""); |
407 | 407 | ||
408 | if (gr_ctx->graphics_preempt_mode == NVGPU_PREEMPTION_MODE_GRAPHICS_GFXP) { | 408 | if (gr_ctx->graphics_preempt_mode == NVGPU_PREEMPTION_MODE_GRAPHICS_GFXP) { |
409 | attrib_size_in_chunk = gr->attrib_cb_default_size + | 409 | attrib_size_in_chunk = gr->attrib_cb_gfxp_size; |
410 | (gr_gpc0_ppc0_cbm_beta_cb_size_v_gfxp_v() - | 410 | cb_attrib_cache_size_init = gr->attrib_cb_gfxp_default_size; |
411 | gr_gpc0_ppc0_cbm_beta_cb_size_v_default_v()); | ||
412 | cb_attrib_cache_size_init = gr->attrib_cb_default_size + | ||
413 | (gr_gpc0_ppc0_cbm_beta_cb_size_v_gfxp_v() - | ||
414 | gr_gpc0_ppc0_cbm_beta_cb_size_v_default_v()); | ||
415 | } else { | 411 | } else { |
416 | attrib_size_in_chunk = gr->attrib_cb_size; | 412 | attrib_size_in_chunk = gr->attrib_cb_size; |
417 | cb_attrib_cache_size_init = gr->attrib_cb_default_size; | 413 | cb_attrib_cache_size_init = gr->attrib_cb_default_size; |
@@ -738,6 +734,14 @@ void gr_gp10b_cb_size_default(struct gk20a *g) | |||
738 | gr->attrib_cb_default_size = 0x800; | 734 | gr->attrib_cb_default_size = 0x800; |
739 | gr->alpha_cb_default_size = | 735 | gr->alpha_cb_default_size = |
740 | gr_gpc0_ppc0_cbm_alpha_cb_size_v_default_v(); | 736 | gr_gpc0_ppc0_cbm_alpha_cb_size_v_default_v(); |
737 | gr->attrib_cb_gfxp_default_size = | ||
738 | gr->attrib_cb_default_size + | ||
739 | (gr_gpc0_ppc0_cbm_beta_cb_size_v_gfxp_v() - | ||
740 | gr_gpc0_ppc0_cbm_beta_cb_size_v_default_v()); | ||
741 | gr->attrib_cb_gfxp_size = | ||
742 | gr->attrib_cb_default_size + | ||
743 | (gr_gpc0_ppc0_cbm_beta_cb_size_v_gfxp_v() - | ||
744 | gr_gpc0_ppc0_cbm_beta_cb_size_v_default_v()); | ||
741 | } | 745 | } |
742 | 746 | ||
743 | void gr_gp10b_set_alpha_circular_buffer_size(struct gk20a *g, u32 data) | 747 | void gr_gp10b_set_alpha_circular_buffer_size(struct gk20a *g, u32 data) |