]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2012 06:02:29 +0000 (15:02 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2012 06:02:29 +0000 (15:02 +0900)
added patches:
nouveau-nouveau_set_bo_placement-takes-ttm-flags.patch

queue-3.0/nouveau-nouveau_set_bo_placement-takes-ttm-flags.patch [new file with mode: 0644]
queue-3.0/series

diff --git a/queue-3.0/nouveau-nouveau_set_bo_placement-takes-ttm-flags.patch b/queue-3.0/nouveau-nouveau_set_bo_placement-takes-ttm-flags.patch
new file mode 100644 (file)
index 0000000..b24c322
--- /dev/null
@@ -0,0 +1,30 @@
+From c284815debba2f14ee2fd07b1b4cc972ab116110 Mon Sep 17 00:00:00 2001
+From: Dave Airlie <airlied@redhat.com>
+Date: Fri, 18 May 2012 15:31:12 +0100
+Subject: nouveau: nouveau_set_bo_placement takes TTM flags
+
+From: Dave Airlie <airlied@redhat.com>
+
+commit c284815debba2f14ee2fd07b1b4cc972ab116110 upstream.
+
+This seems to be wrong to me, spotted while thinking about dma-buf.
+
+Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
+Signed-off-by: Dave Airlie <airlied@redhat.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/gpu/drm/nouveau/nouveau_bo.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/gpu/drm/nouveau/nouveau_bo.c
++++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
+@@ -1075,7 +1075,7 @@ nouveau_ttm_fault_reserve_notify(struct
+       nvbo->placement.fpfn = 0;
+       nvbo->placement.lpfn = dev_priv->fb_mappable_pages;
+-      nouveau_bo_placement_set(nvbo, TTM_PL_VRAM, 0);
++      nouveau_bo_placement_set(nvbo, TTM_PL_FLAG_VRAM, 0);
+       return nouveau_bo_validate(nvbo, false, true, false);
+ }
index 21029573ee4c7a28366e35f7b5e6dca3c57b8940..3fa6eec0168c7e8db84a4f6a88a64f63e76ac2f2 100644 (file)
@@ -46,3 +46,4 @@ usbcore-enable-usb2-lpm-if-port-suspend-fails.patch
 drm-i915-avoid-a-double-read-of-pch_iir-during-interrupt-handling.patch
 drm-i915-use-hw-scheduler-for-fixed-function-shaders.patch
 drm-i915-don-t-clobber-the-pipe-param-in-sanitize_modesetting.patch
+nouveau-nouveau_set_bo_placement-takes-ttm-flags.patch