From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15156 invoked by alias); 6 May 2005 15:26:56 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 15074 invoked from network); 6 May 2005 15:26:49 -0000 Received: from unknown (HELO web60214.mail.yahoo.com) (209.73.178.117) by sourceware.org with SMTP; 6 May 2005 15:26:49 -0000 Received: (qmail 87302 invoked by uid 60001); 6 May 2005 15:26:48 -0000 Message-ID: <20050506152648.87300.qmail@web60214.mail.yahoo.com> Received: from [128.158.218.46] by web60214.mail.yahoo.com via HTTP; Fri, 06 May 2005 08:26:48 PDT Date: Fri, 06 May 2005 15:26:00 -0000 From: ken king To: ecos-discuss@ecos.sourceware.org In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [ECOS] PowerPC FEC problems X-SW-Source: 2005-05/txt/msg00085.txt.bz2 --- Andrew Lunn wrote: > > > Check the addresses you are using from receive > and > > > transmit buffers. > > > Do you remember to map the virtual addresses > into > > > bus addresses before > > > programming them into the ethernet device? Does > > > memory realy exist at > > > the address? > > > > > > Andrew > > > > > > -- > > > Before posting, please read the FAQ: > > > http://ecos.sourceware.org/fom/ecos > > > and search the list archive: > > > http://ecos.sourceware.org/ml/ecos-discuss > > > > > Yes, I can dump memory around the BDs (Buffer > > descriptors) and they look correct. The memory > > pointed to by the BD can also be dumped and it > > has the same contents as displayed on the > > console if eth debugging is on, i.e looks like the > > bootp frames. I can put a scope on the PHYs > > tx_clock and tx_en -- the clock is running, but > > tx_en is never asserted. > > You can look at the memory from the processor, so > you know you have > the correct virtual address. However, the DMA might > not be using the > virtual address. It will be using some bus address. > Bus addresses can > be different from virtual addresses. Read the > datasheet and see what > it says about the addresses to be used for > programming the DMA engine. > > Andrew > > -- > Before posting, please read the FAQ: > http://ecos.sourceware.org/fom/ecos > and search the list archive: > http://ecos.sourceware.org/ml/ecos-discuss > > I thought that the MMU was off -- the config tool has it grayed out. However the MMU is on. Just for fun, I disabled it. It would appear that physical addr = virtual addr. I still get the bus error after verifying the MMU is disabled before and after. I also checked that the BDs are correct before and after. As for the data book, it doesn’t say much about the FEC DMA – it seems to imply that it is different from the SDMA which got it’s own section. Thanks, kk Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss