drm/udl: disable fb_defio by default
authorDave Airlie <airlied@redhat.com>
Thu, 7 Feb 2013 02:30:25 +0000 (12:30 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Feb 2013 01:52:08 +0000 (11:52 +1000)
There seems to be a bad interaction between gem/shmem and defio on top,
I get list corruption on the page lru in the shmem code.

Turn it off for now until we get some more digging done.

Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/udl/udl_fb.c

index c35880ff220785c4962accae998426cf3a789365..1eb060cc71d10dade3d489becdb82032507ce927 100644 (file)
@@ -22,9 +22,9 @@
 
 #include <drm/drm_fb_helper.h>
 
-#define DL_DEFIO_WRITE_DELAY    5 /* fb_deferred_io.delay in jiffies */
+#define DL_DEFIO_WRITE_DELAY    (HZ/20) /* fb_deferred_io.delay in jiffies */
 
-static int fb_defio = 1;  /* Optionally enable experimental fb_defio mmap support */
+static int fb_defio = 0;  /* Optionally enable experimental fb_defio mmap support */
 static int fb_bpp = 16;
 
 module_param(fb_bpp, int, S_IWUSR | S_IRUSR | S_IWGRP | S_IRGRP);