[RFC PATCH 14/19] powerpc: allow ioremap within reserved fake ram regions
Albert Herranz
albert_herranz at yahoo.es
Wed Nov 25 04:09:11 EST 2009
Michael Ellerman wrote:
>> Would it be acceptable to create a global var __allow_ioremap_normal_ram that by default would have a value of 0 and would be set _only_ for those platforms needing it?
>>
>> The other solutions I see is:
>> - add support for discontiguous memory to powerpc 32-bits (which is not something that I can look into now)
>> - don't use the precious second 64MB area (which is a waste)
>
> - Implement your own ppc_md.ioremap(), see iseries & cell for example.
>
> Currently that's only called on 64-bit, but you could change that.
>
> If I'm reading your patch right, you should be able to do that check in
> your platform's ioremap() and then call the generic implementation to do
> the actual work.
>
> cheers
I could use ppc_md.ioremap to duplicate ioremap except for the ioremap ram check.
But calling the stock ioremap without modifying it is not possible because it checks and bails out when ioremapping a region marked as ram (even if it's not real ram and it's memreserved).
Is the list of memreserved areas preserved once the kernel is running?
If it is preserved another option would be to unban ioremapping ram if memreserved.
Thanks for your input,
Albert
More information about the Linuxppc-dev
mailing list