linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ARM initrd updates
@ 2017-02-08 11:10 Russell King - ARM Linux
  2017-02-08 11:10 ` [PATCH 1/3] ARM: mm: move initrd init code out of arm_memblock_init() Russell King
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Russell King - ARM Linux @ 2017-02-08 11:10 UTC (permalink / raw)
  To: linux-arm-kernel

Three patches to cleanup and update the ARM initrd handling, after problems
identified by William Helsby.

The first patch merely moves the early initrd code into a separate
function, rather than being bundled up inside arm_memblock_init().

The second patch restructures the initrd code to be cleaner, but with
no functional changes.  We get rid of the repetitive phys_initrd_size
checks, as we can now just "return" from the function.

The third patch changes how we check for overlaps and the region that
we reserve.  Since the kernel deals with pages and not bytes for
allocation, the minimum granule for marking addresses reserved and
later freeing them is one page.  We already adjust the initrd addresses
in free_initrd_mem(), but we fail to mark the partially used pages
entirely reserved.  Add this.

 arch/arm/mm/init.c | 57 +++++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 39 insertions(+), 18 deletions(-)

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-08 11:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-08 11:10 [PATCH 0/3] ARM initrd updates Russell King - ARM Linux
2017-02-08 11:10 ` [PATCH 1/3] ARM: mm: move initrd init code out of arm_memblock_init() Russell King
2017-02-08 11:11 ` [PATCH 2/3] ARM: mm: clean up initrd initialisation Russell King
2017-02-08 11:11 ` [PATCH 3/3] ARM: mm: round the initrd reservation to page boundaries Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).