summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/gr2d.c
diff options
context:
space:
mode:
authorArto Merilainen <amerilainen@nvidia.com>2013-10-14 14:21:55 +0200
committerThierry Reding <treding@nvidia.com>2013-10-31 09:55:48 +0100
commit61644dc7dfc5592cb136a633299ceef840bba303 (patch)
tree5a42dcbb1aa60b3af11d2e454c10f2ecbb8d4d66 /drivers/gpu/drm/tegra/gr2d.c
parentdrm/tegra: Deliver syncpoint base to user space (diff)
downloadlinux-61644dc7dfc5592cb136a633299ceef840bba303.tar.xz
linux-61644dc7dfc5592cb136a633299ceef840bba303.zip
drm/tegra: Reserve base for gr2d
This patch modifies the gr2d to reserve a base for syncpoint. Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/tegra/gr2d.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/gr2d.c b/drivers/gpu/drm/tegra/gr2d.c
index 3a04b97b54a2..7ec4259ffded 100644
--- a/drivers/gpu/drm/tegra/gr2d.c
+++ b/drivers/gpu/drm/tegra/gr2d.c
@@ -37,13 +37,14 @@ static int gr2d_init(struct host1x_client *client)
{
struct tegra_drm_client *drm = host1x_to_drm_client(client);
struct tegra_drm *tegra = dev_get_drvdata(client->parent);
+ unsigned long flags = HOST1X_SYNCPT_HAS_BASE;
struct gr2d *gr2d = to_gr2d(drm);
gr2d->channel = host1x_channel_request(client->dev);
if (!gr2d->channel)
return -ENOMEM;
- client->syncpts[0] = host1x_syncpt_request(client->dev, 0);
+ client->syncpts[0] = host1x_syncpt_request(client->dev, flags);
if (!client->syncpts[0]) {
host1x_channel_free(gr2d->channel);
return -ENOMEM;