This test in dma-debug is bogus. Because the debug code matchesdma based on address and size; and is perfectly valid to sync a valueless than size. This is the patch I sent earlier, it isn't 100%correct but it will let you keep testing....................................

This should fix the dma-debug API code (and documentation), toavoid false positives when sync is done on a partial map.

-Synchronise a single contiguous or scatter/gather mapping. All the-parameters must be the same as those passed into the single mapping-API.+Synchronise a single contiguous or scatter/gather mapping. The+device and handle must be the same as those passed into the single mapping+API. The size can be less than the original mapping if only part+of the mapping needs to be accessed.