Skip to contentSkip to conversation

Virtex TEMAC 1000Mb/s trouble, but 100b/s is working

DISCUSSION alex_snippet 3 participants 4 messages Nov 14, 2007

lore
Share & tools
lore
#0 lore raw

Hi all!

I'm porting Linux for custom board based on Virtex4 FX, vanilla kernel 2.6.22.5 , Xilinx EDK 9.1 BSP,
ELDK41 - cross-compiler
target nfs-root pointed to ELDK41/ppc_4xx

Kernel command line:
Linux/PPC load: root=/dev/nfs rw console=ttyS0,9600 nfsroot=192.168.0.1:/target
ip=on

All work successfully was done, i tested all at 100Mb's connection speed, but yesterday my customer said that with 1Gbit connection it did't work :( end of log following:

    3.341532] eth0: XTemac: Options: 0xb8f2
[   11.855386] eth0: XTemac: We renegotiated the speed to: 1000
[   11.923237] eth0: XTemac: speed set to 1000Mb/s
[   13.000064] Sending DHCP requests ......, OK
[   65.484075] IP-Config: Got DHCP answer from 0.0.0.0, my address is
192.168.0.
192
[   65.573684] IP-Config: Complete:
[   65.610416]       device=eth0, addr=192.168.0.192, mask=255.255.255.0,
gw=192
.168.0.1,
[   65.705572]      host=192.168.0.192, domain=, nis-domain=(none),
[   65.777872]      bootserver=0.0.0.0, rootserver=192.168.0.1, rootpath=
[   65.861982] Looking up port of RPC 100003/2 on 192.168.0.1
[   65.929093] Looking up port of RPC 100005/1 on 192.168.0.1
[   66.024134] VFS: Mounted root (nfs filesystem).
[   66.079160] Freeing unused kernel memory: 104k init
[   71.640314] nfs: server 192.168.0.1 not responding, still trying
[   76.040311] nfs: server 192.168.0.1 not responding, still trying

Load process was friezed at this point. When connection speed is 100Mb/s everything is ok.

Please advise me what to do, i tried to increase ppc core frequency from 100 to 300 MHz - the same problem.
When i'm using virtual machine instead of real hardware it's working on 1000Gb/s :) but isn't on real hardware.
I'm using Fedora 7 as a host.
May be there are some nfs-demon settings?

My MHS file fragment:

BEGIN hard_temac
PARAMETER INSTANCE = hard_temac_0
PARAMETER HW_VER = 3.00.b
PARAMETER C_PHY_TYPE = 1
PARAMETER C_EMAC1_PRESENT = 0
BUS_INTERFACE V4EMACDST0 = V4EMAC0
PORT GMII_TXD_0 = GMII_TXD0
PORT GMII_TX_EN_0 = GMII_TX_EN0
PORT GMII_TX_ER_0 = GMII_TX_ER0
PORT GMII_TX_CLK_0 = GMII_TX_CLK0
PORT GMII_RXD_0 = GMII_RXD0
PORT GMII_RX_DV_0 = GMII_RX_DV0
PORT GMII_RX_ER_0 = GMII_RX_ER0
PORT GMII_RX_CLK_0 = GMII_RX_CLK0
PORT MDC_0 = MDC0
PORT MDIO_0 = MDIO0
PORT GTX_CLK_0 = GTX_CLK0
PORT MII_TX_CLK_0 = MII_TX_CLK0
PORT RESET = Emac_Reset
PORT REFCLK = sys_clk_s
END

BEGIN plb_temac
PARAMETER INSTANCE = TriMode_MAC_GMII
PARAMETER HW_VER = 3.00.a
PARAMETER C_BASEADDR = 0x81200000
PARAMETER C_HIGHADDR = 0x8120ffff
PARAMETER C_MAC_FIFO_DEPTH = 64
PARAMETER C_RX_DRE_TYPE = 0
PARAMETER C_TX_DRE_TYPE = 0
PARAMETER C_DMA_TYPE = 1
PARAMETER C_PLB_CLK_PERIOD_PS = 10000
BUS_INTERFACE MSPLB = plb
BUS_INTERFACE V4EMACSRC = V4EMAC0
PORT IP2INTC_Irpt = TEMAC_Interrupt
PORT Emac_Reset = Emac_Reset
PORT PhyResetN = PhyResetN
END

Signature · 2 lines
View this message in context: http://www.nabble.com/Virtex-TEMAC-1000Mb-s-trouble%2C-but-100b-s-is-working-tf4803823.html#a13743302
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
#1 lore raw

I have the same problem with the FX12 Minimodul, runing 2.6.23 kernel...

running the nfs-kernel-server on the host, i could mount the nfs-directory from the target with -o nolock,tcp running the nfs-user-kernel failed

with both server i could not mount root-fs in the boot process

i gave up at this moment and take the root-fs to flash memory

regards
georg

Quoted 70 lines · alex_snippet

Hi all!

I'm porting Linux for custom board based on Virtex4 FX, vanilla kernel 2.6.22.5 , Xilinx EDK 9.1 BSP,
ELDK41 - cross-compiler
target nfs-root pointed to ELDK41/ppc_4xx

Kernel command line:
Linux/PPC load: root=/dev/nfs rw console=ttyS0,9600 nfsroot=192.168.0.1:/target
ip=on

All work successfully was done, i tested all at 100Mb's connection speed, but yesterday my customer said that with 1Gbit connection it did't work :( end of log following:

    3.341532] eth0: XTemac: Options: 0xb8f2
[   11.855386] eth0: XTemac: We renegotiated the speed to: 1000
[   11.923237] eth0: XTemac: speed set to 1000Mb/s
[   13.000064] Sending DHCP requests ......, OK
[   65.484075] IP-Config: Got DHCP answer from 0.0.0.0, my address is
192.168.0.
192
[   65.573684] IP-Config: Complete:
[   65.610416]       device=eth0, addr=192.168.0.192, mask=255.255.255.0,
gw=192
.168.0.1,
[   65.705572]      host=192.168.0.192, domain=, nis-domain=(none),
[   65.777872]      bootserver=0.0.0.0, rootserver=192.168.0.1, rootpath=
[   65.861982] Looking up port of RPC 100003/2 on 192.168.0.1
[   65.929093] Looking up port of RPC 100005/1 on 192.168.0.1
[   66.024134] VFS: Mounted root (nfs filesystem).
[   66.079160] Freeing unused kernel memory: 104k init
[   71.640314] nfs: server 192.168.0.1 not responding, still trying
[   76.040311] nfs: server 192.168.0.1 not responding, still trying

Load process was friezed at this point. When connection speed is 100Mb/s everything is ok.

Please advise me what to do, i tried to increase ppc core frequency from 100 to 300 MHz - the same problem.
When i'm using virtual machine instead of real hardware it's working on 1000Gb/s :) but isn't on real hardware.
I'm using Fedora 7 as a host.
May be there are some nfs-demon settings?

My MHS file fragment:

BEGIN hard_temac
PARAMETER INSTANCE = hard_temac_0
PARAMETER HW_VER = 3.00.b
PARAMETER C_PHY_TYPE = 1
PARAMETER C_EMAC1_PRESENT = 0
BUS_INTERFACE V4EMACDST0 = V4EMAC0
PORT GMII_TXD_0 = GMII_TXD0
PORT GMII_TX_EN_0 = GMII_TX_EN0
PORT GMII_TX_ER_0 = GMII_TX_ER0
PORT GMII_TX_CLK_0 = GMII_TX_CLK0
PORT GMII_RXD_0 = GMII_RXD0
PORT GMII_RX_DV_0 = GMII_RX_DV0
PORT GMII_RX_ER_0 = GMII_RX_ER0
PORT GMII_RX_CLK_0 = GMII_RX_CLK0
PORT MDC_0 = MDC0
PORT MDIO_0 = MDIO0
PORT GTX_CLK_0 = GTX_CLK0
PORT MII_TX_CLK_0 = MII_TX_CLK0
PORT RESET = Emac_Reset
PORT REFCLK = sys_clk_s
END

Quoted 18 lines

BEGIN plb_temac
PARAMETER INSTANCE = TriMode_MAC_GMII
PARAMETER HW_VER = 3.00.a
PARAMETER C_BASEADDR = 0x81200000
PARAMETER C_HIGHADDR = 0x8120ffff
PARAMETER C_MAC_FIFO_DEPTH = 64
PARAMETER C_RX_DRE_TYPE = 0
PARAMETER C_TX_DRE_TYPE = 0
PARAMETER C_DMA_TYPE = 1
PARAMETER C_PLB_CLK_PERIOD_PS = 10000
BUS_INTERFACE MSPLB = plb
BUS_INTERFACE V4EMACSRC = V4EMAC0
PORT IP2INTC_Irpt = TEMAC_Interrupt
PORT Emac_Reset = Emac_Reset
PORT PhyResetN = PhyResetN
END

-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich

Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498 Vorsitzende des Aufsichtsrats: MinDirig'in Bärbel Brumme-Bothe Geschäftsführung: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. Vorsitzender)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------

#2 lore raw
In reply to alex_snippet
Quoted 37 lines · alex_snippet

Hi all!

I'm porting Linux for custom board based on Virtex4 FX, vanilla kernel 2.6.22.5 , Xilinx EDK 9.1 BSP,
ELDK41 - cross-compiler
target nfs-root pointed to ELDK41/ppc_4xx

Kernel command line:
Linux/PPC load: root=/dev/nfs rw console=ttyS0,9600 nfsroot=192.168.0.1:/target
ip=on

All work successfully was done, i tested all at 100Mb's connection speed, but yesterday my customer said that with 1Gbit connection it did't work :( end of log following:

    3.341532] eth0: XTemac: Options: 0xb8f2
[   11.855386] eth0: XTemac: We renegotiated the speed to: 1000
[   11.923237] eth0: XTemac: speed set to 1000Mb/s
[   13.000064] Sending DHCP requests ......, OK
[   65.484075] IP-Config: Got DHCP answer from 0.0.0.0, my address is
192.168.0.
192
[   65.573684] IP-Config: Complete:
[   65.610416]       device=eth0, addr=192.168.0.192, mask=255.255.255.0,
gw=192
.168.0.1,
[   65.705572]      host=192.168.0.192, domain=, nis-domain=(none),
[   65.777872]      bootserver=0.0.0.0, rootserver=192.168.0.1, rootpath=
[   65.861982] Looking up port of RPC 100003/2 on 192.168.0.1
[   65.929093] Looking up port of RPC 100005/1 on 192.168.0.1
[   66.024134] VFS: Mounted root (nfs filesystem).
[   66.079160] Freeing unused kernel memory: 104k init
[   71.640314] nfs: server 192.168.0.1 not responding, still trying
[   76.040311] nfs: server 192.168.0.1 not responding, still trying
Quoted 8 lines

Load process was friezed at this point. When connection speed is 100Mb/s everything is ok.

Please advise me what to do, i tried to increase ppc core frequency from 100 to 300 MHz - the same problem.
When i'm using virtual machine instead of real hardware it's working on 1000Gb/s :) but isn't on real hardware.

We have it working for our ML403. But we are not using the builtin-support from the kernel.
We are using an initrd/initramfs for mounting the NFS (as this is much easier for debugging (you can get a shell)).

Quoted 3 lines · alex_snippet

I'm using Fedora 7 as a host.

We had problems with ubuntu as a host. Debian (Kernel 2.6.18) works fine for us.

Quoted 3 lines · alex_snippet

May be there are some nfs-demon settings?

we use

tcp,no_lock

here.

Regards,

Lorenz Kolb
ESIC-Solutions

Signature · 2 lines
View this message in context: http://www.nabble.com/Virtex-TEMAC-1000Mb-s-trouble%2C-but-100b-s-is-working-tf4803823.html#a13746324
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
#3 lore raw

Hi All

Thanks a lot

Trouble solved by adding tcp,no_lock !!!

Regards, Alex

Signature · 2 lines
View this message in context: http://www.nabble.com/Virtex-TEMAC-1000Mb-s-trouble%2C-but-100b-s-is-working-tf4803823.html#a13749163
Sent from the linuxppc-embedded mailing list archive at Nabble.com.