gpu: host1x: Initialize firewall class to the jobs one
PATCH 1/1 gpu: host1x: Initialize firewall class to the jobs one
The commands stream is prepended by the jobs class on the CDMA submission, so that explicitly setting a module class in the commands stream isn't necessary. The firewall initializes its class to 0 and the command stream that doesn't explicitly specify the class effectively bypasses the firewall.
--- drivers/gpu/host1x/job.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/host1x/job.c +1 -1
@@ -504,7 +504,7 @@ static inline int copy_gathers(struct host1x_job *job, struct device *dev) fw.dev = dev; fw.reloc = job->relocarray; fw.num_relocs = job->num_relocs; - fw.class =0 ; + fw.class = job->class;for (i =0 ; i < job->num_gathers; i++) {struct host1x_job_gather *g = &job->gathers[i];
Signature · 1 line
2.12.2
A message that is not in the archive (sent off-list or not yet received): 20170513210114.31680-1-digetx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Mikko Perttunen
Reviewed-byWell spotted!
Quoted 24 lines · Dmitry Osipenko
The commands stream is prepended by the jobs class on the CDMA submission, so that explicitly setting a module class in the commands stream isn't necessary. The firewall initializes its class to 0 and the command stream that doesn't explicitly specify the class effectively bypasses the firewall.
Signed-off-by Dmitry Osipenko <[email protected]>--- drivers/gpu/host1x/job.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/host1x/job.c +1
-1@@ -504,7 +504,7 @@ static inline int copy_gathers(struct host1x_job *job, struct device *dev) fw.dev = dev; fw.reloc = job->relocarray; fw.num_relocs = job->num_relocs; - fw.class =0 ; + fw.class = job->class;for (i =0 ; i < job->num_gathers; i++) {struct host1x_job_gather *g = &job->gathers[i];