Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753945AbcLIOwW (ORCPT ); Fri, 9 Dec 2016 09:52:22 -0500 Received: from mail-by2nam01on0061.outbound.protection.outlook.com ([104.47.34.61]:21701 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751783AbcLIOwU (ORCPT ); Fri, 9 Dec 2016 09:52:20 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Robert.Richter@cavium.com; Date: Fri, 9 Dec 2016 15:51:52 +0100 From: Robert Richter To: Yisheng Xie CC: Catalin Marinas , Will Deacon , Ard Biesheuvel , David Daney , Mark Rutland , Hanjun Guo , , Subject: Re: [PATCH v2] arm64: mm: Fix memmap to be initialized for the entire section Message-ID: <20161209145152.GA14257@rric.localdomain> References: <1480530091-1092-1-git-send-email-rrichter@cavium.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [92.229.93.144] X-ClientProxiedBy: AM4PR01CA0011.eurprd01.prod.exchangelabs.com (10.164.74.149) To BL2PR07MB2339.namprd07.prod.outlook.com (10.167.101.17) X-MS-Office365-Filtering-Correlation-Id: fedd4941-5de1-4efb-36e6-08d42042f7f8 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BL2PR07MB2339; X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2339;3:1+PWRUVvbsg48Hl7nQRtDA4inuzfyZQ/0Sf1r1KbuZd3w0DW9OfwFyMbx3oh3hSv1YsO/4nM6D6KYb08q7SqfpSg3WBp66yDXeFJqnov2til9JyaYwKOeQEsDB7+0ApBSHGkyEhkza1U9vcmMXfTYekktyRbK8ltAhEOswoj5x7DcP3L7R8UMFOAwrG4vymxWQEujdo1MEl5XAt17/fqSIrYOZMBCjTHtdZZi1JmDNdtRBknjurQjfPB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T4Prv4lYuORYWuI/xKVy1TO2Ucl32GH/A17lYegyQpyPz3gK;20:/BQpukO/Mtg6qRZLB0WdwizeAoZJppqijmGMnrO8iYEWdI7tF/MMgDgvul7ERmpW5Le+WnBt+dJRPRYxiK49/4lZqQu91HBLETa/0okeRoXQCiQUCWo8GLq3uzbWI8lFDBTHOx6ubm3LBL/O9nEzfCZowy40OfZF5SnxkHDGT5JnJii2Vua45X/cjnCruwQxATZ/5BKmUuRvM/bCj9BdkeAjIKu4JD4+mmklFC3HHMEiwmQlhRAQou4yRwVc+kEEHqPe3rT04bCjYTeXMTlwBIivEli8X4IinKXpndJkqFFP0Pzd5CJtQ7XCAG+s8cizzdEzVDpcaSIif/6sK9jRAGyPGQ1u3AagLQGA5+4a0y03tAnMubk+2LMpDqnRsLfCBTljvAUFxPQUST+ZVVCcRoPuFGaUrqiW+lc12iZWtmP/DUgeIz/VUHgUv0a5BE8+8J8mrooRiAFMJqTJRBIwTpoKtA+3ZJta3g5oHeQUPDM8MTVlelfLzVbasIVDoZUT X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123555025)(20161123562025)(20161123564025)(20161123558021)(20161123560025)(6072148);SRVR:BL2PR07MB2339;BCL:0;PCL:0;RULEID:;SRVR:BL2PR07MB2339; X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2339;4:iWyOIGl+4L04rlSwqLi4PTzohK1ezQr7NNGoFVtplIFUHgToWsUJhjtgN1lWZh4BRJWvPrSdZq5eRZMlc3YZr9GNO8wu+Sv/7JhAQM1G7WV+9CfQoFD8QaesRz6A5+bmuzc2OwNdFioMLTilxsr401+oJZ6/FztlHj1bhcE40fw4R8E3cP2q2q178d6dcHxeDtK+ilY364QINYl06IHvHTKp2ePI1vv2PNc1gl7tsFgIMcNqBvBCJeGQ83sXEDVqyiR9qEGvSDvDAX91/iEtM0n1RUNea2lHEaP4+e8KH2TZ9rp1swvvzeqIpnJn0Wyz3Wehxierch241WEwqhT2/NFJfOW/6qQBi/kbOG/joDqBNEbK/MOIKFEMzeLhBzF2QGjkIIwEFbcmLbiAiNhqhCCIjVu3yIrEC85Jo0lAMvFwndVLWoWRPscVDAPFcz1xo9PrxroYDZkzwVNmA3i2nry7fA/ZMtXRT0NDhaGOV00xkebb6w2bvDgqha6Z5+4oPeq5uEiw1LryPgSWQVRszrRH5mYg3toeerwHm2B58WiJOyDJYWqBj6O5UzUABsda/5n7Dqi8/p7xSoHbKlDvhR1hrbpiEilQrsdOdkTppRM= X-Forefront-PRVS: 015114592F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(7916002)(39840400002)(39850400002)(39450400003)(39410400002)(199003)(189002)(24454002)(50466002)(229853002)(68736007)(66066001)(110136003)(46406003)(97756001)(2950100002)(83506001)(6916009)(33656002)(47776003)(2906002)(9686002)(38730400001)(6506006)(50986999)(4001350100001)(54356999)(4326007)(76176999)(1076002)(8676002)(6666003)(81156014)(189998001)(81166006)(305945005)(101416001)(7736002)(106356001)(6116002)(3846002)(42186005)(105586002)(86362001)(23726003)(97736004)(5660300001)(92566002)(733004)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2PR07MB2339;H:rric.localdomain;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR07MB2339;23:VbfMTOMjqxX+HnbIrp/vHuDT2KDNdLX+omjLbEFfT?= =?us-ascii?Q?wI7chY5JynHW8cuksSF5STKWgE8gGbZx99PpFQU+nWFm6NOa1lS+q+KkdwM8?= =?us-ascii?Q?DAHBGR+lkuiwESUnLFnjWV5qI0+AtI34mIkDxZ1hSxAVZCw43GVD/ODYxIT+?= =?us-ascii?Q?6qCHnh3avhIaKnHGZT5OmBdhDl6Hies3Ea5h5l0Um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ATr1YYDY2lToAvnmr4FW777JD84S2CpuJ4TbQJQF8LbsJppK?= =?us-ascii?Q?xjMJ0g30ckxn1EvStGX8814BEtwKYwu9pbGuvS365SkSyRxAUOhURgs1NmjL?= =?us-ascii?Q?hw6JrBd29MXZS4ngGE8QYBqmBrZrnWR+bbSSKwGMdcplCdg5d04lyzIR+hO+?= =?us-ascii?Q?FihspWcvxJrJgHE8tFY4rK9lDrX5gMYFiORVZAL?= X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2339;6:AXiO9Zj8K5VEbZbnfq3Th0EJ5mNWlT0mJ60ZZr+wakj+hHAvinXRwfN0KwT0jFbp3iqyqftCbgB6WY5hoDmZ8VAMNeJ6PNBjbHFF3frtAjnrrhHqTuhP9Vy+n6eFpYB/vDI98cnXMWm3njtXkPrE1UEZL4aJJhUywVfLf/LfDbh9/IYMHoMtptqlhEmTzM0jy2wj8U4tbNLQFKpM4ojs/f+dbZ3TLbI2NkV2qEtHbQ79T8QNWJJHdD4eXg44EfguKKBL1gvFzC08WMvELm5z0qwjVqiprVZUaCDi8IEOeD74mY7NvmllIju23Ev6FdsjUE8ZfJQCOlO5Pl7sDE1TEk1P8zpbsiYD7lrQQLVBJJp75y5yypTAy4pMEQuvDt6pA4zxGCgu6/Gnu0R6MTnyAi0ilz+FVLdBlGexOPfQCfCrcrta0NWuKqrM1PI/iYOiKBXBgRreuixuuGHgR7hmIA==;5:hX9GE8PgMLcClCcW+pGvRJsYmtxl+q/waj54+TkhS1/dy8swSIGUUHbGTJ2Q2OlVBPCZ73R5h8eR4n7rPgFVua3rwTyBuOe2d09FZmtah8HTYjpdhktpphP2mivuu1+dqdhiN1IQabq9gV2Az3F6Xw==;24:krO20nAn+3MS0uCLUVuk2y//gvFABB2ZH1VKnAPNn0PA2RQwQP7NTDe+fsXq58m4FuDvodPak+AWDP54Ej73xa2xWAqphvEA9NgeDUXFPfg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2339;7:qHObB5QLLUXIyKUfIwUEO0C+jN7UhbKTIBXmlpmxELLlVr0cvNE2gbHCcO+VShwxJVMvD3ick9IFgTn0Hjq87yORck2DSrGC1YuaMvh8s+BX5RYP0adMaHZy7YeqmL2jh3gKnXCzVKdSiYqdU+bpRRyQFGIpX++hAx2nbSHIPhXpcOajvxRN4CkRrYNXH5zCjrah/htK1yF7zrMPCJqhY432IG+GHZOcHW1W/bal77ap3lHNjErsMOtut//P0eQ22vYrf9Rw/HDHYNI6ggO/yHxb82oHTc9YTwk5VSAaCrCD6TRrnzURFwlgUNLvDVuZuSI9svFexkh7PwoWkDDTmRm3TGXXC6YLBjff0+vfAAe2qRht6K7EbrmCps6ZoMTcX6o/kknAifmHHKwfoK8EInOgsMq3MuSpS42Nt4f7/1OpLxKJNKdP6POhlXUkXkEgjY9u8+Zqj2xrtTFLwszHnw== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2016 14:52:15.2691 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR07MB2339 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3101 Lines: 60 On 09.12.16 20:14:24, Yisheng Xie wrote: > We have merged your patch to 4.9.0-rc8, however we still meet the similar problem > on our D05 board: I assume you can reliable trigger the bug. Can you add some debug messages that show the pfn number, node id, memory range. Also, add to kernel parameters: memblock=debug efi=debug loglevel=8 mminit_loglevel=4 We need the mem layout detected by efi and the memblock regions. This should be in the full boot log then. Thanks, -Robert > ----------------- > [ 5.081971] ------------[ cut here ]------------ > [ 5.086668] kernel BUG at mm/page_alloc.c:1863! > [ 5.091281] Internal error: Oops - BUG: 0 [#1] SMP > [ 5.096159] Modules linked in: > [ 5.099265] CPU: 61 PID: 1 Comm: swapper/0 Not tainted 4.9.0-rc8+ #58 > [ 5.105822] Hardware name: Huawei Taishan 2280 /D05, BIOS Hisilicon D05 UEFI 16.08 RC1 12/08/2016 > [ 5.114860] task: fffffe13f23d7400 task.stack: fffffe13f66f8000 > [ 5.120903] PC is at move_freepages+0x170/0x180 > [ 5.125514] LR is at move_freepages_block+0xa8/0xb8 > [ 5.130479] pc : [] lr : [] pstate: 200000c5 > [ 5.138008] sp : fffffe13f66fb910 > [ 5.141375] x29: fffffe13f66fb910 x28: 00000000ffffff80 > [ 5.146784] x27: fffffdff800b0000 x26: fffffe13fbf62b90 > [ 5.152193] x25: 000000000000000a x24: fffffdff800b0020 > [ 5.157598] x23: 0000000000000000 x22: fffffdff800b0000 > [ 5.163006] x21: fffffdff800fffc0 x20: fffffe13fbf62680 > [ 5.168412] x19: fffffdff80080000 x18: 000000004c4d6d26 > [ 5.173820] x17: 0000000000000000 x16: 0000000000000000 > [ 5.179226] x15: 000000005c589429 x14: 0000000000000000 > [ 5.184634] x13: 0000000000000000 x12: 00000000fe2ce6e0 > [ 5.190039] x11: 00000000bb5b525b x10: 00000000bb48417b > [ 5.195446] x9 : 0000000000000068 x8 : 0000000000000000 > [ 5.200854] x7 : fffffe13fbff2680 x6 : 0000000000000001 > [ 5.206260] x5 : fffffc0008e12328 x4 : 0000000000000000 > [ 5.211667] x3 : fffffe13fbf62680 x2 : 0000000000000000 > [ 5.217073] x1 : fffffe13fbff2680 x0 : fffffe13fbf62680 > [...] > [ 5.768991] [] move_freepages+0x170/0x180 > [ 5.774664] [] move_freepages_block+0xa8/0xb8 > [ 5.780691] [] __rmqueue+0x494/0x5f0 > [ 5.785921] [] get_page_from_freelist+0x5ec/0xb58 > [ 5.792302] [] __alloc_pages_nodemask+0x144/0xd08 > [ 5.798687] [] alloc_page_interleave+0x64/0xc0 > [ 5.804801] [] alloc_pages_current+0x108/0x168 > [ 5.810920] [] atomic_pool_init+0x78/0x1cc > [ 5.816680] [] arm64_dma_init+0x3c/0x44 > [ 5.822180] [] do_one_initcall+0x44/0x138 > [ 5.827853] [] kernel_init_freeable+0x1ec/0x28c > [ 5.834060] [] kernel_init+0x18/0x110 > [ 5.839378] [] ret_from_fork+0x10/0x20 > [ 5.844785] Code: 9108a021 9400afc5 d4210000 d503201f (d4210000) > [ 5.851024] ---[ end trace 3382df1ae82057db ]---