diff options
author | Thierry Reding <treding@nvidia.com> | 2019-10-28 13:37:11 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2019-10-29 15:04:34 +0100 |
commit | ab4f81bfc2a8d429130182f8ea3f29a8b1754931 (patch) | |
tree | f613567c85c17f8e0f96296dcfc722f9a3a1d633 /drivers/gpu/drm/tegra/drm.c | |
parent | gpu: host1x: Clean up debugfs on removal (diff) | |
download | linux-ab4f81bfc2a8d429130182f8ea3f29a8b1754931.tar.xz linux-ab4f81bfc2a8d429130182f8ea3f29a8b1754931.zip |
gpu: host1x: Add direction flags to relocations
Add direction flags to host1x relocations performed during job pinning.
These flags indicate the kinds of accesses that hardware is allowed to
perform on the relocated buffers.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.c')
-rw-r--r-- | drivers/gpu/drm/tegra/drm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 9a1c1694604a..efc8a27b9e6a 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c @@ -149,6 +149,8 @@ static int host1x_reloc_copy_from_user(struct host1x_reloc *dest, if (err < 0) return err; + dest->flags = HOST1X_RELOC_READ | HOST1X_RELOC_WRITE; + dest->cmdbuf.bo = host1x_bo_lookup(file, cmdbuf); if (!dest->cmdbuf.bo) return -ENOENT; |