summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x/job.c
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2017-06-15 01:18:36 +0200
committerThierry Reding <treding@nvidia.com>2017-06-15 14:23:18 +0200
commitef81624994845a50e90c6a0ff57f17d1c96bff78 (patch)
tree0e485b0460c8235819ffea99e2a9672384c52cf5 /drivers/gpu/host1x/job.c
parentgpu: host1x: Forbid relocation address shifting in the firewall (diff)
downloadlinux-ef81624994845a50e90c6a0ff57f17d1c96bff78.tar.xz
linux-ef81624994845a50e90c6a0ff57f17d1c96bff78.zip
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>
Diffstat (limited to 'drivers/gpu/host1x/job.c')
-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)
goto out;
break;
case 4:
- case 5:
case 14:
break;
default: