aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/tegra/drm.c5
-rw-r--r--drivers/gpu/host1x/cdma.c2
-rw-r--r--drivers/gpu/host1x/cdma.h2
-rw-r--r--include/linux/host1x.h3
4 files changed, 7 insertions, 5 deletions
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c
index 204b10e33f16..8f29323611dd 100644
--- a/drivers/gpu/drm/tegra/drm.c
+++ b/drivers/gpu/drm/tegra/drm.c
@@ -325,6 +325,7 @@ int tegra_drm_submit(struct tegra_drm_context *context,
325 struct drm_tegra_submit *args, struct drm_device *drm, 325 struct drm_tegra_submit *args, struct drm_device *drm,
326 struct drm_file *file) 326 struct drm_file *file)
327{ 327{
328 struct host1x_client *client = &context->client->base;
328 unsigned int num_cmdbufs = args->num_cmdbufs; 329 unsigned int num_cmdbufs = args->num_cmdbufs;
329 unsigned int num_relocs = args->num_relocs; 330 unsigned int num_relocs = args->num_relocs;
330 struct drm_tegra_cmdbuf __user *user_cmdbufs; 331 struct drm_tegra_cmdbuf __user *user_cmdbufs;
@@ -356,8 +357,8 @@ int tegra_drm_submit(struct tegra_drm_context *context,
356 return -ENOMEM; 357 return -ENOMEM;
357 358
358 job->num_relocs = args->num_relocs; 359 job->num_relocs = args->num_relocs;
359 job->client = (u32)args->context; 360 job->client = client;
360 job->class = context->client->base.class; 361 job->class = client->class;
361 job->serialize = true; 362 job->serialize = true;
362 363
363 /* 364 /*
diff --git a/drivers/gpu/host1x/cdma.c b/drivers/gpu/host1x/cdma.c
index 69bb77372ed9..91df51e631b2 100644
--- a/drivers/gpu/host1x/cdma.c
+++ b/drivers/gpu/host1x/cdma.c
@@ -247,7 +247,7 @@ static void cdma_start_timer_locked(struct host1x_cdma *cdma,
247static void stop_cdma_timer_locked(struct host1x_cdma *cdma) 247static void stop_cdma_timer_locked(struct host1x_cdma *cdma)
248{ 248{
249 cancel_delayed_work(&cdma->timeout.wq); 249 cancel_delayed_work(&cdma->timeout.wq);
250 cdma->timeout.client = 0; 250 cdma->timeout.client = NULL;
251} 251}
252 252
253/* 253/*
diff --git a/drivers/gpu/host1x/cdma.h b/drivers/gpu/host1x/cdma.h
index 446ee1a84969..e97e17b82370 100644
--- a/drivers/gpu/host1x/cdma.h
+++ b/drivers/gpu/host1x/cdma.h
@@ -58,7 +58,7 @@ struct buffer_timeout {
58 u32 syncpt_val; /* syncpt value when completed */ 58 u32 syncpt_val; /* syncpt value when completed */
59 ktime_t start_ktime; /* starting time */ 59 ktime_t start_ktime; /* starting time */
60 /* context timeout information */ 60 /* context timeout information */
61 int client; 61 struct host1x_client *client;
62}; 62};
63 63
64enum cdma_event { 64enum cdma_event {
diff --git a/include/linux/host1x.h b/include/linux/host1x.h
index f66bece1e1b7..0632010f47fb 100644
--- a/include/linux/host1x.h
+++ b/include/linux/host1x.h
@@ -202,7 +202,8 @@ struct host1x_job {
202 /* Channel where job is submitted to */ 202 /* Channel where job is submitted to */
203 struct host1x_channel *channel; 203 struct host1x_channel *channel;
204 204
205 u32 client; 205 /* client where the job originated */
206 struct host1x_client *client;
206 207
207 /* Gathers and their memory */ 208 /* Gathers and their memory */
208 struct host1x_job_gather *gathers; 209 struct host1x_job_gather *gathers;