diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-11-01 09:42:29 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-11-01 09:44:41 -0400 |
commit | f2a630bfeccc87c3f89aaf8b4a8902f1e4e9f7ca (patch) | |
tree | 5c9f6950c1e8dc9190ab923c3c374db132fa1631 /drivers/gpu/drm | |
parent | 0f8c6d7ca9257d6a01671ab69b897860d3ae9bc0 (diff) | |
parent | c6afd658073f9fdb4cc80664dac71fa9db6fdf35 (diff) |
Merge branch 'drm-intel-fixes' into drm-intel-next
Conflicts:
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_evict.c
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_evict.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_opregion.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_overlay.c | 4 |
4 files changed, 7 insertions, 9 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index ffea847c8a0d..5bd86033a88e 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -2291,7 +2291,7 @@ i915_gem_object_unbind(struct drm_gem_object *obj) | |||
2291 | static int i915_ring_idle(struct drm_device *dev, | 2291 | static int i915_ring_idle(struct drm_device *dev, |
2292 | struct intel_ring_buffer *ring) | 2292 | struct intel_ring_buffer *ring) |
2293 | { | 2293 | { |
2294 | if (list_empty(&ring->gpu_write_list)) | 2294 | if (list_empty(&ring->gpu_write_list) && list_empty(&ring->active_list)) |
2295 | return 0; | 2295 | return 0; |
2296 | 2296 | ||
2297 | i915_gem_flush_ring(dev, NULL, ring, | 2297 | i915_gem_flush_ring(dev, NULL, ring, |
@@ -2309,9 +2309,7 @@ i915_gpu_idle(struct drm_device *dev) | |||
2309 | int ret; | 2309 | int ret; |
2310 | 2310 | ||
2311 | lists_empty = (list_empty(&dev_priv->mm.flushing_list) && | 2311 | lists_empty = (list_empty(&dev_priv->mm.flushing_list) && |
2312 | list_empty(&dev_priv->render_ring.active_list) && | 2312 | list_empty(&dev_priv->mm.active_list)); |
2313 | list_empty(&dev_priv->bsd_ring.active_list) && | ||
2314 | list_empty(&dev_priv->blt_ring.active_list)); | ||
2315 | if (lists_empty) | 2313 | if (lists_empty) |
2316 | return 0; | 2314 | return 0; |
2317 | 2315 | ||
diff --git a/drivers/gpu/drm/i915/i915_gem_evict.c b/drivers/gpu/drm/i915/i915_gem_evict.c index a2609c5542fd..3f6f336bbb4d 100644 --- a/drivers/gpu/drm/i915/i915_gem_evict.c +++ b/drivers/gpu/drm/i915/i915_gem_evict.c | |||
@@ -179,9 +179,7 @@ i915_gem_evict_everything(struct drm_device *dev, bool purgeable_only) | |||
179 | 179 | ||
180 | lists_empty = (list_empty(&dev_priv->mm.inactive_list) && | 180 | lists_empty = (list_empty(&dev_priv->mm.inactive_list) && |
181 | list_empty(&dev_priv->mm.flushing_list) && | 181 | list_empty(&dev_priv->mm.flushing_list) && |
182 | list_empty(&dev_priv->render_ring.active_list) && | 182 | list_empty(&dev_priv->mm.active_list)); |
183 | list_empty(&dev_priv->bsd_ring.active_list) && | ||
184 | list_empty(&dev_priv->blt_ring.active_list)); | ||
185 | if (lists_empty) | 183 | if (lists_empty) |
186 | return -ENOSPC; | 184 | return -ENOSPC; |
187 | 185 | ||
diff --git a/drivers/gpu/drm/i915/intel_opregion.c b/drivers/gpu/drm/i915/intel_opregion.c index 917c7dc3cd6b..9b0d9a867aea 100644 --- a/drivers/gpu/drm/i915/intel_opregion.c +++ b/drivers/gpu/drm/i915/intel_opregion.c | |||
@@ -512,6 +512,6 @@ int intel_opregion_setup(struct drm_device *dev) | |||
512 | return 0; | 512 | return 0; |
513 | 513 | ||
514 | err_out: | 514 | err_out: |
515 | iounmap(opregion->header); | 515 | iounmap(base); |
516 | return err; | 516 | return err; |
517 | } | 517 | } |
diff --git a/drivers/gpu/drm/i915/intel_overlay.c b/drivers/gpu/drm/i915/intel_overlay.c index e62e1b3d243f..659f8349a15c 100644 --- a/drivers/gpu/drm/i915/intel_overlay.c +++ b/drivers/gpu/drm/i915/intel_overlay.c | |||
@@ -974,7 +974,9 @@ static int check_overlay_src(struct drm_device *dev, | |||
974 | { | 974 | { |
975 | int uv_hscale = uv_hsubsampling(rec->flags); | 975 | int uv_hscale = uv_hsubsampling(rec->flags); |
976 | int uv_vscale = uv_vsubsampling(rec->flags); | 976 | int uv_vscale = uv_vsubsampling(rec->flags); |
977 | u32 stride_mask, depth, tmp; | 977 | u32 stride_mask; |
978 | int depth; | ||
979 | u32 tmp; | ||
978 | 980 | ||
979 | /* check src dimensions */ | 981 | /* check src dimensions */ |
980 | if (IS_845G(dev) || IS_I830(dev)) { | 982 | if (IS_845G(dev) || IS_I830(dev)) { |