powerpc/kvm/cma: Improve kernel log during boot
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Mon, 13 Jul 2020 15:07:49 +0000 (20:37 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jul 2020 11:09:37 +0000 (21:09 +1000)
Current kernel gives:

[    0.000000] cma: Reserved 26224 MiB at 0x0000007959000000
[    0.000000] hugetlb_cma: reserve 65536 MiB, up to 16384 MiB per node
[    0.000000] cma: Reserved 16384 MiB at 0x0000001800000000

With the fix

[    0.000000] kvm_cma_reserve: reserving 26214 MiB for global area
[    0.000000] cma: Reserved 26224 MiB at 0x0000007959000000
[    0.000000] hugetlb_cma: reserve 65536 MiB, up to 16384 MiB per node
[    0.000000] cma: Reserved 16384 MiB at 0x0000001800000000

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200713150749.25245-2-aneesh.kumar@linux.ibm.com
arch/powerpc/kvm/book3s_hv_builtin.c

index 7cd3cf3..073617c 100644 (file)
@@ -113,7 +113,7 @@ void __init kvm_cma_reserve(void)
 
        selected_size = (selected_size * kvm_cma_resv_ratio / 100) << PAGE_SHIFT;
        if (selected_size) {
-               pr_debug("%s: reserving %ld MiB for global area\n", __func__,
+               pr_info("%s: reserving %ld MiB for global area\n", __func__,
                         (unsigned long)selected_size / SZ_1M);
                align_size = HPT_ALIGN_PAGES << PAGE_SHIFT;
                cma_declare_contiguous(0, selected_size, 0, align_size,