Merge branch '3.2-without-smb2' of git://git.samba.org/sfrench/cifs-2.6
[pandora-kernel.git] / drivers / gpu / drm / nouveau / nouveau_display.c
index 764c15d..ddbabef 100644 (file)
@@ -105,9 +105,12 @@ nouveau_framebuffer_init(struct drm_device *dev,
                if (dev_priv->chipset == 0x50)
                        nv_fb->r_format |= (tile_flags << 8);
 
-               if (!tile_flags)
-                       nv_fb->r_pitch = 0x00100000 | fb->pitch;
-               else {
+               if (!tile_flags) {
+                       if (dev_priv->card_type < NV_D0)
+                               nv_fb->r_pitch = 0x00100000 | fb->pitch;
+                       else
+                               nv_fb->r_pitch = 0x01000000 | fb->pitch;
+               } else {
                        u32 mode = nvbo->tile_mode;
                        if (dev_priv->card_type >= NV_C0)
                                mode >>= 4;
@@ -276,7 +279,7 @@ nouveau_crtc_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb,
        struct nouveau_fence *fence;
        int ret;
 
-       if (dev_priv->engine.graph.accel_blocked)
+       if (!dev_priv->channel)
                return -ENODEV;
 
        s = kzalloc(sizeof(*s), GFP_KERNEL);