From: Jochen Schaeuble <psionic@psionic.de>
To: Tobias Otto-Adamczak <toa@indakom.de>
Cc: linux-mtd@lists.infradead.org
Subject: Re: slram and buffer cache
Date: Thu, 12 Dec 2002 21:28:14 +0100 [thread overview]
Message-ID: <20021212202814.GB5027@psionic.de> (raw)
In-Reply-To: <Pine.LNX.4.31.0212112004250.12431-100000@www.optixsoft.de>
Hi,
I haven't used mtdblock for a while now so I'm not absolutely sure if
this is correct. The "cache_size" of the mtdblock driver is initialized
with the erasesize specified in the slram driver (0x10000 if you haven't
changed anything). If you want uncached operation you should set this
value to
(*curmtd)->mtdinfo->erasesize = 0x0; (slram.c line 180).
I had no time to check this but from reading the source I think this is
correct. Please let me know if this works for you. If so it might be a
good idea to make this size configurable.
Greets,
Jochen
On Wed, Dec 11, 2002 at 08:23:02PM +0100, Tobias Otto-Adamczak wrote:
> Hi,
>
> I have a custom board with 32MB SDRAM, 16MB Flash and 512K SRAM here. I
> use the slram driver to access the SRAM (which isn't used otherwise by
> the kernel). I created an 512K ext2 fs image and copied it to the SRAM
> using an mtd char dev. I was able to mount this SRAM area as a mtd block
> device (using mtdblock_ro) and read/write files to the ext2 fs.
>
> My problem is the buffer cache for the block devices. I do not want
> write operations to the SRAM being delayed. What can I do to avoid that
> ? I searched for some hours today but to no avail.
>
> [maybe OT for this list]
> How is this problem solved for "normal" ram disks ?
>
> Regards
> Tobias
>
next prev parent reply other threads:[~2002-12-12 19:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-11 19:23 slram and buffer cache Tobias Otto-Adamczak
2002-12-12 20:28 ` Jochen Schaeuble [this message]
2002-12-13 9:54 ` Tobias Otto-Adamczak
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=20021212202814.GB5027@psionic.de \
--to=psionic@psionic.de \
--cc=linux-mtd@lists.infradead.org \
--cc=toa@indakom.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.