BugLink: http://bugs.launchpad.net/bugs/1495983
OriginalAuthor: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Brad Figg <brad.figg@canonical.com>
* from the host.
*/
host->sg_tablesize = (stor_device->max_transfer_bytes >> PAGE_SHIFT);
+#if defined(CONFIG_X86_32)
+ dev_warn(&device->device, "adjusting sg_tablesize 0x%x -> 0x%x",
+ host->sg_tablesize, MAX_MULTIPAGE_BUFFER_COUNT);
+ host->sg_tablesize = MAX_MULTIPAGE_BUFFER_COUNT;
+#endif
+
/*
* Set the number of HW queues we are supporting.
*/