From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3vzzpR4CxpzDqHl for ; Fri, 7 Apr 2017 22:46:07 +1000 (AEST) From: Michael Ellerman To: Anshuman Khandual , linuxppc-dev@lists.ozlabs.org Cc: aneesh.kumar@linux.vnet.ibm.com Subject: Re: [PATCH] powerpc/mm: Remove reduntant initmem information from log In-Reply-To: <20170407065311.8599-1-khandual@linux.vnet.ibm.com> References: <20170407065311.8599-1-khandual@linux.vnet.ibm.com> Date: Fri, 07 Apr 2017 22:46:06 +1000 Message-ID: <87o9w8gzch.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Anshuman Khandual writes: > Generic core VM already prints these information in the log > buffer, hence there is no need for a second print. This just > removes the second print from arch powerpc NUMA init path. > > Before the patch: > > $dmesg | grep "Initmem" > > numa: Initmem setup node 0 [mem 0x00000000-0xffffffff] > numa: Initmem setup node 1 [mem 0x100000000-0x1ffffffff] > numa: Initmem setup node 2 [mem 0x200000000-0x2ffffffff] > numa: Initmem setup node 3 [mem 0x300000000-0x3ffffffff] > numa: Initmem setup node 4 [mem 0x400000000-0x4ffffffff] > numa: Initmem setup node 5 [mem 0x500000000-0x5ffffffff] > numa: Initmem setup node 6 [mem 0x600000000-0x6ffffffff] > numa: Initmem setup node 7 [mem 0x700000000-0x7ffffffff] > Initmem setup node 0 [mem 0x0000000000000000-0x00000000ffffffff] > Initmem setup node 1 [mem 0x0000000100000000-0x00000001ffffffff] > Initmem setup node 2 [mem 0x0000000200000000-0x00000002ffffffff] > Initmem setup node 3 [mem 0x0000000300000000-0x00000003ffffffff] > Initmem setup node 4 [mem 0x0000000400000000-0x00000004ffffffff] > Initmem setup node 5 [mem 0x0000000500000000-0x00000005ffffffff] > Initmem setup node 6 [mem 0x0000000600000000-0x00000006ffffffff] > Initmem setup node 7 [mem 0x0000000700000000-0x00000007ffffffff] > > After the patch: > > $dmesg | grep "Initmem" > > Initmem setup node 0 [mem 0x0000000000000000-0x00000000ffffffff] > Initmem setup node 1 [mem 0x0000000100000000-0x00000001ffffffff] > Initmem setup node 2 [mem 0x0000000200000000-0x00000002ffffffff] > Initmem setup node 3 [mem 0x0000000300000000-0x00000003ffffffff] > Initmem setup node 4 [mem 0x0000000400000000-0x00000004ffffffff] > Initmem setup node 5 [mem 0x0000000500000000-0x00000005ffffffff] > Initmem setup node 6 [mem 0x0000000600000000-0x00000006ffffffff] > Initmem setup node 7 [mem 0x0000000700000000-0x00000007ffffffff] > > Signed-off-by: Anshuman Khandual Looks good. > --- > Generic core VM prints the information inside free_area_init_node > function but only when CONFIG_HAVE_MEMBLOCK_NODE_MAP is enabled. > So if there are other PPC platforms which dont enable the config, > we can put the code section inside applicable platform configs > instead of removing it completely. Are there other PPC platforms which don't enable it? ... config PPC ... select HAVE_MEMBLOCK select HAVE_MEMBLOCK_NODE_MAP No. So this should be fine for all PPC. cheers