Message ID | 1466994431-6214-2-git-send-email-dennis.chen@arm.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show
Return-Path: <linux-acpi-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2B38460754 for <patchwork-linux-acpi@patchwork.kernel.org>; Mon, 27 Jun 2016 02:27:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19C4C28562 for <patchwork-linux-acpi@patchwork.kernel.org>; Mon, 27 Jun 2016 02:27:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D2AF28566; Mon, 27 Jun 2016 02:27:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4911828563 for <patchwork-linux-acpi@patchwork.kernel.org>; Mon, 27 Jun 2016 02:27:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751808AbcF0C1j (ORCPT <rfc822;patchwork-linux-acpi@patchwork.kernel.org>); Sun, 26 Jun 2016 22:27:39 -0400 Received: from eu-smtp-delivery-143.mimecast.com ([207.82.80.143]:34539 "EHLO eu-smtp-delivery-143.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751788AbcF0C1g convert rfc822-to-8bit (ORCPT <rfc822;linux-acpi@vger.kernel.org>); Sun, 26 Jun 2016 22:27:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=QQep4Cc22PqFc0/tSTqm/TsGQoNKLWb9EOFSXpSMGFc=; b=lewYxfBkKjR7opchFfad4nwZiRdlDzn/RxQSgx71tUGb4ORYUipftNGa0vt3e2avg91AH+2nD/bZIt+A3azdfAuKLRqmB9mGxjcIQTYzbhQatGHtea6oBl4dxqj/xBXP7HxBukdl02G68jFOdAGP7dr8U7BoomQb/7M5qzlR8Go= Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1lrp0015.outbound.protection.outlook.com [213.199.154.15]) (Using TLS) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-30-AwaiEFU9PO-WzbcTxWIs0Q-1; Mon, 27 Jun 2016 03:27:32 +0100 Received: from HE1PR08CA0024.eurprd08.prod.outlook.com (10.161.112.34) by HE1PR08MB0761.eurprd08.prod.outlook.com (10.164.52.143) with Microsoft SMTP Server (TLS) id 15.1.523.12; Mon, 27 Jun 2016 02:27:29 +0000 Received: from DB3FFO11FD024.protection.gbl (2a01:111:f400:7e04::105) by HE1PR08CA0024.outlook.office365.com (2a01:111:e400:5097::34) with Microsoft SMTP Server (TLS) id 15.1.528.16 via Frontend Transport; Mon, 27 Jun 2016 02:27:29 +0000 Received: from nebula.arm.com (217.140.96.140) by DB3FFO11FD024.mail.protection.outlook.com (10.47.217.55) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Mon, 27 Jun 2016 02:27:28 +0000 Received: from dennis-ws.asiapac.arm.com (10.1.2.79) by mail.arm.com (10.1.105.66) with Microsoft SMTP Server id 14.3.294.0; Mon, 27 Jun 2016 03:27:26 +0100 From: Dennis Chen <dennis.chen@arm.com> To: <linux-arm-kernel@lists.infradead.org> CC: <nd@arm.com>, Dennis Chen <dennis.chen@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, Steve Capper <steve.capper@arm.com>, "Ard Biesheuvel" <ard.biesheuvel@linaro.org>, Will Deacon <will.deacon@arm.com>, Mark Rutland <mark.rutland@arm.com>, "Rafael J . Wysocki" <rafael.j.wysocki@intel.com>, Matt Fleming <matt@codeblueprint.co.uk>, <linux-mm@kvack.org>, <linux-acpi@vger.kernel.org>, <linux-efi@vger.kernel.org> Subject: [PATCH v3 2/2] arm64:acpi Fix the acpi alignment exeception when 'mem=' specified Date: Mon, 27 Jun 2016 10:27:11 +0800 Message-ID: <1466994431-6214-2-git-send-email-dennis.chen@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466994431-6214-1-git-send-email-dennis.chen@arm.com> References: <1466994431-6214-1-git-send-email-dennis.chen@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:217.140.96.140; IPV:CAL; SCL:-1; CTRY:GB; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(199003)(189002)(8936002)(2351001)(26826002)(19580405001)(2950100001)(11100500001)(106466001)(48376002)(2906002)(50466002)(246002)(229853001)(8676002)(47776003)(33646002)(356003)(4326007)(87936001)(76176999)(586003)(189998001)(110136002)(50986999)(7846002)(575784001)(6806005)(7696003)(5003600100003)(19580395003)(104016004)(92566002)(50226002)(5003940100001)(36756003)(305945005)(77096005)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR08MB0761; H:nebula.arm.com; FPR:; SPF:Pass; PTR:fw-tnat.cambridge.arm.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DB3FFO11FD024; 1:4+CAWvkvlUUFESgkolDudEPaF02X7gFiRRRaNrtknrNte+tQMbectdfvDt2Z29cXPjMqGHMWfsrTGjaW/iSwPuNdEl4ZSFsM3ia6FRQsYSo2c07ISy08Jq4MQMPKOSrC/gGBERG13jDKIvldYcKH2AiOpIVZQ0HvhzB4UgDm8cEyb7nbsuf7ZHOPuhfg/xvmeWvAHFoqx8bbWHav/LgM0UIPyEIK9OxdmhO7m0rpYGR0Ep+JGSzl6vPjwIdeOFTHY8uA7oZVGdcd6ULpoy1oTk7Cs6bI34mXT+f/caUpChnOpwJO46NpmP8XtN2mmwuxmbZ/sLLJNUynxwuBoBAuKq8gecopiRMDZ6fS0eUWJVwJjEVSudn+gBfzFHm9gF6LiNogKAvdournQOXcsDvOzE7S/XaR3uLCnSueulPT4q9VlnMgaZp6JGquVxvoICO3SyETXtEO/8X8No6+Km20AbLu+t8i/vMzpvy5vtQTO5T2JKULKCfnvBjOb8GBoRQVzNXz5WcGTncI/HJEVoCpXWT83ym+IWG5QVmnY34MGk0gkWetlkqNIszSRohG7nh5PIZSEemRxXfJdAUFiXCqapQH+9ne2PBYO6dHXFqTeP5meR6syJM16pheWYf6yegncVWnVVh1l6o1/ga1j0u9cA== X-MS-Office365-Filtering-Correlation-Id: 4f18d0e9-31bc-46e1-6e93-08d39e32960a X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB0761; 2:qdaLt9aHFFcC6IMAPKxoMP33vqrzhMJ2hXyBpI6xmpPlxhKnHVJkO2qheCmyL/oljbtj9/tXPF0ucukcibdyICz96jWjFO9yS4MvxsB/WxrPHWZVXlielEeMdzGufmkk0apfDMlARBld+nYl8eTZ8qF5S2HYPBFaXMpyd4iUBnMxQwdGslma18vmzq6f+BfP; 3:UIFN6l2vEKptxhVKzXIAOIbLvZxLmYmFrDyS0mKP2mMVhJEknjuSfqIlcHogFwUc5H6hmmTZtfWas+Dcr3Ahs/Qm7R1E6xvcZnlm/57U1e0hsUx6RPOD4PDVh9xxOUt/KRBLOUF+VXJjnq9k8A1XZbUGoFC7UsOE/nUQyKLM4f5tRxrdT3/V2wcdEmD8tVfAkp+8wLB177GZBsYzLdVKMl5jXzbyO2Eoth18brGanLk/aZLbvShwy1S18dzat/hqvsrhuyTcdb212dBR8ZaM6g== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:HE1PR08MB0761; X-Microsoft-Exchange-Diagnostics: 1; HE1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i/HXxyOJvWPupM+4Z99yZjetsB/+DOXuXXzH/MP7ePt; 4:ZuiPWPqA/i4P9vcV0QDyuVCLXLgROab2+yYS6PHSZmhNdDFF5uZZHOzs7Hl0woCirt1sws6m4dOHAmY/Qabi6dvgngHCri09gxZK4Na8IH77bRTDNuYWnoYqrajTWt6o40bzPgDSrE6zPHUC4Xjn98mvwhXoSaDOj2D3z/DM74Sm0nXUc4CXOI6Qb+H7ufgIdATqgoERTHQ4Er8/IXvRgzNuIifKXoPDxoo451LXEdrBY2ttbulA1YImmlst7r67mUqr+kSyh0aB+SwTuVt63dYLLqjJpb3ypV6WW0QjFHIjIQHhs5NHkRUFnjQixBkuLVIKilb4Xygrm6c/jTU9Xuv4IyUI3GCDbd6pbQ67qL242CpH4vXWO3/MPG032OIpQy+Sid9W6Nl6CDzk1M4efrr1RAboMqw8iayuSpc4apE6F3C6D+/ZCNmplnBAuRlvpfC8kiJQcxJpTq9yaxj1ccCQm3bu88TI+ImxfysqPK0NV7gSHD9cvBLkk1/WzGkd7qlWaSWvue85JZ28e/qAxsUY8XKociR49YCSlASU3SSxqYMTZJWhfSpcPXTUA+Lh X-Microsoft-Antispam-PRVS: <HE1PR08MB0761518E5B57A1A7FC21EF48FE210@HE1PR08MB0761.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(9452136761055)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13024025)(13020025)(13013025)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:HE1PR08MB0761; BCL:0; PCL:0; RULEID:; SRVR:HE1PR08MB0761; X-Forefront-PRVS: 09860C2161 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR08MB0761; 23:BsJ8xnbMNqTLWg2goDNseR7h+T/NIzeWHCu6y/jCl?= =?us-ascii?Q?SQirGCDwSmLIQRanWGqaYXeOLB8qXnJjItrE2K7Q5A1a3uOXpLDTX3v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42pnMCacTZCA+d6doFqbvrB0Xc2LStT6AbTpuUdtmQ== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB0761; 20:ghm9hSRs87D8DEf3RGGABIctJ/93kZLb3NXXDGqU04on7Quz6Hv+jxbxBwioCAafDuPe608iWXjlhpXbYG+alSnu6ZsRaObNz3XDzqSrL9tgW1pPBvG5vvZLyzAis05GtXh4cOH/2w4HQIJ5jTL2l+w7imar6MJudWMhAuuuvVk= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2016 02:27:28.9539 (UTC) X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[217.140.96.140]; Helo=[nebula.arm.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR08MB0761 X-MC-Unique: AwaiEFU9PO-WzbcTxWIs0Q-1 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-acpi.vger.kernel.org> X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index d45f862..46edcef 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -226,7 +226,7 @@ void __init arm64_memblock_init(void) * via the linear mapping. */ if (memory_limit != (phys_addr_t)ULLONG_MAX) { - memblock_enforce_memory_limit(memory_limit); + memblock_mem_limit_remove_map(memory_limit); memblock_add(__pa(_text), (u64)(_end - _text)); }
When booting an ACPI enabled kernel with 'mem=x', probably the ACPI data regions loaded by firmware will beyond the limit of the memory, in this case we need to keep those NOMAP regions above the limit while not removing them from memblock, because once a region removed from memblock, the ACPI will think that region is not normal memory and map it as device type memory accordingly. Since the ACPI core will produce non-alignment access when paring AML data stream, hence result in alignment fault upon the IO mapped memory space. For example, below is an alignment exception observed on ARM platform when booting the kernel with 'acpi=on mem=8G': ... [ 0.542475] Unable to handle kernel paging request at virtual address ffff0000080521e7 [ 0.550457] pgd = ffff000008aa0000 [ 0.553880] [ffff0000080521e7] *pgd=000000801fffe003, *pud=000000801fffd003, *pmd=000000801fffc003, *pte=00e80083ff1c1707 [ 0.564939] Internal error: Oops: 96000021 [#1] PREEMPT SMP [ 0.570553] Modules linked in: [ 0.573626] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.7.0-rc3-next-20160616+ #172 [ 0.581344] Hardware name: AMD Overdrive/Supercharger/Default string, BIOS ROD1001A 02/09/2016 [ 0.590025] task: ffff800001ef0000 ti: ffff800001ef8000 task.ti: ffff800001ef8000 [ 0.597571] PC is at acpi_ns_lookup+0x520/0x734 [ 0.602134] LR is at acpi_ns_lookup+0x4a4/0x734 [ 0.606693] pc : [<ffff0000083b8b10>] lr : [<ffff0000083b8a94>] pstate: 60000045 [ 0.614145] sp : ffff800001efb8b0 [ 0.617478] x29: ffff800001efb8c0 x28: 000000000000001b [ 0.622829] x27: 0000000000000001 x26: 0000000000000000 [ 0.628181] x25: ffff800001efb9e8 x24: ffff000008a10000 [ 0.633531] x23: 0000000000000001 x22: 0000000000000001 [ 0.638881] x21: ffff000008724000 x20: 000000000000001b [ 0.644230] x19: ffff0000080521e7 x18: 000000000000000d [ 0.649580] x17: 00000000000038ff x16: 0000000000000002 [ 0.654929] x15: 0000000000000007 x14: 0000000000007fff [ 0.660278] x13: ffffff0000000000 x12: 0000000000000018 [ 0.665627] x11: 000000001fffd200 x10: 00000000ffffff76 [ 0.670978] x9 : 000000000000005f x8 : ffff000008725fa8 [ 0.676328] x7 : ffff000008a8df70 x6 : ffff000008a8df70 [ 0.681679] x5 : ffff000008a8d000 x4 : 0000000000000010 [ 0.687027] x3 : 0000000000000010 x2 : 000000000000000c [ 0.692378] x1 : 0000000000000006 x0 : 0000000000000000 ... [ 1.262235] [<ffff0000083b8b10>] acpi_ns_lookup+0x520/0x734 [ 1.267845] [<ffff0000083a7160>] acpi_ds_load1_begin_op+0x174/0x4fc [ 1.274156] [<ffff0000083c1f4c>] acpi_ps_build_named_op+0xf8/0x220 [ 1.280380] [<ffff0000083c227c>] acpi_ps_create_op+0x208/0x33c [ 1.286254] [<ffff0000083c1820>] acpi_ps_parse_loop+0x204/0x838 [ 1.292215] [<ffff0000083c2fd4>] acpi_ps_parse_aml+0x1bc/0x42c [ 1.298090] [<ffff0000083bc6e8>] acpi_ns_one_complete_parse+0x1e8/0x22c [ 1.304753] [<ffff0000083bc7b8>] acpi_ns_parse_table+0x8c/0x128 [ 1.310716] [<ffff0000083bb8fc>] acpi_ns_load_table+0xc0/0x1e8 [ 1.316591] [<ffff0000083c9068>] acpi_tb_load_namespace+0xf8/0x2e8 [ 1.322818] [<ffff000008984128>] acpi_load_tables+0x7c/0x110 [ 1.328516] [<ffff000008982ea4>] acpi_init+0x90/0x2c0 [ 1.333603] [<ffff0000080819fc>] do_one_initcall+0x38/0x12c [ 1.339215] [<ffff000008960cd4>] kernel_init_freeable+0x148/0x1ec [ 1.345353] [<ffff0000086b7d30>] kernel_init+0x10/0xec [ 1.350529] [<ffff000008084e10>] ret_from_fork+0x10/0x40 [ 1.355878] Code: b9009fbc 2a00037b 36380057 3219037b (b9400260) [ 1.362035] ---[ end trace 03381e5eb0a24de4 ]--- [ 1.366691] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b With 'efi=debug', we can see those ACPI regions loaded by firmware on that board as: [ 0.000000] efi: 0x0083ff185000-0x0083ff1b4fff [Reserved | | | | | | | | |WB|WT|WC|UC]* [ 0.000000] efi: 0x0083ff1b5000-0x0083ff1c2fff [ACPI Reclaim Memory| | | | | | | | |WB|WT|WC|UC]* [ 0.000000] efi: 0x0083ff223000-0x0083ff224fff [ACPI Memory NVS | | | | | | | | |WB|WT|WC|UC]* This patch is trying to address the above issue by only keeping those NOMAP regions instead of removing all above limit from memory memblock. Signed-off-by: Dennis Chen <dennis.chen@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Steve Capper <steve.capper@arm.com> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Will Deacon <will.deacon@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Cc: Matt Fleming <matt@codeblueprint.co.uk> Cc: linux-mm@kvack.org Cc: linux-acpi@vger.kernel.org Cc: linux-efi@vger.kernel.org --- arch/arm64/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)