[{"id":1650527,"web_url":"http://patchwork.ozlabs.org/comment/1650527/","msgid":"<e896f10a-5196-1a59-4bae-c3236758797e@linux.vnet.ibm.com>","date":"2017-05-03T11:06:08","subject":"Re: [PATCH] powerpc/mm: Fix mapped range information print during\n\tboot","submitter":{"id":9057,"url":"http://patchwork.ozlabs.org/api/people/9057/","name":"Anshuman Khandual","email":"khandual@linux.vnet.ibm.com"},"content":"On 05/03/2017 03:02 PM, Michael Ellerman wrote:\n> Anshuman Khandual <khandual@linux.vnet.ibm.com> writes:\n> \n>> This is a trivial fix patch regarding mapped ranges in radix MMU\n>> environment during boot. No functional change.\n>>\n>> Before the patch:\n>>\n>> $dmesg | grep Mapped\n>> [    0.000000] Mapped range 0x0 - 0x2000000000 with 0x40000000\n>> [    0.000000] Mapped range 0x200000000000 - 0x202000000000 with 0x40000000\n>>\n>> After the patch:\n>>\n>> $dmesg | grep Mapped\n>> [    0.000000] Mapped range 0x0000000000000000 - 0x0000002000000000 with 1024 MB\n>> [    0.000000] Mapped range 0x0000200000000000 - 0x0000202000000000 with 1024 MB\n> \n> It's a bit better, how about this instead?\n\nYeah this is better, I had tried to fix it in place.","headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org","linuxppc-dev@ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3wHwPV34Npz9rvt\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed,  3 May 2017 21:08:14 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3wHwPV1z6nzDqLs\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed,  3 May 2017 21:08:14 +1000 (AEST)","from ozlabs.org (ozlabs.org [103.22.144.67])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3wHwNJ6FRJzDqCd\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed,  3 May 2017 21:07:12 +1000 (AEST)","from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2])\n\tby bilbo.ozlabs.org (Postfix) with ESMTP id 3wHwNJ5HS5z8sxm\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed,  3 May 2017 21:07:12 +1000 (AEST)","by ozlabs.org (Postfix)\n\tid 3wHwNJ4zpnz9rxl; Wed,  3 May 2017 21:07:12 +1000 (AEST)","from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n\t[148.163.158.5])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3wHwNJ0sfWz9rvt\n\tfor <linuxppc-dev@ozlabs.org>; Wed,  3 May 2017 21:07:11 +1000 (AEST)","from pps.filterd (m0098421.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id\n\tv43B3nhw069587\n\tfor <linuxppc-dev@ozlabs.org>; Wed, 3 May 2017 07:07:05 -0400","from e23smtp02.au.ibm.com (e23smtp02.au.ibm.com [202.81.31.144])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2a7duq8hjt-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@ozlabs.org>; Wed, 03 May 2017 07:07:05 -0400","from localhost\n\tby e23smtp02.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <linuxppc-dev@ozlabs.org> from <khandual@linux.vnet.ibm.com>;\n\tWed, 3 May 2017 21:07:02 +1000","from d23relay06.au.ibm.com (202.81.31.225)\n\tby e23smtp02.au.ibm.com (202.81.31.208) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tWed, 3 May 2017 21:06:59 +1000","from d23av06.au.ibm.com (d23av06.au.ibm.com [9.190.235.151])\n\tby d23relay06.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n\tv43B6p0c66257066\n\tfor <linuxppc-dev@ozlabs.org>; Wed, 3 May 2017 21:06:59 +1000","from d23av06.au.ibm.com (localhost [127.0.0.1])\n\tby d23av06.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id\n\tv43B6QgQ014316\n\tfor <linuxppc-dev@ozlabs.org>; Wed, 3 May 2017 21:06:27 +1000","from [9.78.202.167] ([9.78.202.167])\n\tby d23av06.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id\n\tv43B6Pku013424; Wed, 3 May 2017 21:06:26 +1000"],"Subject":"Re: [PATCH] powerpc/mm: Fix mapped range information print during\n\tboot","To":"Michael Ellerman <mpe@ellerman.id.au>, linuxppc-dev@ozlabs.org","References":"<20170428142445.17615-1-khandual@linux.vnet.ibm.com>\n\t<87o9vauvyk.fsf@concordia.ellerman.id.au>","From":"Anshuman Khandual <khandual@linux.vnet.ibm.com>","Date":"Wed, 3 May 2017 16:36:08 +0530","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101\n\tThunderbird/45.5.1","MIME-Version":"1.0","In-Reply-To":"<87o9vauvyk.fsf@concordia.ellerman.id.au>","Content-Type":"text/plain; charset=windows-1252","Content-Transfer-Encoding":"7bit","X-TM-AS-MML":"disable","x-cbid":"17050311-0004-0000-0000-000001FDC8BA","X-IBM-AV-DETECTION":"SAVI=unused REMOTE=unused XFE=unused","x-cbparentid":"17050311-0005-0000-0000-000009F2AF8D","Message-Id":"<e896f10a-5196-1a59-4bae-c3236758797e@linux.vnet.ibm.com>","X-Proofpoint-Virus-Version":"vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-05-03_09:, , signatures=0","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=0\n\tmalwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam\n\tadjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000\n\tdefinitions=main-1705030213","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"aneesh.kumar@linux.vnet.ibm.com","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"}},{"id":1760867,"web_url":"http://patchwork.ozlabs.org/comment/1760867/","msgid":"<3xjgL21GZpz9t1t@ozlabs.org>","date":"2017-08-31T11:35:53","subject":"Re: powerpc/mm: Fix mapped range information print during boot","submitter":{"id":69509,"url":"http://patchwork.ozlabs.org/api/people/69509/","name":"Michael Ellerman","email":"patch-notifications@ellerman.id.au"},"content":"On Wed, 2017-05-03 at 09:32:35 UTC, Michael Ellerman wrote:\n> diff --git a/arch/powerpc/mm/pgtable-radix.c b/arch/powerpc/mm/pgtable-radix.c\n> index c28165d8970b..519cfef569d1 100644\n> --- a/arch/powerpc/mm/pgtable-radix.c\n> +++ b/arch/powerpc/mm/pgtable-radix.c\n> @@ -8,9 +8,14 @@\n>   * as published by the Free Software Foundation; either version\n>   * 2 of the License, or (at your option) any later version.\n>   */\n> +\n> +#define pr_fmt(fmt) \"radix-mmu: \" fmt\n> +\n> +#include <linux/kernel.h>\n>  #include <linux/sched/mm.h>\n>  #include <linux/memblock.h>\n>  #include <linux/of_fdt.h>\n> +#include <linux/string_helpers.h>\n>  \n>  #include <asm/pgtable.h>\n>  #include <asm/pgalloc.h>\n> @@ -112,10 +117,14 @@ static inline void __meminit print_mapping(unsigned long start,\n>  \t\t\t\t\t   unsigned long end,\n>  \t\t\t\t\t   unsigned long size)\n>  {\n> +\tchar buf[10];\n> +\n>  \tif (end <= start)\n>  \t\treturn;\n>  \n> -\tpr_info(\"Mapped range 0x%lx - 0x%lx with 0x%lx\\n\", start, end, size);\n> +\tstring_get_size(size, 1, STRING_UNITS_2, buf, sizeof(buf));\n> +\n> +\tpr_info(\"Mapped 0x%016lx-0x%016lx with %s pages\\n\", start, end, buf);\n>  }\n>  \n>  static int __meminit create_physical_mapping(unsigned long start,\n\nApplied to powerpc next.\n\nhttps://git.kernel.org/powerpc/c/6deb6b474bda4d2d3fbee066f20561\n\ncheers","headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org","linuxppc-dev@ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjgY43V8Qz9sQl\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 21:45:28 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xjgY42chBzDqXw\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 21:45:28 +1000 (AEST)","from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xjgL247qszDqVg\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu, 31 Aug 2017 21:35:54 +1000 (AEST)","by ozlabs.org (Postfix)\n\tid 3xjgL231xgz9sQl; Thu, 31 Aug 2017 21:35:54 +1000 (AEST)","by ozlabs.org (Postfix, from userid 1034)\n\tid 3xjgL21GZpz9t1t; Thu, 31 Aug 2017 21:35:53 +1000 (AEST)"],"X-powerpc-patch-notification":"thanks","X-powerpc-patch-commit":"6deb6b474bda4d2d3fbee066f20561d3dc7f8b30","In-Reply-To":"<87o9vauvyk.fsf@concordia.ellerman.id.au>","To":"Michael Ellerman <mpe@ellerman.id.au>,\n\tAnshuman Khandual <khandual@linux.vnet.ibm.com>, linuxppc-dev@ozlabs.org","From":"Michael Ellerman <patch-notifications@ellerman.id.au>","Subject":"Re: powerpc/mm: Fix mapped range information print during boot","Message-Id":"<3xjgL21GZpz9t1t@ozlabs.org>","Date":"Thu, 31 Aug 2017 21:35:53 +1000 (AEST)","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"aneesh.kumar@linux.vnet.ibm.com","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"}}]