[via] Allow a little larger stride for SG DMA DownloadFromScreen.
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Sun, 16 Mar 2008 10:39:18 +0000 (11:39 +0100)
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Sun, 16 Mar 2008 10:45:57 +0000 (11:45 +0100)
linux-core/via_dmablit.c

index a6a2178..b5f9f05 100644 (file)
@@ -618,7 +618,7 @@ via_build_sg_info(struct drm_device *dev, drm_via_sg_info_t *vsg, drm_via_dmabli
         * (Not a big limitation anyway.)
         */
 
-       if ((xfer->mem_stride - xfer->line_length) >PAGE_SIZE) {
+       if ((xfer->mem_stride - xfer->line_length) > 2*PAGE_SIZE) {
                DRM_ERROR("Too large system memory stride. Stride: %d, "
                          "Length: %d\n", xfer->mem_stride, xfer->line_length);
                return -EINVAL;