gpu: nvgpu: fix enable engine activity

fifo_sched_disable_true_v() returns 1 and this
value is being right shifted by runlist_id.
This will work only if runlist_id is 0. For runlist_id
other than 0, 1 right shifted by runlist_id will return 0 and
engine will remain disabled. fifo_sched_disable_true_v()
should be left shifted by runlist_id to fix the bug.

Change-Id: If747035b9f6c80a21a67c63e27fb214223a55d4d
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/1257344
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Seema Khowala
2016-11-21 08:51:57 -08:00
committed by mobile promotions
parent f4171ac358
commit a841a88bf0

View File

@@ -2486,7 +2486,7 @@ int gk20a_fifo_enable_engine_activity(struct gk20a *g,
mutex_ret = pmu_mutex_acquire(&g->pmu, PMU_MUTEX_ID_FIFO, &token);
enable = gk20a_readl(g, fifo_sched_disable_r());
enable &= ~(fifo_sched_disable_true_v() >> eng_info->runlist_id);
enable &= ~(fifo_sched_disable_true_v() << eng_info->runlist_id);
gk20a_writel(g, fifo_sched_disable_r(), enable);
if (!mutex_ret)