From: "Alexey, Korolev" <alexey.korolev@intel.com>
To: Josh Boyer <jwboyer@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [RFC/PATCH] map drivers. DCACHE option for physmap and mphysmap drivers
Date: Fri, 27 Jan 2006 18:31:43 +0300 [thread overview]
Message-ID: <43DA3CDF.5050202@intel.com> (raw)
In-Reply-To: <625fc13d0601260948i555e2c77nca6590d5ba5baa6e@mail.gmail.com>
Josh,
Thanks a lot for your feedback.
Josh Boyer wrote:
> On 1/26/06, Korolev, Alexey <alexey.korolev@intel.com> wrote:
> > Hi All,
> >
> > Some mapping drivers of linux-mtd has feature of cached mapping. This
> > can improve read performance on FLASH significantly .
> > I think adding the option of data cache mapping would also be helpful
> > for physmap and mphysmap drivers.
>
> Is this a read-only caching? I know several architectures and
> hardware configurations that would quickly throw a machine check if
> trying to flush the cache back to flash since they don't support
> bursted writes.
>
In general case not. I've never heard about the such issue. Is there
any way to define has platform flash devices with bursted writes or not?
What architectures have this problem?
> I would recommend adding a dependency on ARM for all of this for now.
> As other architectures are proven to be working, they can be added.
>
Oh. It's a good point. I'll add ARM dependency to Kconfig file. Thanks.
> > +#ifdef CONFIG_MTD_MULTI_PHYSMAP_DCACHE
> > + if (map->inval_cache)
> > + {
> > +#ifdef CONFIG_ARM
> > + map->cached = ioremap_cached(map->phys, map->size);
> > +#else
> > + map->cached = __ioremap(map->phys, map->size,
> > L_PTE_CACHEABLE);
> > +#endif
>
> Gah. The above doesn't work. L_PTE_CACHEABLE seems to be an ARM only
> flag. And it wouldn't work on PPC for example. That version of
> __ioremap makes everything implicitly cached unless _PAGE_NO_CACHED is
> passed in.
>
> As I said before, I would make this an ARM only option for now.
>
> > +#ifdef CONFIG_MTD_PHYSMAP_DCACHE
> > +#ifdef CONFIG_ARM
> > + physmap_map.cached = ioremap_cached(physmap_map.phys,
> > physmap_map.size);
> > +#else
> > + physmap_map.cached = __ioremap(physmap_map.phys, physmap_map.size,
> > L_PTE_CACHEABLE);
> > +#endif
>
> Same issues as in mphysmap.
>
> josh
>
Thanks,
Alexey
next prev parent reply other threads:[~2006-01-27 15:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-26 17:24 [RFC/PATCH] map drivers. DCACHE option for physmap and mphysmap drivers Korolev, Alexey
2006-01-26 17:48 ` Josh Boyer
2006-01-27 15:31 ` Alexey, Korolev [this message]
2006-01-27 19:15 ` Jared Hulbert
2006-01-27 19:51 ` Josh Boyer
2006-01-27 20:47 ` Nicolas Pitre
2006-01-27 22:19 ` Josh Boyer
2006-01-31 11:03 ` Alexey, Korolev
2006-01-27 20:39 ` Nicolas Pitre
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=43DA3CDF.5050202@intel.com \
--to=alexey.korolev@intel.com \
--cc=jwboyer@gmail.com \
--cc=linux-mtd@lists.infradead.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