VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Erik Faye-Lund <kusmabite@gmail.com> 2014-01-07 21:03:06 +0100 committer: Thierry Reding <treding@nvidia.com> 2014-02-12 07:50:37 +0100 commit: 89e6e8c85f21555a763d0e47841b515ede6278d1 parent: 6e60163b9db6d0b203ffc0f0b8ef5a5f1c9d3fb8
Commit Summary:
gpu: host1x: do not check previously handled gathers
Diffstat:
1 file changed, 1 insertion, 1 deletion
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;