From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from n10a.bullet.mail.re3.yahoo.com (n10a.bullet.mail.re3.yahoo.com [68.142.236.51]) by ozlabs.org (Postfix) with SMTP id 41AA8DDE09 for ; Tue, 4 Sep 2007 11:37:48 +1000 (EST) Date: Tue, 4 Sep 2007 09:31:24 +0800 (CST) From: xu chen Subject: Please help me with my opb_ethernet driver!!! To: linuxppc-dev@ozlabs.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-518570467-1188869484=:87879" Message-ID: <674410.87879.qm@web15603.mail.cnb.yahoo.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --0-518570467-1188869484=:87879 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit I have used ml403 reference board recently, and now I am porting the opb_ethernet driver downloaded from the net onto the board. I use the EDK9.1 developing environment, and the driver files like "xemac.c" are copied from the EDK drivers lib. My opb_ethernet driver can work in the "No DMA mode", but the speed of FIFO is too slow to transport big files. So I transfer to "Simple DMA mode". I configured the hardware IP core in the EDK, in details, I only changed the DMA mode of opb_ethernet IP core to "Simple DMA", and then synthesize the hardware again. After that I recompile the kernel of the new xparameters.h file. But when I ping the board, in the Recv ISR function, the result of DMA operation from Recv FIFO to kernel memory is always "DMA timed out". I checked the pdf of opb_ethernet and the ipif, but I can't find any problem, especially the manner of DMA. I can only guess that there are some problems in the hardware configuration, so who can help me about that problem? Thank you very much. --------------------------------- 雅虎免费邮箱,全球第一邮箱品牌! --0-518570467-1188869484=:87879 Content-Type: text/html; charset=gb2312 Content-Transfer-Encoding: 8bit I have used ml403 reference board recently, and now I am porting the opb_ethernet driver downloaded from the net onto the board. I use the EDK9.1 developing environment, and the driver files like "xemac.c" are copied from the EDK drivers lib. My opb_ethernet driver can work in the "No DMA mode", but the speed of FIFO is too slow to transport big files. So I transfer to "Simple DMA mode". I configured the hardware IP core in the EDK, in details, I only changed the DMA mode of opb_ethernet IP core to "Simple DMA", and then synthesize the hardware again. After that I recompile the kernel of the new xparameters.h file. But when I ping the board, in the Recv ISR function, the result of DMA operation from Recv FIFO to kernel memory is always "DMA timed out". I checked the pdf of opb_ethernet and the ipif, but I can't find any problem, especially the manner of DMA. I can only guess that there are some problems in the hardware configuration, so who can help me about that problem? Thank you very much.


雅虎免费邮箱,全球第一邮箱品牌! --0-518570467-1188869484=:87879--