Thread (28 messages) 28 messages, 5 authors, 2021-02-01

Re: [PATCH v15 09/10] arm64: Call kmalloc() to allocate DTB buffer

From: Thiago Jung Bauermann <hidden>
Date: 2021-02-01 19:02:47
Also in: linux-devicetree, linux-integrity, linuxppc-dev, lkml

Joe Perches [off-list ref] writes:
On Thu, 2021-01-28 at 00:52 -0300, Thiago Jung Bauermann wrote:
quoted
The problem is that this patch implements only part of the suggestion,
which isn't useful in itself. So the patch series should either drop
this patch or consolidate the FDT allocation between the arches.

I just tested on powernv and pseries platforms and powerpc can use
vmalloc for the FDT buffer.
Perhaps more sensible to use kvmalloc/kvfree.
That's true. Converting both arm64 to powerpc to kvmalloc/kvfree is a
good option. I don't think it's that much better though, because
kexec_file_load() is called infrequently and doesn't need to be fast so
the vmalloc() overhead isn't important in practice.

-- 
Thiago Jung Bauermann
IBM Linux Technology Center

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help