summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Faye-Lund2014-01-07 21:03:06 +0100
committerThierry Reding2014-02-12 07:50:37 +0100
commit89e6e8c85f21555a763d0e47841b515ede6278d1 (patch)
tree238a301a165803ffed5b3a242c263bf19168318a
parentdrm/tegra: fix typo 'CONFIG_TEGRA_DRM_FBDEV' (diff)
downloadkernel-qcow2-linux-89e6e8c85f21555a763d0e47841b515ede6278d1.tar.gz
kernel-qcow2-linux-89e6e8c85f21555a763d0e47841b515ede6278d1.tar.xz
kernel-qcow2-linux-89e6e8c85f21555a763d0e47841b515ede6278d1.zip
gpu: host1x: do not check previously handled gathers
When patching gathers, we don't need to check against gathers with lower indices than the current one, as they are guaranteed to already have been handled. Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Acked-By: Terje Bergstrom <tbergstrom@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/gpu/host1x/job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/host1x/job.c b/drivers/gpu/host1x/job.c
index 1146e3bba6e1..112f27e51bc7 100644
--- a/drivers/gpu/host1x/job.c
+++ b/drivers/gpu/host1x/job.c
@@ -538,7 +538,7 @@ int host1x_job_pin(struct host1x_job *job, struct device *dev)
g->base = job->gather_addr_phys[i];
- for (j = 0; j < job->num_gathers; j++)
+ for (j = i + 1; j < job->num_gathers; j++)
if (job->gathers[j].bo == g->bo)
job->gathers[j].handled = true;