From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15978 invoked by alias); 29 Jun 2005 11:13:32 -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 15947 invoked by uid 22791); 29 Jun 2005 11:13:26 -0000 Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 29 Jun 2005 11:13:26 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1DnaQ3-0001WI-00; Wed, 29 Jun 2005 13:07:51 +0200 Date: Wed, 29 Jun 2005 11:13:00 -0000 To: Arnaud Chataignier Cc: "'Hook, James'" , ecos-discuss@sources.redhat.com Message-ID: <20050629110751.GE5563@lunn.ch> Mail-Followup-To: Arnaud Chataignier , "'Hook, James'" , ecos-discuss@sources.redhat.com References: <01ce01c57c97$d6d275b0$0100a8c0@ArnaudC> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01ce01c57c97$d6d275b0$0100a8c0@ArnaudC> User-Agent: Mutt/1.5.9i From: Andrew Lunn Subject: Re: [ECOS] RE : [ECOS] possible fix for eth_drv_recv blocking DSR X-SW-Source: 2005-06/txt/msg00288.txt.bz2 On Wed, Jun 29, 2005 at 12:46:43PM +0200, Arnaud Chataignier wrote: > James, > > As you had no answer and I know it, I will try to help. > > There should be no DSR in an Ethernet driver device. Your ISR should > only ask for a DSR call. The DSR is handled in the IO ethernet part, not > in the device driver. > > The IO ethernet DSR only triggers the execution of the Network alarm > thread, which then calls your ethernet driver 'deliver' function. Your > deliver function is thus called from a thread, and there is no interrupt > lock/unlock to be done in cyg_splx and spl_any. I think the problem stems from a conflict in the documentation. packages/io/eth/current/doc/driver_doc says you should be doing it from the DSR. The sgml documentation says something different and describes what you say. The sgml documentation is correct. I will remove the driver_doc which is now old and wrong. 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