drm/tegra: Reserve syncpoint base for gr3d
authorThierry Reding <treding@nvidia.com>
Mon, 28 Oct 2013 09:23:11 +0000 (10:23 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 31 Oct 2013 08:55:49 +0000 (09:55 +0100)
Request a syncpoint base to be associated with the gr3d syncpoint.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/gr3d.c

index dc0f222d1323b4e233ea6987ec74faf18ebec9c2..4cec8f526af7036efac83c439599b1093ee4c94c 100644 (file)
@@ -35,13 +35,14 @@ static int gr3d_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 gr3d *gr3d = to_gr3d(drm);
 
        gr3d->channel = host1x_channel_request(client->dev);
        if (!gr3d->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(gr3d->channel);
                return -ENOMEM;