diff options
author | Oscar Mateo <oscar.mateo@intel.com> | 2014-05-22 09:13:37 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-05-22 17:41:17 -0400 |
commit | 273497e5cdacf50da8884d28cba662c332e0a09e (patch) | |
tree | 98e23e75e5777b669d02d163ba46849d7e515aa2 /drivers | |
parent | 93b0a4e0b26e80d8ddf476024e834e675850df81 (diff) |
drm/i915: s/i915_hw_context/intel_context
Up until now, contexts had one (and only one) backing object that was
used by the hardware to save/restore render ring contexts (via the
MI_SET_CONTEXT command). Other rings did not have or need this, so
our i915_hw_context struct had a 1:1 relationship with a a real HW
context.
With Logical Ring Contexts and Execlists, this is not possible anymore:
all rings need a backing object, and it cannot be reused. To prepare
for that, rename our contexts to the more generic term intel_context.
No functional changes.
Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 16 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_context.c | 38 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_execbuffer.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_gtt.h | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_sysfs.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.h | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_uncore.c | 2 |
9 files changed, 40 insertions, 40 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 833fdd2d1071..4f0f697363a2 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
@@ -172,7 +172,7 @@ describe_obj(struct seq_file *m, struct drm_i915_gem_object *obj) | |||
172 | seq_printf(m, " (%s)", obj->ring->name); | 172 | seq_printf(m, " (%s)", obj->ring->name); |
173 | } | 173 | } |
174 | 174 | ||
175 | static void describe_ctx(struct seq_file *m, struct i915_hw_context *ctx) | 175 | static void describe_ctx(struct seq_file *m, struct intel_context *ctx) |
176 | { | 176 | { |
177 | seq_putc(m, ctx->is_initialized ? 'I' : 'i'); | 177 | seq_putc(m, ctx->is_initialized ? 'I' : 'i'); |
178 | seq_putc(m, ctx->remap_slice ? 'R' : 'r'); | 178 | seq_putc(m, ctx->remap_slice ? 'R' : 'r'); |
@@ -1718,7 +1718,7 @@ static int i915_context_status(struct seq_file *m, void *unused) | |||
1718 | struct drm_device *dev = node->minor->dev; | 1718 | struct drm_device *dev = node->minor->dev; |
1719 | struct drm_i915_private *dev_priv = dev->dev_private; | 1719 | struct drm_i915_private *dev_priv = dev->dev_private; |
1720 | struct intel_engine_cs *ring; | 1720 | struct intel_engine_cs *ring; |
1721 | struct i915_hw_context *ctx; | 1721 | struct intel_context *ctx; |
1722 | int ret, i; | 1722 | int ret, i; |
1723 | 1723 | ||
1724 | ret = mutex_lock_interruptible(&dev->mode_config.mutex); | 1724 | ret = mutex_lock_interruptible(&dev->mode_config.mutex); |
@@ -1854,7 +1854,7 @@ static int i915_swizzle_info(struct seq_file *m, void *data) | |||
1854 | 1854 | ||
1855 | static int per_file_ctx(int id, void *ptr, void *data) | 1855 | static int per_file_ctx(int id, void *ptr, void *data) |
1856 | { | 1856 | { |
1857 | struct i915_hw_context *ctx = ptr; | 1857 | struct intel_context *ctx = ptr; |
1858 | struct seq_file *m = data; | 1858 | struct seq_file *m = data; |
1859 | struct i915_hw_ppgtt *ppgtt = ctx_to_ppgtt(ctx); | 1859 | struct i915_hw_ppgtt *ppgtt = ctx_to_ppgtt(ctx); |
1860 | 1860 | ||
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index ca5bd572a34d..f422ed37c7fe 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -599,7 +599,7 @@ struct i915_ctx_hang_stats { | |||
599 | 599 | ||
600 | /* This must match up with the value previously used for execbuf2.rsvd1. */ | 600 | /* This must match up with the value previously used for execbuf2.rsvd1. */ |
601 | #define DEFAULT_CONTEXT_ID 0 | 601 | #define DEFAULT_CONTEXT_ID 0 |
602 | struct i915_hw_context { | 602 | struct intel_context { |
603 | struct kref ref; | 603 | struct kref ref; |
604 | int id; | 604 | int id; |
605 | bool is_initialized; | 605 | bool is_initialized; |
@@ -1753,7 +1753,7 @@ struct drm_i915_gem_request { | |||
1753 | u32 tail; | 1753 | u32 tail; |
1754 | 1754 | ||
1755 | /** Context related to this request */ | 1755 | /** Context related to this request */ |
1756 | struct i915_hw_context *ctx; | 1756 | struct intel_context *ctx; |
1757 | 1757 | ||
1758 | /** Batch buffer related to this request if any */ | 1758 | /** Batch buffer related to this request if any */ |
1759 | struct drm_i915_gem_object *batch_obj; | 1759 | struct drm_i915_gem_object *batch_obj; |
@@ -1780,7 +1780,7 @@ struct drm_i915_file_private { | |||
1780 | } mm; | 1780 | } mm; |
1781 | struct idr context_idr; | 1781 | struct idr context_idr; |
1782 | 1782 | ||
1783 | struct i915_hw_context *private_default_ctx; | 1783 | struct intel_context *private_default_ctx; |
1784 | atomic_t rps_wait_boost; | 1784 | atomic_t rps_wait_boost; |
1785 | struct intel_engine_cs *bsd_ring; | 1785 | struct intel_engine_cs *bsd_ring; |
1786 | }; | 1786 | }; |
@@ -2399,21 +2399,21 @@ int i915_gem_context_open(struct drm_device *dev, struct drm_file *file); | |||
2399 | int i915_gem_context_enable(struct drm_i915_private *dev_priv); | 2399 | int i915_gem_context_enable(struct drm_i915_private *dev_priv); |
2400 | void i915_gem_context_close(struct drm_device *dev, struct drm_file *file); | 2400 | void i915_gem_context_close(struct drm_device *dev, struct drm_file *file); |
2401 | int i915_switch_context(struct intel_engine_cs *ring, | 2401 | int i915_switch_context(struct intel_engine_cs *ring, |
2402 | struct i915_hw_context *to); | 2402 | struct intel_context *to); |
2403 | struct i915_hw_context * | 2403 | struct intel_context * |
2404 | i915_gem_context_get(struct drm_i915_file_private *file_priv, u32 id); | 2404 | i915_gem_context_get(struct drm_i915_file_private *file_priv, u32 id); |
2405 | void i915_gem_context_free(struct kref *ctx_ref); | 2405 | void i915_gem_context_free(struct kref *ctx_ref); |
2406 | static inline void i915_gem_context_reference(struct i915_hw_context *ctx) | 2406 | static inline void i915_gem_context_reference(struct intel_context *ctx) |
2407 | { | 2407 | { |
2408 | kref_get(&ctx->ref); | 2408 | kref_get(&ctx->ref); |
2409 | } | 2409 | } |
2410 | 2410 | ||
2411 | static inline void i915_gem_context_unreference(struct i915_hw_context *ctx) | 2411 | static inline void i915_gem_context_unreference(struct intel_context *ctx) |
2412 | { | 2412 | { |
2413 | kref_put(&ctx->ref, i915_gem_context_free); | 2413 | kref_put(&ctx->ref, i915_gem_context_free); |
2414 | } | 2414 | } |
2415 | 2415 | ||
2416 | static inline bool i915_gem_context_is_default(const struct i915_hw_context *c) | 2416 | static inline bool i915_gem_context_is_default(const struct intel_context *c) |
2417 | { | 2417 | { |
2418 | return c->id == DEFAULT_CONTEXT_ID; | 2418 | return c->id == DEFAULT_CONTEXT_ID; |
2419 | } | 2419 | } |
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index db7796beca50..87e9b349ebef 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -2304,7 +2304,7 @@ i915_gem_request_remove_from_client(struct drm_i915_gem_request *request) | |||
2304 | } | 2304 | } |
2305 | 2305 | ||
2306 | static bool i915_context_is_banned(struct drm_i915_private *dev_priv, | 2306 | static bool i915_context_is_banned(struct drm_i915_private *dev_priv, |
2307 | const struct i915_hw_context *ctx) | 2307 | const struct intel_context *ctx) |
2308 | { | 2308 | { |
2309 | unsigned long elapsed; | 2309 | unsigned long elapsed; |
2310 | 2310 | ||
@@ -2328,7 +2328,7 @@ static bool i915_context_is_banned(struct drm_i915_private *dev_priv, | |||
2328 | } | 2328 | } |
2329 | 2329 | ||
2330 | static void i915_set_reset_status(struct drm_i915_private *dev_priv, | 2330 | static void i915_set_reset_status(struct drm_i915_private *dev_priv, |
2331 | struct i915_hw_context *ctx, | 2331 | struct intel_context *ctx, |
2332 | const bool guilty) | 2332 | const bool guilty) |
2333 | { | 2333 | { |
2334 | struct i915_ctx_hang_stats *hs; | 2334 | struct i915_ctx_hang_stats *hs; |
diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c index 8e57e1d63fb1..2100f6e8a703 100644 --- a/drivers/gpu/drm/i915/i915_gem_context.c +++ b/drivers/gpu/drm/i915/i915_gem_context.c | |||
@@ -178,7 +178,7 @@ static int get_context_size(struct drm_device *dev) | |||
178 | 178 | ||
179 | void i915_gem_context_free(struct kref *ctx_ref) | 179 | void i915_gem_context_free(struct kref *ctx_ref) |
180 | { | 180 | { |
181 | struct i915_hw_context *ctx = container_of(ctx_ref, | 181 | struct intel_context *ctx = container_of(ctx_ref, |
182 | typeof(*ctx), ref); | 182 | typeof(*ctx), ref); |
183 | struct i915_hw_ppgtt *ppgtt = NULL; | 183 | struct i915_hw_ppgtt *ppgtt = NULL; |
184 | 184 | ||
@@ -199,7 +199,7 @@ void i915_gem_context_free(struct kref *ctx_ref) | |||
199 | } | 199 | } |
200 | 200 | ||
201 | static struct i915_hw_ppgtt * | 201 | static struct i915_hw_ppgtt * |
202 | create_vm_for_ctx(struct drm_device *dev, struct i915_hw_context *ctx) | 202 | create_vm_for_ctx(struct drm_device *dev, struct intel_context *ctx) |
203 | { | 203 | { |
204 | struct i915_hw_ppgtt *ppgtt; | 204 | struct i915_hw_ppgtt *ppgtt; |
205 | int ret; | 205 | int ret; |
@@ -218,12 +218,12 @@ create_vm_for_ctx(struct drm_device *dev, struct i915_hw_context *ctx) | |||
218 | return ppgtt; | 218 | return ppgtt; |
219 | } | 219 | } |
220 | 220 | ||
221 | static struct i915_hw_context * | 221 | static struct intel_context * |
222 | __create_hw_context(struct drm_device *dev, | 222 | __create_hw_context(struct drm_device *dev, |
223 | struct drm_i915_file_private *file_priv) | 223 | struct drm_i915_file_private *file_priv) |
224 | { | 224 | { |
225 | struct drm_i915_private *dev_priv = dev->dev_private; | 225 | struct drm_i915_private *dev_priv = dev->dev_private; |
226 | struct i915_hw_context *ctx; | 226 | struct intel_context *ctx; |
227 | int ret; | 227 | int ret; |
228 | 228 | ||
229 | ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); | 229 | ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); |
@@ -285,14 +285,14 @@ err_out: | |||
285 | * context state of the GPU for applications that don't utilize HW contexts, as | 285 | * context state of the GPU for applications that don't utilize HW contexts, as |
286 | * well as an idle case. | 286 | * well as an idle case. |
287 | */ | 287 | */ |
288 | static struct i915_hw_context * | 288 | static struct intel_context * |
289 | i915_gem_create_context(struct drm_device *dev, | 289 | i915_gem_create_context(struct drm_device *dev, |
290 | struct drm_i915_file_private *file_priv, | 290 | struct drm_i915_file_private *file_priv, |
291 | bool create_vm) | 291 | bool create_vm) |
292 | { | 292 | { |
293 | const bool is_global_default_ctx = file_priv == NULL; | 293 | const bool is_global_default_ctx = file_priv == NULL; |
294 | struct drm_i915_private *dev_priv = dev->dev_private; | 294 | struct drm_i915_private *dev_priv = dev->dev_private; |
295 | struct i915_hw_context *ctx; | 295 | struct intel_context *ctx; |
296 | int ret = 0; | 296 | int ret = 0; |
297 | 297 | ||
298 | BUG_ON(!mutex_is_locked(&dev->struct_mutex)); | 298 | BUG_ON(!mutex_is_locked(&dev->struct_mutex)); |
@@ -365,7 +365,7 @@ void i915_gem_context_reset(struct drm_device *dev) | |||
365 | * the next switch */ | 365 | * the next switch */ |
366 | for (i = 0; i < I915_NUM_RINGS; i++) { | 366 | for (i = 0; i < I915_NUM_RINGS; i++) { |
367 | struct intel_engine_cs *ring = &dev_priv->ring[i]; | 367 | struct intel_engine_cs *ring = &dev_priv->ring[i]; |
368 | struct i915_hw_context *dctx = ring->default_context; | 368 | struct intel_context *dctx = ring->default_context; |
369 | 369 | ||
370 | /* Do a fake switch to the default context */ | 370 | /* Do a fake switch to the default context */ |
371 | if (ring->last_context == dctx) | 371 | if (ring->last_context == dctx) |
@@ -391,7 +391,7 @@ void i915_gem_context_reset(struct drm_device *dev) | |||
391 | int i915_gem_context_init(struct drm_device *dev) | 391 | int i915_gem_context_init(struct drm_device *dev) |
392 | { | 392 | { |
393 | struct drm_i915_private *dev_priv = dev->dev_private; | 393 | struct drm_i915_private *dev_priv = dev->dev_private; |
394 | struct i915_hw_context *ctx; | 394 | struct intel_context *ctx; |
395 | int i; | 395 | int i; |
396 | 396 | ||
397 | /* Init should only be called once per module load. Eventually the | 397 | /* Init should only be called once per module load. Eventually the |
@@ -426,7 +426,7 @@ int i915_gem_context_init(struct drm_device *dev) | |||
426 | void i915_gem_context_fini(struct drm_device *dev) | 426 | void i915_gem_context_fini(struct drm_device *dev) |
427 | { | 427 | { |
428 | struct drm_i915_private *dev_priv = dev->dev_private; | 428 | struct drm_i915_private *dev_priv = dev->dev_private; |
429 | struct i915_hw_context *dctx = dev_priv->ring[RCS].default_context; | 429 | struct intel_context *dctx = dev_priv->ring[RCS].default_context; |
430 | int i; | 430 | int i; |
431 | 431 | ||
432 | if (dctx->obj) { | 432 | if (dctx->obj) { |
@@ -495,7 +495,7 @@ int i915_gem_context_enable(struct drm_i915_private *dev_priv) | |||
495 | 495 | ||
496 | static int context_idr_cleanup(int id, void *p, void *data) | 496 | static int context_idr_cleanup(int id, void *p, void *data) |
497 | { | 497 | { |
498 | struct i915_hw_context *ctx = p; | 498 | struct intel_context *ctx = p; |
499 | 499 | ||
500 | /* Ignore the default context because close will handle it */ | 500 | /* Ignore the default context because close will handle it */ |
501 | if (i915_gem_context_is_default(ctx)) | 501 | if (i915_gem_context_is_default(ctx)) |
@@ -534,12 +534,12 @@ void i915_gem_context_close(struct drm_device *dev, struct drm_file *file) | |||
534 | i915_gem_context_unreference(file_priv->private_default_ctx); | 534 | i915_gem_context_unreference(file_priv->private_default_ctx); |
535 | } | 535 | } |
536 | 536 | ||
537 | struct i915_hw_context * | 537 | struct intel_context * |
538 | i915_gem_context_get(struct drm_i915_file_private *file_priv, u32 id) | 538 | i915_gem_context_get(struct drm_i915_file_private *file_priv, u32 id) |
539 | { | 539 | { |
540 | struct i915_hw_context *ctx; | 540 | struct intel_context *ctx; |
541 | 541 | ||
542 | ctx = (struct i915_hw_context *)idr_find(&file_priv->context_idr, id); | 542 | ctx = (struct intel_context *)idr_find(&file_priv->context_idr, id); |
543 | if (!ctx) | 543 | if (!ctx) |
544 | return ERR_PTR(-ENOENT); | 544 | return ERR_PTR(-ENOENT); |
545 | 545 | ||
@@ -548,7 +548,7 @@ i915_gem_context_get(struct drm_i915_file_private *file_priv, u32 id) | |||
548 | 548 | ||
549 | static inline int | 549 | static inline int |
550 | mi_set_context(struct intel_engine_cs *ring, | 550 | mi_set_context(struct intel_engine_cs *ring, |
551 | struct i915_hw_context *new_context, | 551 | struct intel_context *new_context, |
552 | u32 hw_flags) | 552 | u32 hw_flags) |
553 | { | 553 | { |
554 | int ret; | 554 | int ret; |
@@ -598,10 +598,10 @@ mi_set_context(struct intel_engine_cs *ring, | |||
598 | } | 598 | } |
599 | 599 | ||
600 | static int do_switch(struct intel_engine_cs *ring, | 600 | static int do_switch(struct intel_engine_cs *ring, |
601 | struct i915_hw_context *to) | 601 | struct intel_context *to) |
602 | { | 602 | { |
603 | struct drm_i915_private *dev_priv = ring->dev->dev_private; | 603 | struct drm_i915_private *dev_priv = ring->dev->dev_private; |
604 | struct i915_hw_context *from = ring->last_context; | 604 | struct intel_context *from = ring->last_context; |
605 | struct i915_hw_ppgtt *ppgtt = ctx_to_ppgtt(to); | 605 | struct i915_hw_ppgtt *ppgtt = ctx_to_ppgtt(to); |
606 | u32 hw_flags = 0; | 606 | u32 hw_flags = 0; |
607 | int ret, i; | 607 | int ret, i; |
@@ -734,7 +734,7 @@ unpin_out: | |||
734 | * object while letting the normal object tracking destroy the backing BO. | 734 | * object while letting the normal object tracking destroy the backing BO. |
735 | */ | 735 | */ |
736 | int i915_switch_context(struct intel_engine_cs *ring, | 736 | int i915_switch_context(struct intel_engine_cs *ring, |
737 | struct i915_hw_context *to) | 737 | struct intel_context *to) |
738 | { | 738 | { |
739 | struct drm_i915_private *dev_priv = ring->dev->dev_private; | 739 | struct drm_i915_private *dev_priv = ring->dev->dev_private; |
740 | 740 | ||
@@ -763,7 +763,7 @@ int i915_gem_context_create_ioctl(struct drm_device *dev, void *data, | |||
763 | { | 763 | { |
764 | struct drm_i915_gem_context_create *args = data; | 764 | struct drm_i915_gem_context_create *args = data; |
765 | struct drm_i915_file_private *file_priv = file->driver_priv; | 765 | struct drm_i915_file_private *file_priv = file->driver_priv; |
766 | struct i915_hw_context *ctx; | 766 | struct intel_context *ctx; |
767 | int ret; | 767 | int ret; |
768 | 768 | ||
769 | if (!hw_context_enabled(dev)) | 769 | if (!hw_context_enabled(dev)) |
@@ -789,7 +789,7 @@ int i915_gem_context_destroy_ioctl(struct drm_device *dev, void *data, | |||
789 | { | 789 | { |
790 | struct drm_i915_gem_context_destroy *args = data; | 790 | struct drm_i915_gem_context_destroy *args = data; |
791 | struct drm_i915_file_private *file_priv = file->driver_priv; | 791 | struct drm_i915_file_private *file_priv = file->driver_priv; |
792 | struct i915_hw_context *ctx; | 792 | struct intel_context *ctx; |
793 | int ret; | 793 | int ret; |
794 | 794 | ||
795 | if (args->ctx_id == DEFAULT_CONTEXT_ID) | 795 | if (args->ctx_id == DEFAULT_CONTEXT_ID) |
diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c index 7829b9074ee4..008e208e9a3a 100644 --- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c +++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c | |||
@@ -912,11 +912,11 @@ validate_exec_list(struct drm_i915_gem_exec_object2 *exec, | |||
912 | return 0; | 912 | return 0; |
913 | } | 913 | } |
914 | 914 | ||
915 | static struct i915_hw_context * | 915 | static struct intel_context * |
916 | i915_gem_validate_context(struct drm_device *dev, struct drm_file *file, | 916 | i915_gem_validate_context(struct drm_device *dev, struct drm_file *file, |
917 | struct intel_engine_cs *ring, const u32 ctx_id) | 917 | struct intel_engine_cs *ring, const u32 ctx_id) |
918 | { | 918 | { |
919 | struct i915_hw_context *ctx = NULL; | 919 | struct intel_context *ctx = NULL; |
920 | struct i915_ctx_hang_stats *hs; | 920 | struct i915_ctx_hang_stats *hs; |
921 | 921 | ||
922 | if (ring->id != RCS && ctx_id != DEFAULT_CONTEXT_ID) | 922 | if (ring->id != RCS && ctx_id != DEFAULT_CONTEXT_ID) |
@@ -1051,7 +1051,7 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data, | |||
1051 | struct drm_i915_gem_object *batch_obj; | 1051 | struct drm_i915_gem_object *batch_obj; |
1052 | struct drm_clip_rect *cliprects = NULL; | 1052 | struct drm_clip_rect *cliprects = NULL; |
1053 | struct intel_engine_cs *ring; | 1053 | struct intel_engine_cs *ring; |
1054 | struct i915_hw_context *ctx; | 1054 | struct intel_context *ctx; |
1055 | struct i915_address_space *vm; | 1055 | struct i915_address_space *vm; |
1056 | const u32 ctx_id = i915_execbuffer2_get_context_id(*args); | 1056 | const u32 ctx_id = i915_execbuffer2_get_context_id(*args); |
1057 | u64 exec_start = args->batch_start_offset, exec_len; | 1057 | u64 exec_start = args->batch_start_offset, exec_len; |
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.h b/drivers/gpu/drm/i915/i915_gem_gtt.h index d187c0282860..1b96a06be3cb 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.h +++ b/drivers/gpu/drm/i915/i915_gem_gtt.h | |||
@@ -257,7 +257,7 @@ struct i915_hw_ppgtt { | |||
257 | dma_addr_t *gen8_pt_dma_addr[4]; | 257 | dma_addr_t *gen8_pt_dma_addr[4]; |
258 | }; | 258 | }; |
259 | 259 | ||
260 | struct i915_hw_context *ctx; | 260 | struct intel_context *ctx; |
261 | 261 | ||
262 | int (*enable)(struct i915_hw_ppgtt *ppgtt); | 262 | int (*enable)(struct i915_hw_ppgtt *ppgtt); |
263 | int (*switch_mm)(struct i915_hw_ppgtt *ppgtt, | 263 | int (*switch_mm)(struct i915_hw_ppgtt *ppgtt, |
diff --git a/drivers/gpu/drm/i915/i915_sysfs.c b/drivers/gpu/drm/i915/i915_sysfs.c index 3620997e43f5..86ce39aad0ff 100644 --- a/drivers/gpu/drm/i915/i915_sysfs.c +++ b/drivers/gpu/drm/i915/i915_sysfs.c | |||
@@ -186,7 +186,7 @@ i915_l3_write(struct file *filp, struct kobject *kobj, | |||
186 | struct drm_minor *dminor = dev_to_drm_minor(dev); | 186 | struct drm_minor *dminor = dev_to_drm_minor(dev); |
187 | struct drm_device *drm_dev = dminor->dev; | 187 | struct drm_device *drm_dev = dminor->dev; |
188 | struct drm_i915_private *dev_priv = drm_dev->dev_private; | 188 | struct drm_i915_private *dev_priv = drm_dev->dev_private; |
189 | struct i915_hw_context *ctx; | 189 | struct intel_context *ctx; |
190 | u32 *temp = NULL; /* Just here to make handling failures easy */ | 190 | u32 *temp = NULL; /* Just here to make handling failures easy */ |
191 | int slice = (int)(uintptr_t)attr->private; | 191 | int slice = (int)(uintptr_t)attr->private; |
192 | int ret; | 192 | int ret; |
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h index 5c509e74c722..910c83cf7d44 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.h +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h | |||
@@ -174,8 +174,8 @@ struct intel_engine_cs { | |||
174 | 174 | ||
175 | wait_queue_head_t irq_queue; | 175 | wait_queue_head_t irq_queue; |
176 | 176 | ||
177 | struct i915_hw_context *default_context; | 177 | struct intel_context *default_context; |
178 | struct i915_hw_context *last_context; | 178 | struct intel_context *last_context; |
179 | 179 | ||
180 | struct intel_ring_hangcheck hangcheck; | 180 | struct intel_ring_hangcheck hangcheck; |
181 | 181 | ||
diff --git a/drivers/gpu/drm/i915/intel_uncore.c b/drivers/gpu/drm/i915/intel_uncore.c index e7aa42d10f6c..9cd99d9676fd 100644 --- a/drivers/gpu/drm/i915/intel_uncore.c +++ b/drivers/gpu/drm/i915/intel_uncore.c | |||
@@ -921,7 +921,7 @@ int i915_get_reset_stats_ioctl(struct drm_device *dev, | |||
921 | struct drm_i915_private *dev_priv = dev->dev_private; | 921 | struct drm_i915_private *dev_priv = dev->dev_private; |
922 | struct drm_i915_reset_stats *args = data; | 922 | struct drm_i915_reset_stats *args = data; |
923 | struct i915_ctx_hang_stats *hs; | 923 | struct i915_ctx_hang_stats *hs; |
924 | struct i915_hw_context *ctx; | 924 | struct intel_context *ctx; |
925 | int ret; | 925 | int ret; |
926 | 926 | ||
927 | if (args->flags || args->pad) | 927 | if (args->flags || args->pad) |