Re: [PATCH] dmaengine: ti: omap-dma: Configure LCH_TYPE for OMAP1
From: Tony Lindgren
Date: Sun Nov 25 2018 - 12:14:36 EST
* Aaro Koskinen <aaro.koskinen@xxxxxx> [181125 16:58]:
> Below changes get traffic going with DMA & g_ether...
Oh cool, if you have dma and g_ether working, you should
test it with a variable size ping test loop :) That should
expose any issues within few minutes.
Below is the test script I was using earlier, the
tusb6010 comment there is probably no longer valid.
Regards,
Tony
8< ----------------
#!/bin/bash
#
# At least tusb6010 dma needs 32-bit aligned buffers.
# That can be done by setting no_skb_reserve with:
# musb->g.quirk_avoids_skb_reserve = 1;
#
device=$1
size=$2
wraps=0
while [ 1 ]; do
#echo "Pinging with size $size"
if ! ping -w0 -c1 -s$size $device > /dev/null 2>&1; then
break;
fi
size=$(expr $size + 1)
if [ $size -gt 8192 ]; then
wraps=$(expr $wraps + 1)
echo "wrapping ($wraps) at $size"
size=1
fi
done
echo "Test ran up to $size"