aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2017-06-14 19:18:36 -0400
committerThierry Reding <treding@nvidia.com>2017-06-15 08:23:18 -0400
commitef81624994845a50e90c6a0ff57f17d1c96bff78 (patch)
tree0e485b0460c8235819ffea99e2a9672384c52cf5
parent571cbf70c117664d142b34fa2b3b915d8374a327 (diff)
gpu: host1x: Forbid RESTART opcode in the firewall
The RESTART opcode terminates the gather and restarts the CDMA fetching from a specified word << 2 relative to the CDMA start address. That shouldn't be allowed to be done by userspace. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Reviewed-by: Erik Faye-Lund <kusmabite@gmail.com> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/gpu/host1x/job.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/host1x/job.c b/drivers/gpu/host1x/job.c
index a911de6386b4..54230ec4f81e 100644
--- a/drivers/gpu/host1x/job.c
+++ b/drivers/gpu/host1x/job.c
@@ -495,7 +495,6 @@ static int validate(struct host1x_firewall *fw, struct host1x_job_gather *g)
495 goto out; 495 goto out;
496 break; 496 break;
497 case 4: 497 case 4:
498 case 5:
499 case 14: 498 case 14:
500 break; 499 break;
501 default: 500 default: