diff options
| author | Thierry Reding <[email protected]> | 2020-02-07 15:50:52 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2021-12-16 13:07:06 +0000 |
| commit | 1f39b1dfa53c84b56d7ad37fed44afda7004959d (patch) | |
| tree | 8ef62c2b9b69fbf96e0cdad49362f2c4c17e0682 /drivers/gpu/drm/tegra/uapi.c | |
| parent | drm/tegra: Implement correct DMA-BUF semantics (diff) | |
| download | kernel-1f39b1dfa53c84b56d7ad37fed44afda7004959d.tar.gz kernel-1f39b1dfa53c84b56d7ad37fed44afda7004959d.zip | |
drm/tegra: Implement buffer object cache
This cache is used to avoid mapping and unmapping buffer objects
unnecessarily. Mappings are cached per client and stay hot until
the buffer object is destroyed.
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/tegra/uapi.c')
| -rw-r--r-- | drivers/gpu/drm/tegra/uapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/uapi.c b/drivers/gpu/drm/tegra/uapi.c index d31df8e129c5..9ab9179d2026 100644 --- a/drivers/gpu/drm/tegra/uapi.c +++ b/drivers/gpu/drm/tegra/uapi.c @@ -201,7 +201,7 @@ int tegra_drm_ioctl_channel_map(struct drm_device *drm, void *data, struct drm_f goto put_gem; } - mapping->map = host1x_bo_pin(context->client->base.dev, mapping->bo, direction); + mapping->map = host1x_bo_pin(context->client->base.dev, mapping->bo, direction, NULL); if (IS_ERR(mapping->map)) { err = PTR_ERR(mapping->map); goto put_gem; |
