diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-12-05 05:43:39 -0500 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-12-05 05:43:39 -0500 |
commit | 5aa7d52aebfc11760bbc5b081ed621227bb77981 (patch) | |
tree | 1bb2542ff9f8f58599325a68f3861f80be27bf26 | |
parent | 382ab78c0e4866eb9a812e9ba20d0f876d9634d6 (diff) | |
parent | bbf0c6b3620b3872929ef7d3c392ce436889110f (diff) |
Merge branch 'drm-intel-fixes' into drm-intel-next
Immediate merge for the conflicting introduction of HAS_COHERENT_RINGS.
Conflicts:
drivers/gpu/drm/i915/i915_dma.c
include/drm/i915_drm.h
-rw-r--r-- | drivers/char/agp/intel-gtt.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 3 | ||||
-rw-r--r-- | include/drm/i915_drm.h | 1 |
3 files changed, 8 insertions, 2 deletions
diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c index 8cf600cdac06..326ca2ef06b5 100644 --- a/drivers/char/agp/intel-gtt.c +++ b/drivers/char/agp/intel-gtt.c | |||
@@ -721,8 +721,10 @@ static int intel_fake_agp_fetch_size(void) | |||
721 | 721 | ||
722 | static void i830_cleanup(void) | 722 | static void i830_cleanup(void) |
723 | { | 723 | { |
724 | kunmap(intel_private.i8xx_page); | 724 | if (intel_private.i8xx_flush_page) { |
725 | intel_private.i8xx_flush_page = NULL; | 725 | kunmap(intel_private.i8xx_flush_page); |
726 | intel_private.i8xx_flush_page = NULL; | ||
727 | } | ||
726 | 728 | ||
727 | __free_page(intel_private.i8xx_page); | 729 | __free_page(intel_private.i8xx_page); |
728 | intel_private.i8xx_page = NULL; | 730 | intel_private.i8xx_page = NULL; |
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 664300986fb4..e9fb8953c606 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c | |||
@@ -775,6 +775,9 @@ static int i915_getparam(struct drm_device *dev, void *data, | |||
775 | case I915_PARAM_HAS_RELAXED_FENCING: | 775 | case I915_PARAM_HAS_RELAXED_FENCING: |
776 | value = 1; | 776 | value = 1; |
777 | break; | 777 | break; |
778 | case I915_PARAM_HAS_COHERENT_RINGS: | ||
779 | value = 1; | ||
780 | break; | ||
778 | default: | 781 | default: |
779 | DRM_DEBUG_DRIVER("Unknown parameter %d\n", | 782 | DRM_DEBUG_DRIVER("Unknown parameter %d\n", |
780 | param->param); | 783 | param->param); |
diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h index b20dbb2d7174..a2776e2807a4 100644 --- a/include/drm/i915_drm.h +++ b/include/drm/i915_drm.h | |||
@@ -288,6 +288,7 @@ typedef struct drm_i915_irq_wait { | |||
288 | #define I915_PARAM_HAS_BSD 10 | 288 | #define I915_PARAM_HAS_BSD 10 |
289 | #define I915_PARAM_HAS_BLT 11 | 289 | #define I915_PARAM_HAS_BLT 11 |
290 | #define I915_PARAM_HAS_RELAXED_FENCING 12 | 290 | #define I915_PARAM_HAS_RELAXED_FENCING 12 |
291 | #define I915_PARAM_HAS_COHERENT_RINGS 13 | ||
291 | 292 | ||
292 | typedef struct drm_i915_getparam { | 293 | typedef struct drm_i915_getparam { |
293 | int param; | 294 | int param; |