Re: mmc_test: fix performance tests that go over max_blk_count

Chris Ball
2010-09-11T23:47:16Z

Hi Adrian,

On Fri, Sep 10, 2010 at 09:39:57PM +0100, Chris Ball wrote:
> My test machine (Dell m6300, Sandisk Extreme III 4GB) no longer BUG()s,
> but it's still failing all of the transfer tests:
>
> mmc0: Test case 22. Multi-block highmem read...
> mmc0: Result: OK
> mmc0: Test case 23. Best-case read performance...
> mmc0: Result: Prepare stage failed! (-12)

Tracked this down a little farther. mmc_test_alloc_mem() is bailing
out here:

if (mem->cnt >= max_segs) {
if (page_cnt < min_page_cnt)
goto out_free;
break;
}

with vars mem->cnt=1, max_segs=1, page_cnt=0, min_page_cnt=16.

Thanks,