Skip to content

Commit

Permalink
drm/tegra: Reserve syncpoint base for gr3d
Browse files Browse the repository at this point in the history
Request a syncpoint base to be associated with the gr3d syncpoint.

Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
thierryreding committed Oct 31, 2013
1 parent 61644dc commit 977386a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/tegra/gr3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 977386a

Please sign in to comment.