Delaying the device inventory detection time
Ryan,
Why isn't alloc_bootmem or alloc_bootmem_pages good enough? I already restructured the boot sequence a while back to allow for that.
The only problem I see with using those routines is that it is a little harder to free up memory allocated with those routines once the memory subsystem is fully initialized, but if you are only dynamically allocating, without a need to free the memory you should be able to use those routines without having to do any restructuring.
John
Quoted 2 lines · John Marvin
Why isn't
alloc_bootmemoralloc_bootmem_pagesgood enough? I already restructured the boot sequence a while back to allow for that.
I don't see the need to use bootmem for this. We can manage just fine without the devices until after kmalloc starts up.
Signature · 1 line
Revolutions do not require corporate support.
John,
Willy and I have been looking over the current boot sequence and did not see any reason why the device detection could not be delayed until main memory had been setup. The only special case looked like the cpu driver, and upon further investigation, all the cpu related information was gathered via pdc calls. I remember our converstation about using bootmem and regulard kmalloc'd memory with a flag to detect which type of memory was used, but delaying the device detection until memory was initialized
seems like a cleaner solution. Are there cases where this scheme will
not work? Like with SMP kernels? Newer hardware (like superdome), etc?
Thanks for your feedback John, if this patch is not going to work, then we need to restructure the design of the iotree to not depend upon this patch!
- Ryan
Quoted 20 lines · John Marvin
Ryan,
Why isn't
alloc_bootmemoralloc_bootmem_pagesgood enough? I already restructured the boot sequence a while back to allow for that.The only problem I see with using those routines is that it is a little harder to free up memory allocated with those routines once the memory subsystem is fully initialized, but if you are only dynamically allocating, without a need to free the memory you should be able to use those routines without having to do any restructuring.
John
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/cgi-bin/mailman/listinfo/parisc-linux