Skip to contentSkip to conversation

HowTo cache additional address space

DISCUSSION Nicolas Pitre 1 participant 1 message Feb 2, 2005 3 messages not in the archive Memory technology devices (MTD)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20050202134730.GA16215@synertronixx3

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20050202160838.GB28574@synertronixx3

#3 lore raw
Quoted 10 lines · Konstantin Kletschke

Am 2005-02-02 10:30 -0500 schrieb Nicolas Pitre:

Quoted 2 lines

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)

Quoted 7 lines

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