Re: [PATCH] usb: fix number of mapped SG DMA entries

From: Sebastian Andrzej Siewior
Date: Thu Dec 15 2011 - 11:23:00 EST


On 12/15/2011 05:01 PM, Alan Stern wrote:

Is there anything special you do to get into this kind of situation?
Like 16GiB of memory on 32bit with highmem and a brutal disk/io test
case so?

As I understand it, the typical case is that two SG entries in a row
refer to adjacent pages of physical memory. The mapping routine then
collapses them into a single entry referring to all the pages.

However, this is not the sort of thing you can deliberately cause,
unless you set up your SG list by hand.

Thanks, both of you for the explanation.


Alan Stern

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/