Skip to contentSkip to conversation

gpu: host1x: Store physical address to all bufs

PATCH In review David Ung 2 participants 3 messages Jan 17, 2015 2 messages not in the archive

Subsystems (3)
lore
Share & tools
lore

David Ung

author
#0 lore raw

PATCH 1/1 gpu: host1x: Store physical address to all bufs

From: Arto Merilainen <[email protected]>

---
 drivers/gpu/host1x/job.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/host1x/job.c +5 -2
index 63bd63f..7f3cfff 100644
@@ -538,9 +538,12 @@ int host1x_job_pin(struct host1x_job *job, struct device *dev)
 
 		g->base = job->gather_addr_phys[i];
 
-		for (j = i + 1; j < job->num_gathers; j++)
-			if (job->gathers[j].bo == g->bo)
+		for (j = i + 1; j < job->num_gathers; j++) {
+			if (job->gathers[j].bo == g->bo) {
 				job->gathers[j].handled = true;
+				job->gathers[j].base = g->base;
+			}
+		}
 
 		err = do_relocs(job, g->bo);
 		if (err)
Signature · 1 line
1.8.1.5
#2 lore raw
In reply to a message not in the archive

17.01.2015 04:07, David Ung пишет:

Quoted 17 lines

From: Arto Merilainen <[email protected]>

---
  drivers/gpu/host1x/job.c | 7 +++++--
  1 file changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/host1x/job.c +0 -1
index 63bd63f..7f3cfff 100644
@@ -538,9 +538,12 @@ int host1x_job_pin(struct host1x_job *job, struct device *dev)
 
  		g->base = job->gather_addr_phys[i];
 
-		for (j = i + 1; j < job->num_gathers; j++)

drivers/gpu/host1x/job.c int host1x_job_pin(struct host1x_job *job, struct device *dev) · line 549

Quoted 10 lines
drivers/gpu/host1x/job.c +5 -1
-			if (job->gathers[j].bo == g->bo)
+		for (j = i + 1; j < job->num_gathers; j++) {
+			if (job->gathers[j].bo == g->bo) {
  				job->gathers[j].handled = true;
+				job->gathers[j].base = g->base;
+			}
+		}
 
  		err = do_relocs(job, g->bo);
  		if (err)

No commit description? Is it bugfix or optimization...

Signature · 1 line
Dmitry
author
#4 lore raw
In reply to a message not in the archive
Quoted 36 lines

-----Original Message-----
From: Dmitry Osipenko [mailto:[email protected]]
Sent: Friday, January 16, 2015 5:43 PM
To: David Ung; [email protected]
Cc: [email protected]; [email protected]; Terje Bergstrom; [email protected]; Arto Merilainen
Subject: Re: [PATCH] gpu: host1x: Store physical address to all bufs

17.01.2015 04:07, David Ung пишет:

Quoted 25 lines

From: Arto Merilainen <[email protected]>

---
  drivers/gpu/host1x/job.c | 7 +++++--
  1 file changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/host1x/job.c index renamed from drivers/gpu/host1x/job.c +0 -0

63bd63f..7f3cfff 100644

drivers/gpu/host1x/job.c +5 -2
@@ -538,9 +538,12 @@ int host1x_job_pin(struct host1x_job *job, struct
 device *dev)
 
  		g->base = job->gather_addr_phys[i];
 
-		for (j = i + 1; j < job->num_gathers; j++)
-			if (job->gathers[j].bo == g->bo)
+		for (j = i + 1; j < job->num_gathers; j++) {
+			if (job->gathers[j].bo == g->bo) {
  				job->gathers[j].handled = true;
+				job->gathers[j].base = g->base;
+			}
+		}
 
Quoted 4 lines
Quoted 3 lines
drivers/gpu/host1x/job.c +0 -0
  		err = do_relocs(job, g->bo);

if (err)

No commit description? Is it bugfix or optimization...

Sorry this is actually a part of the series of patches that adds other host1x clients. So its more like a features patch. I shall post this as part of a series, so please ignore this for now.

David