public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Shane Nay <shane@agendacomputing.com>
To: Nicolas Pitre <nico@cam.org>
Cc: mtd@infradead.org
Subject: Re: XIP kernel + MTD polling interest
Date: Tue, 28 Nov 2000 08:53:54 +0000	[thread overview]
Message-ID: <20001128085354.L17376@www.easysolutions.net> (raw)
In-Reply-To: <Pine.LNX.4.30.0011282033210.546-100000@xanadu.gn.com>; from nico@cam.org on Wed, Nov 29, 2000 at 01:44:36 +0000


> 
> How do you deal with calls to schedule()?  If you can't schedule you must
> poll the flash for termination and block all interrupts and say goodbye
> to
> low latency response from the kernel.  If that's not a problem for you
> then
> you might as well get rid of all the state machine code which is there
> only
> for concurent flash access which is impossible in your case since you
> need
> atomic flash operations.  Thus the code can become extremely simple.

Schedule? :-) Obviously can't do it, as you noted.  Yes, latency goes down
the drain, the flash chips are actually pretty fast on write, and okay on
erase.  Basically the plan is to kill any erasing of blocks, and have a
cleanup program that re-does the entire thing in one locked up motion.

> IMHO you are better to fork all relevant functions and have the chance to
> simplify them rather than trying to stretch the existing code which is
> really not designed for such purpose.

Well, we've come up with a better way (well, Mike Klar did from linux-vr)
to take care of weird c code, and allow everything to be normal.  (Special
elf sections, and twiddling with the linker script)  But in terms of
skipping around schedule.., it's not really a big deal.  You're right
though, it is an opportunity to slim down the code, and keep weird macros
out of MTD.  I was just thinking XIP kernel with flash stuff might be
usefull for MTD as a general thing, because people might want to take this
tact with various types of chips, etc.  I'm just going to finish the code,
and let you guys decide whether it's worth it to have it in MTD.  If it's
not worth it to have it as part of the files that are already in MTD, then
I can submit a seperate set of XIP versions of probing, etc.

Thanks,
Shane.



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

  reply	other threads:[~2000-11-28 15:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-28  7:00 XIP kernel + MTD polling interest Shane Nay
2000-11-28 14:08 ` David Woodhouse
2000-11-28  7:22   ` Shane Nay
2000-11-29  1:44 ` Nicolas Pitre
2000-11-28  8:53   ` Shane Nay [this message]
2000-11-28 15:58     ` David Woodhouse
2000-11-28  9:31       ` Shane Nay
2000-11-29 10:19       ` Shane Nay
2000-11-29 17:18         ` David Woodhouse
2000-11-29 11:19           ` Shane Nay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20001128085354.L17376@www.easysolutions.net \
    --to=shane@agendacomputing.com \
    --cc=mtd@infradead.org \
    --cc=nico@cam.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox