Comment 3 for bug 785549

Revision history for this message
Sangwook Lee (sangwook) wrote :

If you apply the attached patch, you can not see packet drops any more.

The purpose of this patch is to use 32-bit access function in smsc911x.c in terms of software.
I think that V310 CPU enables software 32-bit access function split into two 16-bit access function continuously.
Please note that SMC9115 is connected to V310 by 16bit data bus and 8bit address .

According to SMSC9115 datasheet,
it mentions that with PIO Burst Reads (nCS or nRD controlled), it can do 16work read cycle back to back.

This is testing with 32bit access function as transferring 954MB data from host target.
There is no error both RX and TX as referring to ifconfig.

===================================================
root@linaro:~# ping 192.168.0.10
PING 192.168.0.10 (192.168.0.10) 56(84) bytes of data.
64 bytes from 192.168.0.10: icmp_req=1 ttl=64 time=2.81 ms
64 bytes from 192.168.0.10: icmp_req=2 ttl=64 time=0.333 ms
64 bytes from 192.168.0.10: icmp_req=3 ttl=64 time=0.511 ms
^C
--- 192.168.0.10 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.333/1.221/2.819/1.132 ms
root@linaro:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:80:00:23:45:67
          inet addr:192.168.0.20 Bcast:192.168.0.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:414 (414.0 B) TX bytes:378 (378.0 B)
          Interrupt:197

root@linaro:~# scp dev@192.168.0.10:/home/dev/linaro/tmp/sample954MB.tar .
dev@192.168.0.10's password:
sample954MB.tar 100% 954MB 3.5MB/s 04:30
root@linaro:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:80:00:23:45:67
          inet addr:192.168.0.20 Bcast:192.168.0.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:702245 errors:0 dropped:82 overruns:0 frame:0
          TX packets:142584 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1048387260 (1.0 GB) TX bytes:10274318 (10.2 MB)
          Interrupt:197

====================================================