Linuxppc-embedded Digest, Vol 44, Issue 17
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Janhan,
Yes, it is confiemed. Thanks for your advise!
Regards
William Feng
Landscape Co, LTD.
--------------------------------------------------
From: <[email protected]>
Sent: Friday, April 04, 2008 7:54 PM
To: <[email protected]>
Subject: Linuxppc-embedded Digest, Vol 44, Issue 17
Quoted 959 lines
Send Linuxppc-embedded mailing list submissions to [email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
or, via email, send a message with subject or body 'help' to [email protected]You can reach the person managing the list at
[email protected]When replying, please edit your Subject line so it is more specific than "Re: Contents of Linuxppc-embedded digest..."
Today's Topics:
1. Re: Xilinx LLTEMAC driver issues (Johann Baudy)
----------------------------------------------------------------------
Message: 1
Date: Fri, 4 Apr 2008 11:54:01 +0000
From: "Johann Baudy" <[email protected]>
Subject: Re: Xilinx LLTEMAC driver issues
To: MingLiu <[email protected]>
Cc: John Linn <[email protected]>, git <[email protected]>, [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=UTF-8Dear Ming,
I've made this test on EDK 9.2 +
ll_temac1.00.b + lltemac hw patch (ftp://ftp.xilinx.com/pub/applications/misc/tx_ll_if_edk10_1.zip (still up))+ll_temacdriver patch.
I'm currently working on a 10.1 rebase. (ongoing...)Best regards,
JohannQuoted 897 lines · MingLiu
Dear Johann,
Thanks for the prompt reply.Actually I am using EDK 10.1 evaluation version. According to Xilinx's
answer, they said the problem will be fixed in 10.1 already. Unfortunately I still met it in my design.Do you happen to still have the file tx_ii_if.zip? I cannot download it
from Xilinx any more. Thank you so much if you can give me a copy.BR
MingQuoted 6 lines
Date: Fri, 4 Apr 2008 09:53:07 +0000
From: [email protected]
To: [email protected]Subject: Re: Xilinx LLTEMAC driver issues
CC: [email protected]; [email protected]; [email protected];Quoted 13 lines
Hi Ming,
I've already used netperf (without NFS) successfully. Are you using 1.00.b and 9.2, if yes look at AR #29708.
Best regards,
JohannQuoted 3 lines · MingLiu
Dear Johann,
Previously I said this patch helps for the checksum error problem. Butnow
Quoted 1 line
Quoted 1 line
I found some new issues. Yes. at least with this patch, something is
better
Quoted 1 line
Quoted 1 line
and at least we can use the hardware checksum offloading to do
something,
Quoted 2 lines
Quoted 2 lines
for example I can mount the NFS root file system. However when I try to measure the ethernet bandwidth with netperf, something goes wrong and
the
Quoted 16 lines
Quoted 16 lines
NFS mount will be broken. I guess this is because of the large bulk data transfer and maybe thus it triggers the checksum problem to happen.
Do you have the same situation? Or someone else has the same problem? I will appreciate if you can share your experience. Thanks a lot.
BR
Ming________________________________
Date: Wed, 2 Apr 2008 07:20:43 +0000
From: [email protected]
To: [email protected]Quoted 7 lines
Quoted 7 lines
Subject: Re: Xilinx LLTEMAC driver issues
CC: [email protected]; [email protected]; [email protected]I've solved this checksum offloading issue with this below patch. It may help, if you need performance. It certainly needs review but it
works
Quoted 64 lines
Quoted 64 lines
on my side.
--- xilinxgit/drivers/net/xilinx _lltemac/xlltemac_main.c.orig 2008-03-21 09:11:43.000000000 +0100 +++
xilinxgit/drivers/net/xilinx_lltemac/xlltemac_main.c2008-03-21 09:24:23.000000000 +0100(quoted diff) +0
-0@@ -133,7 +133,7 @@(
XLlDma_mBdRead((BdPtr), XLLDMA_BD_STSCTRL_USR0_OFFSET)) &0xFFFFFFFE)#define
BdCsumSetup(BdPtr, Start, Insert)\
-XLlDma_mBdWrite((BdPtr), XLLDMA_BD_USR1_OFFSET, (Start) << 16 | (Insert))
+XLlDma_mBdWrite((BdPtr), XLLDMA_BD_USR1_OFFSET, ((Start) << 16) | (Insert))/* Used for debugging */
#define BdCsumInsert(BdPtr) \(quoted diff) +7
-6@@ -1540,7 +1541,7 @@ static int xenet_DmaSend_internal(struct /* * if tx checksum offloading is enabled, when the ethernet stack * wants us to perform the checksum in hardware, - * skb->ip_summed is CHECKSUM_COMPLETE. Otherwise skb->ip_summed is + * skb->ip_summed is CHECKSUM_PARTIAL. Otherwise skb->ip_summed is * CHECKSUM_NONE, meaning the checksum is already done, or * CHECKSUM_UNNECESSARY, meaning checksumming is turned off (e.g. * loopback interface)@@ -1565,9 +1566,11 @@ static int xenet_DmaSend_internal(struct * skb_transport_header(skb) points to the beginning of the ip header * */ - if (skb->ip_summed == CHECKSUM_COMPLETE) { + if (skb->ip_summed == CHECKSUM_PARTIAL) { + + unsigned int csum_start_off = skb_transport_offset(skb); + unsigned int csum_index_off = csum_start_off + skb->csum_offset; - unsigned char *raw = skb_transport_header(skb); #if 0 { unsigned int csum = _xenet_tx_csum(skb);@@ -1578,9 +1581,8 @@ static int xenet_DmaSend_internal(struct } #else BdCsumEnable(bd_ptr); - BdCsumSetup(bd_ptr, raw - skb->data, - (raw - skb->data) + skb->csum); - + BdCsumSetup(bd_ptr, csum_start_off, + csum_index_off); #endif lp->tx_hw_csums++; }@@ -3277,7 +3279,7 @@ static int __devinit xtenet_of_probe(strstruct resource
*r_irq=&r_irq_struct; /* Interrupt resources */ struct resource*r_mem=&r_mem_struct; /* IO mem resources */ structxlltemac_platform_data*pdata =&pdata_struct;
- void*mac_address;
+ const void*mac_address;
int rc = 0;
const phandle*llink_connected_handle;
structdevice_node*llink_connected_node;Quoted 3 lines
Quoted 3 lines · Magnus Hjorth
Deactivating checksum offloading helped a lot! I still have some packet
loss
Quoted 1 line
Quoted 1 line
and not the best performance (TFTP transfer about 100 kbyte/s) but at
least
Quoted 27 lines
Quoted 27 lines
it works.
Thanks!
//Magnus
Quoted 18 lines
-----Original Message-----
From: rza1 [mailto:[email protected]]
Sent: den 31 mars 2008 11:14
To: Magnus Hjorth
Cc: John Linn; git; [email protected]
Subject: Re: Xilinx LLTEMAC driver issuesHi Magnus,
1.
I am using nearly the same versions then you and got the same problems too ;-).
I think there are some problems with the checksum offloading. Try to sniff the some packages (e.g. wireshark)...
For me ICMP (ping) worked but udp and tcp not (because off a wrong checksum in the transport layer).
A quick solution is to just deactivate checksum offloading.Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
2.
I remember some problems with Virtex-4 presamples too. There where problems with the hard-temac wrapper. You had to use1.00.a
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
and not b version.
But I don't have these problems with the EDK 9.2sp2/ISE9.2sp3 anymore.all the best,
RobertQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines · Magnus Hjorth
Hi John,
Thanks for the very fast reply! Right now I'm not at work so I don't have the board or EDK here to test anything.
I'm using checksum offload, but I don't know if DRE is enabled or
not. I
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
can't recall seeing any setting to enable/disable DRE..
A few things that crossed my mind:
Last year I did a design with EDK 8.2, back then there was an issue
with
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
the ML403 boards having an old revision of the FPGA which wasn't compatible with some versions of the IP core. There are no such
version
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
issues with the
xps_ll_temac?I don't think that I had phy-addr set in the DTS file. Will test
that on
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Monday.
Best regards,
MagnusOn Sat, 2008-03-29 at 07:58 -0600, John Linn wrote:
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Hi Magnus,
Sorry to hear you're having problems with it.
I am doing testing on an ML405 which is the same board but with a
bigger
Quoted 1 line
FPGA, but with ppc arch and I don't see this issue. I have done
limited
Quoted 4 lines
Quoted 4 lines
testing
Quoted 1 line
with powerpc arch and the LL TEMAC, but I didn't see this issue there
either.
Quoted 1 line
Powerpc arch is definitely less mature in my experience than the ppc
arch.
Quoted 2 lines
Quoted 2 lines
I'll
Quoted 1 line
do a quick test with my powerpc arch and make sure again I'm not
seeing
Quoted 3 lines
Quoted 3 lines
it.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
My kernel is from the Xilinx Git tree, but there have been a number
of
Quoted 1 line
Quoted 1 line
Quoted 1 line
changes we have pushed out so I don't know how long ago you pulled
from
Quoted 6 lines
Quoted 6 lines
the Git
Quoted 3 lines
tree.
Quoted 2 lines
Quoted 2 lines
My EDK project is 10.1 so it's a little newer. I am using LL TEMAC
1.01a so
Quoted 1 line
it's a little newer. I reviewed the change log for the LL TEMAC and
don't
Quoted 2 lines
Quoted 2 lines
see
Quoted 1 line
any big problems that were fixed in the newer versions, more new
features.
Quoted 6 lines
Quoted 6 lines
I'll
Quoted 3 lines
check with some others here to see if I missed something there.
Quoted 2 lines
Quoted 2 lines
I am using DMA also, but no DRE or checksum offload. You didn't say
anything
Quoted 1 line
about those. I'm going to insert my mhs file that describes my system
to
Quoted 2 lines
Quoted 2 lines
let you
Quoted 1 line
compare your system configuration. It's not clear to me yet if you
have a
Quoted 4 lines
Quoted 4 lines
h/w or
Quoted 3 lines
s/w problem.
Quoted 2 lines
Quoted 2 lines
I'll also insert some of my device tree with the LL TEMAC so you
can
Quoted 4 lines
Quoted 4 lines
compare
Quoted 3 lines
(ignore 16550 stuff as we are still working on that).
Quoted 2 lines
Quoted 2 lines
Since you can't ping reliably I would probably focus on that since
it's
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
simpler than the other issues you're seeing.
Quoted 7 lines
Quoted 7 lines
Thanks,
John#
##############################################################################
Quoted 17 lines
Quoted 17 lines
Quoted 16 lines
Quoted 1 line
Quoted 1 line
# Created by Base System Builder Wizard for Xilinx EDK 10.1.1 Build
EDK_K_SP1.1
Quoted 13 lines
Quoted 13 lines
# Thu Feb 14 14:11:12 2008
# Target Board: Xilinx Virtex 4 ML405 Evaluation Platform Rev 1 # Family: virtex4
# Device: xc4vfx20
# Package: ff672
# Speed Grade: -10
# Processor:ppc405_0
# Processor clock frequency: 300.00 MHz
# Bus clock frequency: 100.00 MHz
# On Chip Memory : 8 KB
# Total Off Chip Memory : 128 MB
# -DDR_SDRAM= 128 MB
###############################################################################
Quoted 17 lines
Quoted 17 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
PARAMETER VERSION = 2.1.0
PORT
fpga_0_RS232_Uart_sin_pin=fpga_0_RS232_Uart_sin, DIR = I PORTfpga_0_RS232_Uart_sout_pin=fpga_0_RS232_Uart_sout, DIR = O PORTfpga_0_LEDs_4Bit_GPIO_IO_pin=fpga_0_LEDs_4Bit_GPIO_IO, DIR =IO, VEC
Quoted 10 lines
= [0:3]
Quoted 3 lines
Quoted 3 lines
PORT
fpga_0_IIC_EEPROM_Scl_pin=fpga_0_IIC_EEPROM_Scl, DIR = IO PORTfpga_0_IIC_EEPROM_Sda_pin=fpga_0_IIC_EEPROM_Sda, DIR = IO PORTfpga_0_SysACE_CompactFlash_SysACE_CLK_pin=
fpga_0_SysACE_CompactFlash_SysACE_CLK, DIR = IQuoted 1 line
Quoted 1 line
PORT
fpga_0_SysACE_CompactFlash_SysACE_MPA_pin=
fpga_0_SysACE_CompactFlash_SysACE_MPA, DIR = O, VEC = [6:1]Quoted 1 line
Quoted 1 line
PORT
fpga_0_SysACE_CompactFlash_SysACE_MPD_pin=
fpga_0_SysACE_CompactFlash_SysACE_MPD, DIR = IO, VEC = [15:0]Quoted 1 line
Quoted 1 line
PORT
fpga_0_SysACE_CompactFlash_SysACE_CEN_pin=Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
fpga_0_SysACE_CompactFlash_SysACE_CEN, DIR = OQuoted 1 line
Quoted 1 line
PORT
fpga_0_SysACE_CompactFlash_SysACE_OEN_pin=
fpga_0_SysACE_CompactFlash_SysACE_OEN, DIR = OQuoted 1 line
Quoted 1 line
PORT
fpga_0_SysACE_CompactFlash_SysACE_WEN_pin=
fpga_0_SysACE_CompactFlash_SysACE_WEN, DIR = OQuoted 1 line
Quoted 1 line
PORT
fpga_0_SysACE_CompactFlash_SysACE_MPIRQ_pin=
fpga_0_SysACE_CompactFlash_SysACE_MPIRQ, DIR = IQuoted 1 line
Quoted 1 line
PORT
fpga_0_DDR_SDRAM_DDR_Clk_pin=fpga_0_DDR_SDRAM_DDR_Clk, DIR =O
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
PORT
fpga_0_DDR_SDRAM_DDR_Clk_n_pin=fpga_0_DDR_SDRAM_DDR_Clk_n,DIR
Quoted 2 lines
Quoted 2 lines
= O
Quoted 1 line
Quoted 1 line
Quoted 1 line
PORT
fpga_0_DDR_SDRAM_DDR_Addr_pin=fpga_0_DDR_SDRAM_DDR_Addr, DIR=
Quoted 6 lines
Quoted 6 lines
O, VEC
Quoted 2 lines
= [12:0]
Quoted 1 line
Quoted 1 line
PORT
fpga_0_DDR_SDRAM_DDR_BankAddr_pin=
fpga_0_DDR_SDRAM_DDR_BankAddr, DIRQuoted 2 lines
= O, VEC = [1:0]
Quoted 1 line
Quoted 1 line
PORT
fpga_0_DDR_SDRAM_DDR_CAS_n_pin=fpga_0_DDR_SDRAM_DDR_CAS_n,DIR
Quoted 3 lines
Quoted 3 lines
= O
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
PORT
fpga_0_DDR_SDRAM_DDR_CE_pin=fpga_0_DDR_SDRAM_DDR_CE, DIR = O PORTfpga_0_DDR_SDRAM_DDR_CS_n_pin=fpga_0_DDR_SDRAM_DDR_CS_n, DIR=
Quoted 2 lines
Quoted 2 lines
O
Quoted 1 line
Quoted 1 line
Quoted 1 line
PORT
fpga_0_DDR_SDRAM_DDR_RAS_n_pin=fpga_0_DDR_SDRAM_DDR_RAS_n,DIR
Quoted 2 lines
Quoted 2 lines
= O
Quoted 1 line
Quoted 1 line
Quoted 1 line
PORT
fpga_0_DDR_SDRAM_DDR_WE_n_pin=fpga_0_DDR_SDRAM_DDR_WE_n, DIR=
Quoted 2 lines
Quoted 2 lines
O
Quoted 1 line
Quoted 1 line
Quoted 1 line
PORT
fpga_0_DDR_SDRAM_DDR_DM_pin=fpga_0_DDR_SDRAM_DDR_DM, DIR =O,
Quoted 6 lines
Quoted 6 lines
VEC =
Quoted 2 lines
[3:0]
Quoted 1 line
Quoted 1 line
PORT
fpga_0_DDR_SDRAM_DDR_DQS=fpga_0_DDR_SDRAM_DDR_DQS, DIR = IO,VEC =
Quoted 2 lines
[3:0]
Quoted 1 line
Quoted 1 line
PORT
fpga_0_DDR_SDRAM_DDR_DQ=fpga_0_DDR_SDRAM_DDR_DQ, DIR = IO,VEC
Quoted 23 lines
Quoted 23 lines
=
Quoted 11 lines
[31:0]
Quoted 1 line
Quoted 1 line
PORT
fpga_0_TriMode_MAC_GMII_GMII_TXD_0_pin=
fpga_0_TriMode_MAC_GMII_GMII_TXD_0, DIR = O, VEC = [7:0]Quoted 1 line
Quoted 1 line
PORT
fpga_0_TriMode_MAC_GMII_GMII_TX_EN_0_pin=
fpga_0_TriMode_MAC_GMII_GMII_TX_EN_0, DIR = OQuoted 1 line
Quoted 1 line
PORT
fpga_0_TriMode_MAC_GMII_GMII_TX_ER_0_pin=
fpga_0_TriMode_MAC_GMII_GMII_TX_ER_0, DIR = OQuoted 1 line
Quoted 1 line
PORT
fpga_0_TriMode_MAC_GMII_GMII_TX_CLK_0_pin=
fpga_0_TriMode_MAC_GMII_GMII_TX_CLK_0, DIR = OQuoted 1 line
Quoted 1 line
PORT
fpga_0_TriMode_MAC_GMII_GMII_RXD_0_pin=
fpga_0_TriMode_MAC_GMII_GMII_RXD_0, DIR = I, VEC = [7:0]Quoted 9 lines
Quoted 1 line
Quoted 1 line
PORT
fpga_0_TriMode_MAC_GMII_GMII_RX_DV_0_pin=
fpga_0_TriMode_MAC_GMII_GMII_RX_DV_0, DIR = IQuoted 1 line
Quoted 1 line
PORT
fpga_0_TriMode_MAC_GMII_GMII_RX_ER_0_pin=
fpga_0_TriMode_MAC_GMII_GMII_RX_ER_0, DIR = IQuoted 1 line
Quoted 1 line
PORT
fpga_0_TriMode_MAC_GMII_GMII_RX_CLK_0_pin=
fpga_0_TriMode_MAC_GMII_GMII_RX_CLK_0, DIR = IQuoted 1 line
Quoted 1 line
PORT
fpga_0_TriMode_MAC_GMII_MII_TX_CLK_0_pin=
fpga_0_TriMode_MAC_GMII_MII_TX_CLK_0, DIR = IQuoted 1 line
Quoted 1 line
PORT
fpga_0_TriMode_MAC_GMII_MDIO_0_pin=
fpga_0_TriMode_MAC_GMII_MDIO_0,Quoted 1 line
DIR = IO
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
PORT
fpga_0_TriMode_MAC_GMII_MDC_0_pin=
fpga_0_TriMode_MAC_GMII_MDC_0, DIRQuoted 4 lines
= O
Quoted 1 line
Quoted 1 line
PORT
fpga_0_TriMode_MAC_GMII_TemacPhy_RST_n_pin=
fpga_0_TriMode_MAC_GMII_TemacPhy_RST_n, DIR = OQuoted 1 line
Quoted 1 line
PORT
sys_clk_pin=dcm_clk_s, DIR = I, SIGIS = CLK,CLK_FREQ=100000000
Quoted 1 line
Quoted 1 line
Quoted 1 line
PORT
sys_rst_pin=sys_rst_s, DIR = I,RST_POLARITY= 0, SIGIS =RST
Quoted 445 lines
Quoted 445 lines
Quoted 445 lines
Quoted 152 lines
Quoted 152 lines
BEGIN
ppc405_virtex4
PARAMETER INSTANCE =ppc405_0
PARAMETERHW_VER= 2.01.a
PARAMETERC_FASTEST_PLB_CLOCK= DPLB1
PARAMETERC_IDCR_BASEADDR=0b0100000000
PARAMETERC_IDCR_HIGHADDR=0b0111111111BUS_INTERFACEJTAGPPC =jtagppc_0_0BUS_INTERFACEIPLB0 = plbBUS_INTERFACEDPLB0 = plbBUS_INTERFACEIPLB1 =ppc405_0_iplb1BUS_INTERFACEDPLB1 =ppc405_0_dplb1BUS_INTERFACERESETPPC =ppc_reset_bus
PORT CPMC405CLOCK =proc_clk_s
PORT EICC405EXTINPUTIRQ = EICC405EXTINPUTIRQ
ENDBEGIN
jtagppc_cntlr
PARAMETER INSTANCE =jtagppc_0
PARAMETERHW_VER= 2.01.aBUS_INTERFACEJTAGPPC0 =jtagppc_0_0
ENDBEGIN
plb_v46
PARAMETER INSTANCE = plb
PARAMETERC_DCR_INTFCE= 0
PARAMETERC_NUM_CLK_PLB2OPB_REARB= 100
PARAMETERHW_VER= 1.02.a
PORTPLB_Clk=sys_clk_s
PORTSYS_Rst=sys_bus_reset
ENDBEGIN
xps_bram_if_cntlr
PARAMETER INSTANCE =xps_bram_if_cntlr_1
PARAMETERHW_VER= 1.00.a
PARAMETERC_SPLB_NATIVE_DWIDTH= 64
PARAMETERC_BASEADDR=0xffffe000
PARAMETERC_HIGHADDR=0xffffffffBUS_INTERFACESPLB = plbBUS_INTERFACEPORTA =xps_bram_if_cntlr_1_port
ENDBEGIN
bram_block
PARAMETER INSTANCE =plb_bram_if_cntlr_1_bram
PARAMETERHW_VER= 1.00.aBUS_INTERFACEPORTA =xps_bram_if_cntlr_1_port
ENDBEGIN
xps_uart16550
PARAMETER INSTANCE =RS232_Uart
PARAMETERHW_VER= 2.00.a
PARAMETERC_IS_A_16550= 1
PARAMETERC_BASEADDR=0x83e00000
PARAMETERC_HIGHADDR=0x83e0ffffBUS_INTERFACESPLB = plb
PORT sin =fpga_0_RS232_Uart_sin
PORT sout =fpga_0_RS232_Uart_sout
PORTIP2INTC_Irpt=RS232_Uart_IP2INTC_Irpt
ENDBEGIN
xps_gpio
PARAMETER INSTANCE =LEDs_4Bit
PARAMETERHW_VER= 1.00.a
PARAMETERC_INTERRUPT_PRESENT= 1
PARAMETERC_GPIO_WIDTH= 4
PARAMETERC_IS_DUAL= 0
PARAMETERC_IS_BIDIR= 1
PARAMETERC_ALL_INPUTS= 0
PARAMETERC_BASEADDR=0x81400000
PARAMETERC_HIGHADDR=0x8140ffffBUS_INTERFACESPLB = plb
PORTGPIO_IO=fpga_0_LEDs_4Bit_GPIO_IO
PORTIP2INTC_Irpt=LEDs_4Bit_IP2INTC_Irpt
ENDBEGIN
xps_iic
PARAMETER INSTANCE =IIC_EEPROM
PARAMETERHW_VER= 2.00.a
PARAMETERC_CLK_FREQ= 100000000
PARAMETERC_IIC_FREQ= 100000
PARAMETERC_TEN_BIT_ADR= 0
PARAMETERC_BASEADDR=0x81600000
PARAMETERC_HIGHADDR=0x8160ffffBUS_INTERFACESPLB = plb
PORT Scl =fpga_0_IIC_EEPROM_Scl
PORT Sda =fpga_0_IIC_EEPROM_Sda
PORTIIC2INTC_Irpt=IIC_EEPROM_IIC2INTC_Irpt
ENDBEGIN
xps_sysace
PARAMETER INSTANCE =SysACE_CompactFlash
PARAMETERHW_VER= 1.00.a
PARAMETERC_MEM_WIDTH= 16
PARAMETERC_BASEADDR=0x83600000
PARAMETERC_HIGHADDR=0x8360ffffBUS_INTERFACESPLB = plb
PORTSysACE_CLK=fpga_0_SysACE_CompactFlash_SysACE_CLKPORTSysACE_MPA=fpga_0_SysACE_CompactFlash_SysACE_MPA_splitPORTSysACE_MPD=fpga_0_SysACE_CompactFlash_SysACE_MPDPORTSysACE_CEN=fpga_0_SysACE_CompactFlash_SysACE_CENPORTSysACE_OEN=fpga_0_SysACE_CompactFlash_SysACE_OENPORTSysACE_WEN=fpga_0_SysACE_CompactFlash_SysACE_WENPORTSysACE_MPIRQ=fpga_0_SysACE_CompactFlash_SysACE_MPIRQPORTSysACE_IRQ=SysACE_CompactFlash_SysACE_IRQENDBEGIN mpmc
PARAMETER INSTANCE =DDR_SDRAM
PARAMETERHW_VER= 4.00.a
PARAMETERC_NUM_PORTS= 3
PARAMETERC_MEM_PARTNO= HYB25D512160BE-5 PARAMETERC_MEM_DATA_WIDTH= 32
PARAMETERC_MEM_DQS_WIDTH= 4
PARAMETERC_MEM_DM_WIDTH= 4
PARAMETERC_MEM_TYPE= DDR
PARAMETERC_NUM_IDELAYCTRL= 2
PARAMETERC_IDELAYCTRL_LOC= IDELAYCTRL_X0Y3-IDELAYCTRL_X0Y2 PARAMETERC_PIM0_BASETYPE= 2
PARAMETERC_PIM1_BASETYPE= 2
PARAMETERC_PIM2_BASETYPE= 3
PARAMETERC_MPMC_CLK0_PERIOD_PS= 10000
PARAMETERC_SDMA2_PI2LL_CLK_RATIO= 1
PARAMETERC_MPMC_BASEADDR=0x00000000
PARAMETERC_MPMC_HIGHADDR=0x07ffffff
PARAMETERC_SDMA_CTRL_BASEADDR=0x84600000PARAMETERC_SDMA_CTRL_HIGHADDR=0x8460ffffBUS_INTERFACESPLB0 =ppc405_0_iplb1BUS_INTERFACESPLB1 =ppc405_0_dplb1BUS_INTERFACESDMA_LL2=TriMode_MAC_GMII_LLINK0BUS_INTERFACESDMA_CTRL2= plb
PORTDDR_Addr=fpga_0_DDR_SDRAM_DDR_Addr
PORTDDR_BankAddr=fpga_0_DDR_SDRAM_DDR_BankAddrPORTDDR_CAS_n=fpga_0_DDR_SDRAM_DDR_CAS_n
PORTDDR_CE=fpga_0_DDR_SDRAM_DDR_CE
PORTDDR_CS_n=fpga_0_DDR_SDRAM_DDR_CS_n
PORTDDR_RAS_n=fpga_0_DDR_SDRAM_DDR_RAS_n
PORTDDR_WE_n=fpga_0_DDR_SDRAM_DDR_WE_n
PORTDDR_DM=fpga_0_DDR_SDRAM_DDR_DM
PORTDDR_DQS=fpga_0_DDR_SDRAM_DDR_DQS
PORTDDR_DQ=fpga_0_DDR_SDRAM_DDR_DQ
PORTDDR_Clk=fpga_0_DDR_SDRAM_DDR_Clk
PORTDDR_Clk_n=fpga_0_DDR_SDRAM_DDR_Clk_n
PORTMPMC_Clk0=sys_clk_s
PORTMPMC_Clk90=DDR_SDRAM_mpmc_clk_90_s
PORTSDMA2_Clk=sys_clk_s
PORTMPMC_Clk_200MHz=clk_200mhz_s
PORTMPMC_Rst=sys_periph_reset
PORTSDMA2_Rx_IntOut=DDR_SDRAM_SDMA2_Rx_IntOutPORTSDMA2_Tx_IntOut=DDR_SDRAM_SDMA2_Tx_IntOutENDQuoted 7 lines
Quoted 7 lines
BEGIN
xps_ll_temac
PARAMETER INSTANCE =TriMode_MAC_GMII
PARAMETERHW_VER= 1.01.a
PARAMETERC_SPLB_CLK_PERIOD_PS= 10000
PARAMETERC_PHY_TYPE= 1
PARAMETERC_NUM_IDELAYCTRL= 4
PARAMETERC_IDELAYCTRL_LOC= IDELAYCTRL_X1Y1-IDELAYCTRL_X1Y3-IDELAYCTRL_X2Y2-IDELAYCTRL_X2Y3
Quoted 95 lines
Quoted 95 lines
PARAMETER
C_TEMAC_TYPE= 1
PARAMETERC_BUS2CORE_CLK_RATIO= 1
PARAMETERC_BASEADDR=0x81c00000
PARAMETERC_HIGHADDR=0x81c0ffffBUS_INTERFACESPLB = plbBUS_INTERFACELLINK0 =TriMode_MAC_GMII_LLINK0PORTGMII_TXD_0=fpga_0_TriMode_MAC_GMII_GMII_TXD_0PORTGMII_TX_EN_0=fpga_0_TriMode_MAC_GMII_GMII_TX_EN_0PORTGMII_TX_ER_0=fpga_0_TriMode_MAC_GMII_GMII_TX_ER_0PORTGMII_TX_CLK_0=fpga_0_TriMode_MAC_GMII_GMII_TX_CLK_0PORTGMII_RXD_0=fpga_0_TriMode_MAC_GMII_GMII_RXD_0PORTGMII_RX_DV_0=fpga_0_TriMode_MAC_GMII_GMII_RX_DV_0PORTGMII_RX_ER_0=fpga_0_TriMode_MAC_GMII_GMII_RX_ER_0PORTGMII_RX_CLK_0=fpga_0_TriMode_MAC_GMII_GMII_RX_CLK_0PORTMII_TX_CLK_0=fpga_0_TriMode_MAC_GMII_MII_TX_CLK_0PORTMDIO_0=fpga_0_TriMode_MAC_GMII_MDIO_0
PORTMDC_0=fpga_0_TriMode_MAC_GMII_MDC_0
PORTTemacPhy_RST_n=fpga_0_TriMode_MAC_GMII_TemacPhy_RST_nPORTGTX_CLK_0=temac_clk_s
PORT REFCLK =clk_200mhz_s
PORTLlinkTemac0_CLK=sys_clk_s
PORTTemacIntc0_Irpt=TriMode_MAC_GMII_TemacIntc0_IrptENDBEGIN
util_bus_split
PARAMETER INSTANCE =SysACE_CompactFlash_util_bus_split_0PARAMETERHW_VER= 1.00.a
PARAMETERC_SIZE_IN= 7
PARAMETERC_LEFT_POS= 0
PARAMETERC_SPLIT= 6
PORT Sig =fpga_0_SysACE_CompactFlash_SysACE_MPA_splitPORT Out1 =fpga_0_SysACE_CompactFlash_SysACE_MPAENDBEGIN
plb_v46
PARAMETER INSTANCE =ppc405_0_iplb1
PARAMETERHW_VER= 1.02.a
PORTPLB_Clk=sys_clk_s
PORTSYS_Rst=sys_bus_reset
ENDBEGIN
plb_v46
PARAMETER INSTANCE =ppc405_0_dplb1
PARAMETERHW_VER= 1.02.a
PORTPLB_Clk=sys_clk_s
PORTSYS_Rst=sys_bus_reset
ENDBEGIN
clock_generator
PARAMETER INSTANCE =clock_generator_0
PARAMETERHW_VER= 2.00.a
PARAMETERC_EXT_RESET_HIGH= 1
PARAMETERC_CLKIN_FREQ= 100000000
PARAMETERC_CLKOUT0_FREQ= 100000000
PARAMETERC_CLKOUT0_BUF= TRUE
PARAMETERC_CLKOUT0_PHASE= 0
PARAMETERC_CLKOUT0_GROUP= DCM0
PARAMETERC_CLKOUT1_FREQ= 100000000
PARAMETERC_CLKOUT1_BUF= TRUE
PARAMETERC_CLKOUT1_PHASE= 90
PARAMETERC_CLKOUT1_GROUP= DCM0
PARAMETERC_CLKOUT2_FREQ= 300000000
PARAMETERC_CLKOUT2_BUF= TRUE
PARAMETERC_CLKOUT2_PHASE= 0
PARAMETERC_CLKOUT2_GROUP= DCM0
PARAMETERC_CLKOUT3_FREQ= 200000000
PARAMETERC_CLKOUT3_BUF= TRUE
PARAMETERC_CLKOUT3_PHASE= 0
PARAMETERC_CLKOUT3_GROUP= NONE
PARAMETERC_CLKOUT4_FREQ= 125000000
PARAMETERC_CLKOUT4_BUF= TRUE
PARAMETERC_CLKOUT4_PHASE= 0
PARAMETERC_CLKOUT4_GROUP= NONE
PORT CLKOUT0 =sys_clk_s
PORT CLKOUT1 =DDR_SDRAM_mpmc_clk_90_s
PORT CLKOUT2 =proc_clk_s
PORT CLKOUT3 =clk_200mhz_s
PORT CLKOUT4 =temac_clk_s
PORT CLKIN =dcm_clk_s
PORT LOCKED =Dcm_all_locked
PORT RST =net_gnd
ENDBEGIN
proc_sys_reset
PARAMETER INSTANCE =proc_sys_reset_0
PARAMETERHW_VER= 2.00.a
PARAMETERC_EXT_RESET_HIGH= 0BUS_INTERFACERESETPPC0 =ppc_reset_bus
PORTSlowest_sync_clk=sys_clk_s
PORTDcm_locked=Dcm_all_locked
PORTExt_Reset_In=sys_rst_s
PORTBus_Struct_Reset=sys_bus_reset
PORTPeripheral_Reset=sys_periph_reset
ENDQuoted 8 lines
Quoted 8 lines
BEGIN
xps_intc
PARAMETER INSTANCE =xps_intc_0
PARAMETERHW_VER= 1.00.a
PARAMETERC_BASEADDR=0x81800000
PARAMETERC_HIGHADDR=0x8180ffffBUS_INTERFACESPLB = plb
PORT Irq = EICC405EXTINPUTIRQ
PORT Intr =RS232_Uart_IP2INTC_Irpt&LEDs_4Bit_IP2INTC_Irpt&
IIC_EEPROM_IIC2INTC_Irpt&SysACE_CompactFlash_SysACE_IRQ&TriMode_MAC_GMII_TemacIntc0_Irpt&DDR_SDRAM_SDMA2_Rx_IntOut&DDR_SDRAM_SDMA2_Tx_IntOutQuoted 4 lines
Quoted 4 lines
END
Quoted 10 lines
Quoted 10 lines
#address-cells = <1>;
#size-cells = <1>;
compatible = "xlnx,virtex";
model = "testing";DDR_SDRAM: memory@0 {device_type= "memory";
reg = < 0 8000000 >;
} ;
chosen {
bootargs = "console=ttyS0,9600 ip=onnfsroot=172.16.40.76:/v2pclients/jhl26,tcp";
Quoted 72 lines
Quoted 72 lines
linux,stdout-path = "/plb@0/serial@83e00000";
} ;
cpus {
#address-cells = <1>;
#cpus = <1>;
#size-cells = <0>;ppc405_0: cpu@0 {
clock-frequency = <11e1a300>;
compatible = "PowerPC,405", "ibm,ppc405";
d-cache-line-size = <20>;
d-cache-size = <4000>;device_type= "cpu";
i-cache-line-size = <20>;
i-cache-size = <4000>;
model = "PowerPC,405";
reg = <0>;
timebase-frequency = <11e1a300>;
xlnx,apu-control = <de00>;
xlnx,apu-udi-1 = <a18983>;
xlnx,apu-udi-2 = <a38983>;
xlnx,apu-udi-3 = <a589c3>;
xlnx,apu-udi-4 = <a789c3>;
xlnx,apu-udi-5 = <a98c03>;
xlnx,apu-udi-6 = <ab8c03>;
xlnx,apu-udi-7 = <ad8c43>;
xlnx,apu-udi-8 = <af8c43>;
xlnx,deterministic-mult = <0>;
xlnx,disable-operand-forwarding = <1>;
xlnx,fastest-plb-clock = "DPLB0";
xlnx,generate-plb-timespecs = <1>;
xlnx,mmu-enable = <1>;
xlnx,pvr-high = <0>;
xlnx,pvr-low = <0>;
} ;
} ;
plb: plb@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "xlnx,plb-v46-1.02.a";
ranges ;IIC_EEPROM: i2c@81600000 {
compatible = "xlnx,xps-iic-2.00.a";
interrupt-parent = <&xps_intc_0>;
interrupts = < 4 2 >;
reg = < 81600000 10000 >;
xlnx,clk-freq = <5f5e100>;
xlnx,family = "virtex4";
xlnx,gpo-width = <1>;
xlnx,iic-freq = <186a0>;
xlnx,scl-inertial-delay = <0>;
xlnx,sda-inertial-delay = <0>;
xlnx,ten-bit-adr = <0>;
} ;LEDs_4Bit: gpio@81400000 {
compatible = "xlnx,xps-gpio-1.00.a";
interrupt-parent = <&xps_intc_0>;
interrupts = < 5 2 >;
reg = < 81400000 10000 >;
xlnx,all-inputs = <0>;
xlnx,all-inputs-2 = <0>;
xlnx,dout-default = <0>;
xlnx,dout-default-2 = <0>;
xlnx,family = "virtex4";
xlnx,gpio-width = <4>;
xlnx,interrupt-present = <1>;
xlnx,is-bidir = <1>;
xlnx,is-bidir-2 = <1>;
xlnx,is-dual = <0>;
xlnx,tri-default = <ffffffff>;
xlnx,tri-default-2 = <ffffffff>;
} ;RS232_Uart: serial@83e00000 {Quoted 8 lines
Quoted 8 lines
compatible = "xlnx,xps-uart16550-2.00.a";
// compatible = "ns16550";device_type= "serial";
interrupt-parent = <&xps_intc_0>;
interrupts = < 6 2 >;
reg = <83e0000010000 >;
current-speed = <d#9600>;
clock-frequency = <d#100000000>; /* addedby jhl */
Quoted 12 lines
Quoted 12 lines
reg-shift = <2>;
xlnx,family = "virtex4";
xlnx,has-external-rclk = <0>;
xlnx,has-external-xin = <0>;
xlnx,is-a-16550 = <1>;
} ;SysACE_CompactFlash: sysace@83600000 {
compatible = "xlnx,xps-sysace-1.00.a";
interrupt-parent = <&xps_intc_0>;
interrupts = < 3 2 >;
reg = < 83600000 10000 >;
xlnx,family = "virtex4";Quoted 8 lines
Quoted 8 lines
xlnx,mem-width = <10>;
} ;TriMode_MAC_GMII: xps-ll-temac@81c00000 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "xlnx,compound";
ethernet@81c00000 {
compatible = "xlnx,xps-ll-temac-1.01.a";
Quoted 2 lines
Quoted 2 lines
device_type= "network";
interrupt-parent =<
&xps_intc_0>;Quoted 3 lines
Quoted 3 lines
interrupts = < 2 2 >;
llink-connected = <&PIM2>;
local-mac-address = [ 02 00 0000 00 01 ];
Quoted 9 lines
Quoted 9 lines
reg = <
81c0000040 >;
xlnx,bus2core-clk-ratio = <1>;
xlnx,phy-type = <1>;
xlnx,phyaddr = <1>;
xlnx,rxcsum = <0>;
xlnx,rxfifo = <1000>;
xlnx,temac-type = <1>;
xlnx,txcsum = <0>;
xlnx,txfifo = <1000>;Quoted 8 lines
Quoted 8 lines
} ;
} ;
mpmc@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "xlnx,mpmc-4.00.a";
PIM2: sdma@84600100 {
compatible = "xlnx,ll-dma-1.00.a";
Quoted 1 line
Quoted 1 line
interrupt-parent =
<
&xps_intc_0>;Quoted 6 lines
Quoted 6 lines
interrupts = < 1 2 0 2 >;
reg = < 84600100 80 >;
} ;
} ;xps_bram_if_cntlr_1: xps-bram-if-cntlr@ffffe000 {
compatible = "xlnx,xps-bram-if-cntlr-1.00.a";
Quoted 28 lines
Quoted 28 lines
reg = <
ffffe0002000 >;
xlnx,family = "virtex4";
} ;xps_intc_0: interrupt-controller@81800000 {
#interrupt-cells = <2>;
compatible = "xlnx,xps-intc-1.00.a";
interrupt-controller ;
reg = < 81800000 10000 >;
xlnx,num-intr-inputs = <7>;
} ;
} ;ppc405_0_dplb1: plb@1 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "xlnx,plb-v46-1.02.a";
ranges ;
} ;
} ;-----Original Message-----
From: Magnus Hjorth [mailto:[email protected]]
Sent: Saturday, March 29, 2008 6:54 AM
To: git
Cc: [email protected]
Subject: Xilinx LLTEMAC driver issuesQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Hi,
I'm having some networking troubles with the Xilinx LLTEMAC driver
from
Quoted 5 lines
Quoted 5 lines
the
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Xilinx Linux git tree (powerpc arch) on an ML403 board. EDK9.2SP2,
xps_ll_temacv1.00.bThe weird thing is, that it sort of half works. It successfully
makes a
Quoted 2 lines
Quoted 2 lines
DHCP
Quoted 1 line
Quoted 1 line
Quoted 1 line
request and gets its IP address. I tried setting up a tftpd server,
and
Quoted 2 lines
Quoted 2 lines
I can
Quoted 1 line
Quoted 1 line
Quoted 1 line
see UDP requests coming in but the response doesn't seem to come
out. I
Quoted 4 lines
Quoted 4 lines
also
Quoted 1 line
Quoted 1 line
Quoted 1 line
tried running a TCP server on the board, and it can see and accept
incoming
Quoted 1 line
Quoted 1 line
Quoted 1 line
connections but after that no data seems to get through. I can ping
out
Quoted 4 lines
Quoted 4 lines
and
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
get around 40% packet loss.
Looking at
/proc/interrupts, I can see both TxDma interrupts andRxDma
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
interrupts. No eth0 interrupts but that seems to be OK judging by
the
Quoted 2 lines
Quoted 2 lines
driver
Quoted 1 line
Quoted 1 line
Quoted 1 line
source comments. Ifconfig shows no collistions, no dropped packets,
no
Quoted 38 lines
Quoted 30 lines
Quoted 24 lines
errors,
Quoted 23 lines
Quoted 10 lines
so the system seems to think that everything is OK.
Clues anyone? I'm starting to run out of ideas...
Best regards,
Magnus--
Quoted 8 lines
Magnus Hjorth, M.Sc.
Omnisys Instruments AB
Gruvgatan 8
SE-421 30 V?stra Fr?lunda, SWEDEN
Phone: +46 31 734 34 09
Fax: +46 31 734 34 29
http://www.omnisys.se_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embeddedQuoted 5 lines
--
Johann Baudy
[email protected]
________________________________
? Windows Live Spaces ??????????????? ???????Quoted 3 lines
--
Johann Baudy
[email protected]________________________________
? Windows Live Spaces ??????????????? ???????Signature · 12 lines
Johann Baudy [email protected] ------------------------------ _______________________________________________ Linuxppc-embedded mailing list [email protected] https://ozlabs.org/mailman/listinfo/linuxppc-embedded End of Linuxppc-embedded Digest, Vol 44, Issue 17 *************************************************