Thomas, Yes, Michael points out the hardware parameters that are needed to enable SGDMA along with DRE (to allow unaligned packets) and checksum offload. It also helps the queuing if the FIFOs in the hardware (Tx/Rx and IPIF) are deep to handle fast frame rates. And finally, better performance if jumbo frames are enabled. Once SGDMA is tuned (e.g., number of buffer descriptors, interrupt coalescing) and set up, the PPC is not involved in the data transfers - only in the setup and interrupt handling.
With a 300Mhz system we saw about 730Mbps Tx with TCP on 2.4.20 (MontaVista Linux) and about 550Mbps Tx with TCP on 2.6.10 (MontaVista again) - using netperf w/ TCP_SENDFILE option. We didn't investigate the difference between 2.4 and 2.6. -Rick -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Galassi Sent: Tuesday, December 05, 2006 11:42 AM To: Thomas Denzinger Cc: [email protected] Subject: Re: Speed of plb_temac 3.00 on ML403 >My question is now: Has anybody deeper knowledge how ethernet and sgDMA >works? How deep is the PPC involved in the data transfer? Or does the >Temac-core handle the datatransfer to DDR-memory autonomous? Thomas, If you cut & pasted directly from my design you may be running without DMA, which in turn implies running without checksum offload and DRE. The plb_temac shrinks to about half it's size this way, but if you're performance bound you probably want to turn DMA back on in your mhs file: PARAMETER C_DMA_TYPE = 3 PARAMETER C_INCLUDE_RX_CSUM = 1 PARAMETER C_INCLUDE_TX_CSUM = 1 PARAMETER C_RX_DRE_TYPE = 1 PARAMETER C_TX_DRE_TYPE = 1 PARAMETER C_RXFIFO_DEPTH = 32768 You'll have to regenerate the xparameters file too if you make these changes (in xps: Software -> Generate Libraries and BSPs). There may also be issues with the IP stack in the 2.4 linux kernels. If you have the option, an experiment with at 2.6 stack would be ammusing. -michael _______________________________________________ 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-embedded
