History

drm/etnaviv: skip command stream validation on PPAS capable GPUs

With per-process address spaces in place, a rogue process submitting bogus command streams can only hurt itself. There is no need to validate the command stream before execution anymore.

Lucas Stach committed 7 years ago

Commit edb5ff01 parent 17e46601 file · +2 −1Browse files

Unified · Split

drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c+2−1
@@ -517,7 +517,8 @@ int etnaviv_ioctl_gem_submit(struct drm_device *dev, void *data, · 516 unmodified lines
517517 if (ret)
518518 goto err_submit_objects;
519519
520− if (!etnaviv_cmd_validate_one(gpu, stream, args->stream_size / 4,
520+ if ((priv->mmu_global->version != ETNAVIV_IOMMU_V2) &&
521+ !etnaviv_cmd_validate_one(gpu, stream, args->stream_size / 4,
521522 relocs, args->nr_relocs)) {
522523 ret = -EINVAL;
523524 goto err_submit_objects;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t