diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-10-22 08:34:51 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-10-22 08:34:51 -0400 |
commit | c2fb7916927e989ea424e61ce5fe617e54878827 (patch) | |
tree | 02f9d5482075f8931637d82bb697a6470270136a /drivers/gpu/drm/i915/i915_drv.h | |
parent | 29de6ce574870a0d3fd157afdbf51c0282e2bf63 (diff) | |
parent | 6f0c0580b70c89094b3422ba81118c7b959c7556 (diff) |
Merge tag 'v3.7-rc2' into drm-intel-next-queued
Linux 3.7-rc2
Backmerge to solve two ugly conflicts:
- uapi. We've already added new ioctl definitions for -next. Do I need to say more?
- wc support gtt ptes. We've had to revert this for snb+ for 3.7 and
also fix a few other things in the code. Now we know how to make it
work on snb+, but to avoid losing the other fixes do the backmerge
first before re-enabling wc gtt ptes on snb+.
And a few other minor things, among them git getting confused in
intel_dp.c and seemingly causing a conflict out of nothing ...
Conflicts:
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_modes.c
include/drm/i915_drm.h
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 4728d3008810..d478bd484807 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -1310,10 +1310,10 @@ int i915_gem_unpin_ioctl(struct drm_device *dev, void *data, | |||
1310 | struct drm_file *file_priv); | 1310 | struct drm_file *file_priv); |
1311 | int i915_gem_busy_ioctl(struct drm_device *dev, void *data, | 1311 | int i915_gem_busy_ioctl(struct drm_device *dev, void *data, |
1312 | struct drm_file *file_priv); | 1312 | struct drm_file *file_priv); |
1313 | int i915_gem_get_cacheing_ioctl(struct drm_device *dev, void *data, | 1313 | int i915_gem_get_caching_ioctl(struct drm_device *dev, void *data, |
1314 | struct drm_file *file); | 1314 | struct drm_file *file); |
1315 | int i915_gem_set_cacheing_ioctl(struct drm_device *dev, void *data, | 1315 | int i915_gem_set_caching_ioctl(struct drm_device *dev, void *data, |
1316 | struct drm_file *file); | 1316 | struct drm_file *file); |
1317 | int i915_gem_throttle_ioctl(struct drm_device *dev, void *data, | 1317 | int i915_gem_throttle_ioctl(struct drm_device *dev, void *data, |
1318 | struct drm_file *file_priv); | 1318 | struct drm_file *file_priv); |
1319 | int i915_gem_madvise_ioctl(struct drm_device *dev, void *data, | 1319 | int i915_gem_madvise_ioctl(struct drm_device *dev, void *data, |
@@ -1350,9 +1350,14 @@ int __must_check i915_gem_object_get_pages(struct drm_i915_gem_object *obj); | |||
1350 | static inline struct page *i915_gem_object_get_page(struct drm_i915_gem_object *obj, int n) | 1350 | static inline struct page *i915_gem_object_get_page(struct drm_i915_gem_object *obj, int n) |
1351 | { | 1351 | { |
1352 | struct scatterlist *sg = obj->pages->sgl; | 1352 | struct scatterlist *sg = obj->pages->sgl; |
1353 | while (n >= SG_MAX_SINGLE_ALLOC) { | 1353 | int nents = obj->pages->nents; |
1354 | while (nents > SG_MAX_SINGLE_ALLOC) { | ||
1355 | if (n < SG_MAX_SINGLE_ALLOC - 1) | ||
1356 | break; | ||
1357 | |||
1354 | sg = sg_chain_ptr(sg + SG_MAX_SINGLE_ALLOC - 1); | 1358 | sg = sg_chain_ptr(sg + SG_MAX_SINGLE_ALLOC - 1); |
1355 | n -= SG_MAX_SINGLE_ALLOC - 1; | 1359 | n -= SG_MAX_SINGLE_ALLOC - 1; |
1360 | nents -= SG_MAX_SINGLE_ALLOC - 1; | ||
1356 | } | 1361 | } |
1357 | return sg_page(sg+n); | 1362 | return sg_page(sg+n); |
1358 | } | 1363 | } |
@@ -1436,7 +1441,7 @@ int __must_check i915_gpu_idle(struct drm_device *dev); | |||
1436 | int __must_check i915_gem_idle(struct drm_device *dev); | 1441 | int __must_check i915_gem_idle(struct drm_device *dev); |
1437 | int i915_add_request(struct intel_ring_buffer *ring, | 1442 | int i915_add_request(struct intel_ring_buffer *ring, |
1438 | struct drm_file *file, | 1443 | struct drm_file *file, |
1439 | struct drm_i915_gem_request *request); | 1444 | u32 *seqno); |
1440 | int __must_check i915_wait_seqno(struct intel_ring_buffer *ring, | 1445 | int __must_check i915_wait_seqno(struct intel_ring_buffer *ring, |
1441 | uint32_t seqno); | 1446 | uint32_t seqno); |
1442 | int i915_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf); | 1447 | int i915_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf); |