126a127,130
> # use min of the page size and 512 bytes as that should be more than
> # enough
> max_stride = min(512, page_size)
>
128,129c132,133
< # size to min of the page size and 1 kB, and from using only a single
< # bank up to the number of banks available
---
> # size to the max stride, and from using only a single bank up to the
> # number of banks available
132c136
< for stride_size in range(burst_size, min(1024, page_size) + 1, burst_size):
---
> for stride_size in range(burst_size, max_stride + 1, burst_size):
170a175,177
>
> print "DRAM sweep with burst: %d, banks: %d, max stride: %d" % \
> (burst_size, nbr_banks, max_stride)