From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28894 invoked by alias); 7 Sep 2006 11:21:09 -0000 Received: (qmail 28886 invoked by uid 22791); 7 Sep 2006 11:21:08 -0000 X-Spam-Check-By: sourceware.org Received: from njclavin4.bloomberg.net (HELO njclavin4.bloomberg.net) (69.191.228.14) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 07 Sep 2006 11:21:04 +0000 Received: from ns9.bloomberg.com ([160.43.164.52] [160.43.164.52]) by njclavin4.bloomberg.net with ESMTP for ecos-discuss@sources.redhat.com; Thu, 7 Sep 2006 07:21:01 -0400 Received: from ny2570-dr.corp.bloomberg.com ([172.20.193.211]) by ns9.bloomberg.com (8.11.7p1+Sun/8.10.2) with ESMTP id k87BL1w01695 for ; Thu, 7 Sep 2006 07:21:01 -0400 (EDT) Received: from ny2528-dr.corp.bloomberg.com (ny2528-dr [172.20.193.160]) by ny2570-dr.corp.bloomberg.com (8.13.7/8.13.7) with ESMTP id k87BKuHN006870 for ; Thu, 7 Sep 2006 07:20:56 -0400 Received: from lo2525.corp.bloomberg.com ([172.16.16.57]) by ny2528-dr.corp.bloomberg.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 7 Sep 2006 07:20:56 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 07 Sep 2006 11:21:00 -0000 Message-Id: <4B24CC52E8A6EB4A95B414126492987C01616A5A@lo2525.corp.bloomberg.com> From: "Zimman, Chris" To: X-IsSubscribed: yes 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 Subject: RE: [ECOS] JFFS2 Access and interrupts X-SW-Source: 2006-09/txt/msg00038.txt.bz2 Most likely, it's not really a problem with JFFS2 itself, but rather with the underlying flash driver as they're not interrupt safe. eCosPro has newer versions of the flash drivers that are interrupt safe. =20 --Chris -----Original Message----- From: ecos-discuss-owner@ecos.sourceware.org [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Gary Thomas Sent: Wednesday, September 06, 2006 8:32 PM To: Gernot Zankl Cc: ecos-discuss@sources.redhat.com Subject: Re: [ECOS] JFFS2 Access and interrupts Gernot Zankl wrote: > Hi all, >=20 > while writing a file in a jffs2 filesystem (by means of open, write, > close) > my application seems to hang in function write().=20 > After guarding the write access with > HA_DISABLE_INTERRUPTS/HAL_RESTORES_INTERRUPTS=20 > the write accesses worked properly. >=20 > After a short inspection of flash.c (in packages/io/flash/current/src) > it seems that in my port these guards are already present, > placed around the "__anonymizer"-ed flash access functions. >=20 > Is there a general rule, how to handle mutual IRQs and flash access ? > Do I miss something ? > Is there a configuration option, I've forgotten to enable ? There aren't any configuration options for this - it's assumed to work. Can you please explain in more detail exactly what you've done to get things to work? Given that the generic functions (e.g. flash_program) already disable interrupts, I'm a bit confused. >=20 > Kind regards, > Gernot Zankl >=20 > Btw: PowerPC MPC5200B and external flash Spansion S29GL064M Given that the eCos port for the MPC5200 is not public (you got it from Analogue & Micro), it makes sense to ask these questions of A&M, not the general list. --=20 Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss