summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-03-14 16:39:59 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-28 18:55:48 -0400
commitf04031e5e8837abb2be3feb0ee30e1af54de7845 (patch)
tree02a61de9f9a283a2c0fb02d7a204d2dd2176f5ff /drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
parent3e39798997f0726472e18a17462216094c084074 (diff)
gpu: nvgpu: Move programming of host registers to fifo
Move code that touches host registers and instance block to fifo HAL. This involves adding HAL ops for the fifo HAL functions that get called from outside fifo. This clears responsibility of channel by leaving it only managing channels in software and push buffers. channel had member ramfc defined, but it was not used, to remove it. pbdma_acquire_val consisted both of channel logic and hardware programming. The channel logic was moved to the caller and only hardware programming was moved. Change-Id: Id005787f6cc91276b767e8e86325caf966913de9 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1322423 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ce2_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ce2_gk20a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
index 5dfd2309..418572a1 100644
--- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
@@ -488,7 +488,7 @@ u32 gk20a_ce_create_context_with_cb(struct device *dev,
488 488
489 /* -1 means default channel priority */ 489 /* -1 means default channel priority */
490 if (priority != -1) { 490 if (priority != -1) {
491 err = gk20a_channel_set_priority(ce_ctx->ch, priority); 491 err = gk20a_fifo_set_priority(ce_ctx->ch, priority);
492 if (err) { 492 if (err) {
493 gk20a_err(ce_ctx->dev, 493 gk20a_err(ce_ctx->dev,
494 "ce: could not set the channel priority for CE context"); 494 "ce: could not set the channel priority for CE context");
@@ -498,7 +498,7 @@ u32 gk20a_ce_create_context_with_cb(struct device *dev,
498 498
499 /* -1 means default channel timeslice value */ 499 /* -1 means default channel timeslice value */
500 if (timeslice != -1) { 500 if (timeslice != -1) {
501 err = gk20a_channel_set_timeslice(ce_ctx->ch, timeslice); 501 err = gk20a_fifo_set_timeslice(ce_ctx->ch, timeslice);
502 if (err) { 502 if (err) {
503 gk20a_err(ce_ctx->dev, 503 gk20a_err(ce_ctx->dev,
504 "ce: could not set the channel timeslice value for CE context"); 504 "ce: could not set the channel timeslice value for CE context");