HowTo cache additional address space
Nicolas Pitre
nico at cam.org
Wed Feb 2 11:28:17 EST 2005
On Wed, 2 Feb 2005, Konstantin Kletschke wrote:
> Am 2005-02-02 10:30 -0500 schrieb Nicolas Pitre:
>
> > For MTD you need to add support for that in your map driver. See the
> > Lubbock map driver for example.
>
> Is maps/xxx.c the only file which has to be adapted? Ok, I found lubbok
> myself and the ioremap.cached stuff in there...
>
> I am curious if only the (succesful)
>
> scb9328_map.cached = (unsigned long)__ioremap(scb9328_map.phys,
> SCB9328_FLASH_SIZE, 0, 0);
> or
> scb9328_map.cached = ioremap_cached(scb9328_map.phys,
> SCB9328_FLASH_SIZE)
>
> does the trick...
The __ioremap(..., 0, 0) is uncached. You need to use the later.
But no, that's not enough. You also need to provide an inval_cache
method.
Nicolas
More information about the linux-mtd
mailing list