[#5270] smb mount slow if both of the ethernet cards are connected on bf518f ezbrd.
Submitted By: Mingquan Pan
Open Date
2009-06-18 03:46:50 Close Date
2009-06-26 05:46:43
Priority:
Medium High Assignee:
Graf Yang
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
BF518 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Rejected
Uboot version or rev.:
Toolchain version or rev.:
09r1-r7
App binary format:
N/A
Summary: smb mount slow if both of the ethernet cards are connected on bf518f ezbrd.
Details:
smb mount slow if both of the ethernet cards are connected(one card is connected to host machine directly 10.100.4.174, the other is connected to company network 10.99.29.xx). but DSA is disabled here and only eth0 is seen.
If you wait a while between every command to read or write to smb directory, maybe it works ok.
but as the test script runs, it would cost more time and failed with timeout. And the script runs ok on other boards.
If disconnect the line to company network, then the script can also pass on bf518 ezbrd.
The failed info like:
On host:
host:test@uclinux80-518f:~/work/cruise/checkouts/uclinux-dist/testsuites/smbfs> /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:72:0A:79:63
inet addr:10.99.29.80 Bcast:10.99.29.255 Mask:255.255.255.0
inet6 addr: fe80::213:72ff:fe0a:7963/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:39423 errors:0 dropped:0 overruns:0 frame:0
TX packets:27050 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4017593 (3.8 Mb) TX bytes:8208894 (7.8 Mb)
Interrupt:17
eth2 Link encap:Ethernet HWaddr 00:1D:0F:11:AE:04
inet addr:10.100.4.174 Bcast:10.100.4.255 Mask:255.255.255.0
inet6 addr: fe80::21d:fff:fe11:ae04/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:36658729 errors:0 dropped:0 overruns:0 frame:0
TX packets:29407784 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3719710462 (3547.3 Mb) TX bytes:256777725 (244.8 Mb)
Interrupt:16 Base address:0xef00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2142 errors:0 dropped:0 overruns:0 frame:0
TX packets:2142 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:198770 (194.1 Kb) TX bytes:198770 (194.1 Kb)
test@uclinux80-518f:~/work/cruise/checkouts/uclinux-dist/testsuites/smbfs>
On target:
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1-svn67
Created: 2009-06-17 7:30:54 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4190626 Bytes = 4 MB
Load Address: 00001000
Entry Point: 0018c87c
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 0018c87c
Linux version 2.6.28.10-ADI-2009R1-svn6753 (test@uclinux80-518f) (gcc version 4.1.2 (ADI svn)) #4 Wed Jun 17 07:30:43 GMT 2009
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0010afc0
rodata = 0x0010afc0-0x0015c1cc
bss = 0x0015d000-0x0016e814
data = 0x0016e814-0x00180000
stack = 0x0017e000-0x00180000
init = 0x00180000-0x007a6000
available = 0x007a6000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 1
Reset caused by Software reset
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF518 Rev 0.0
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 400 MHz core clock and 80 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174f
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console handover: boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 56108k/65536k RAM, (6296k init code, 1063k kernel code, 469k data, 1024k dma, 572k reserved)
Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (42 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezbrd_init(): registering device resources
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
msgmni has been set to 109
io scheduler noop registered (default)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1, mdc_clk=2500000Hz(mdc_div=15)@sclk=80MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc03400, dma channel@5
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 2004-05-31 19:45:28 UTC (1086032728)
dma_alloc_init: dma_page @ 0x03909000 - 256 pages at 0x03f00000
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,
host=bf518f-ezbrd, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
Freeing unused kernel memory: 6296k freed
_____________________________________
a8888b. / Welcome to the uClinux distribution \
d888888b. / _ _ \
8P"YP"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
8`._.' Y8. \ | |__ | | | | | |_| | / \ |
d/ `8b. \ \____||_|_| |_|\____|/_/\_\ |
dP . Y8b. \ For embedded processors including |
d8:' " `::88b \ the Analog Devices Blackfin /
d8" 'Y88b \___________________________________/
:8P ' :888
8a. : _a88P For further information, check out:
._/"Yaa_: .| 88P| - http://blackfin.uclinux.org/
\ YP" `| 8P `. - http://docs.blackfin.uclinux.org/
/ \.___.d| .' - http://www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - http://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.13.4 (2009-06-17 06:22:24 GMT) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> ifconfig eth0 10.100.4.50
root:/> ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:FE:55:B3:BC
inet addr:10.100.4.50 Bcast:10.100.4.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root:/> Trying 100/FULL
PHY: 0:03 - Link is Up - 100/Full
root:/> smbmount //10.100.4.174/users /mnt rw -o username=test,password=test
smbfs is deprecated and will be removed from the 2.6.27 kernel. Please migrate to cifs
root:/> ls /mnt/
smb_add_request: request [0020de60, mid=2] timed out!
ls: /mnt/: Input/output error
root:/>
root:/> ping 10.100.4.174
PING 10.100.4.174 (10.100.4.174): 56 data bytes
64 bytes from 10.100.4.174: seq=0 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=1 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=2 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=3 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=4 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=5 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=15 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=16 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=17 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=18 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=19 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=20 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=21 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=22 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=23 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=24 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=7 ttl=64 time=17068.000 ms
64 bytes from 10.100.4.174: seq=8 ttl=64 time=16064.000 ms
64 bytes from 10.100.4.174: seq=9 ttl=64 time=15060.000 ms
64 bytes from 10.100.4.174: seq=10 ttl=64 time=14056.000 ms
64 bytes from 10.100.4.174: seq=11 ttl=64 time=13052.000 ms
64 bytes from 10.100.4.174: seq=12 ttl=64 time=12048.000 ms
64 bytes from 10.100.4.174: seq=13 ttl=64 time=11044.000 ms
64 bytes from 10.100.4.174: seq=31 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=32 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=33 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=34 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=35 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=36 ttl=64 time=0.000 ms
64 bytes from 10.100.4.174: seq=37 ttl=64 time=0.000 ms
...
And sometimes:
root:/> successful boot attempt
version
kernel: Linux release 2.6.28.10-ADI-2009R1-svn6753, build #4 Wed Jun 17 07:30:43 GMT 2009
toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)
user-dist: release svn-8295, build #39 Wed Jun 17 07:24:32 GMT 2009
root:/>
*******************************************************************
STEP 3: Start tetsting.
ifconfig eth0 10.100.4.50 up
root:/> Trying 100/FULL
PHY: 0:03 - Link is Up - 100/Full
ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:FE:55:B3:BC
inet addr:10.100.4.50 Bcast:10.100.4.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:843 (843.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root:/> smbmount //10.100.4.174/users /mnt rw -o username=test,password=test
cp /bin/version /mnt/test
timeout connecting to 10.100.4.174:445
smbfs is deprecated and will be removed from the 2.6.27 kernel. Please migrate to cifs
Follow-ups
--- Graf Yang 2009-06-23 00:27:10
Vivi said, many test are failed because of slow network.
--- Graf Yang 2009-06-24 22:32:25
As the KSZ8893M is a switcher, and now it is connected to company network, so
the test network(10.100.4.0) are exposed to company network.
I guess the reason is there are many 10.100.4.174 and 10.100.4.50 machines on
the same network. Both sides of tester/bf518 is confused, so they can't work
properly.
Please try to change the ip address to 233.122.87.81/233.122.87.18, and see if
the bug is disappeared.
--- Mingquan Pan 2009-06-26 05:46:43
After changing the ipaddress to another one, this issue can be solved.
So we disconnect the line which is connected to the company network and add
another ethernet card to the host machine,and set the ipaddress to 192.168.1.1
and reserve the 10.100.4.174.
It can pass the smb and dsa case now. So close.
--- Graf Yang 2009-06-29 05:55:35
So it is not a bug.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found