From patchwork Thu Jul 14 05:43:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dennis Chen X-Patchwork-Id: 9229007 Return-Path: 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 E17FA607D0 for ; Thu, 14 Jul 2016 05:45:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D299127FA9 for ; Thu, 14 Jul 2016 05:45:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6EA027FE4; Thu, 14 Jul 2016 05:45:24 +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 2276A27FA9 for ; Thu, 14 Jul 2016 05:45:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751327AbcGNFpX (ORCPT ); Thu, 14 Jul 2016 01:45:23 -0400 Received: from eu-smtp-delivery-143.mimecast.com ([146.101.78.143]:43019 "EHLO eu-smtp-delivery-143.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751239AbcGNFpV convert rfc822-to-8bit (ORCPT ); Thu, 14 Jul 2016 01:45:21 -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=HzHsZaU1CxpFMWVzitgvQAAtKPOSpKWFEALhNnJYEhI=; b=YmkdoSyhrP6VEV62SLMw24HcM7TgZ/Uvt5gio0WUo8+nhuyiekqIGGmy2t/vZcYQubY2H7R17LP7zkd+yRyTJAjen1sLCe1F16G96K01g0pQvVhLQMHCrmEzfSd6IFDDjXFWxsW3nkUJOBFvnxxjUdfomtd5g1jWeUu1CMwozr4= Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-ve1eur02lp0056.outbound.protection.outlook.com [213.199.154.56]) (Using TLS) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-61-S28sa0-AP4Gmmp61uzM2sw-1; Thu, 14 Jul 2016 06:45:17 +0100 Received: from AM3PR08CA0012.eurprd08.prod.outlook.com (10.160.207.150) by HE1PR08MB0667.eurprd08.prod.outlook.com (10.163.179.13) with Microsoft SMTP Server (TLS) id 15.1.539.14; Thu, 14 Jul 2016 05:45:14 +0000 Received: from AM1FFO11FD040.protection.gbl (2a01:111:f400:7e00::123) by AM3PR08CA0012.outlook.office365.com (2a01:111:e400:8840::22) with Microsoft SMTP Server (TLS) id 15.1.534.14 via Frontend Transport; Thu, 14 Jul 2016 05:45:14 +0000 Received: from nebula.arm.com (217.140.96.140) by AM1FFO11FD040.mail.protection.outlook.com (10.174.64.229) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Thu, 14 Jul 2016 05:45:14 +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; Thu, 14 Jul 2016 06:45:06 +0100 From: Dennis Chen To: CC: , , , , , , , , , , , , , , , , , , Subject: [PATCH v6 2/2] arm64:acpi Fix the acpi alignment exception when 'mem=' specified Date: Thu, 14 Jul 2016 13:43:56 +0800 Message-ID: <1468475036-5852-3-git-send-email-dennis.chen@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1468475036-5852-1-git-send-email-dennis.chen@arm.com> References: <1468475036-5852-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)(104016004)(189998001)(76176999)(48376002)(77096005)(33646002)(26826002)(19580405001)(11100500001)(19580395003)(50226002)(586003)(92566002)(5003940100001)(8936002)(8676002)(50466002)(246002)(50986999)(6806005)(106466001)(2950100001)(47776003)(2351001)(229853001)(7846002)(5003600100003)(86362001)(7696003)(87936001)(110136002)(36756003)(575784001)(305945005)(356003)(4326007)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR08MB0667; H:nebula.arm.com; FPR:; SPF:Pass; PTR:fw-tnat.cambridge.arm.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11FD040; 1:ZFjWgfrGxEh6Iqzs2/uU3EnUuygwiaFsE2kfXQ3rXTmfvlnxb7hg8jBXYRLgbbzZPb/5/hz7BHeO1cMugoY2D1xCKcYj9EKSqt2k3nEpg3sVrUjrGsSf9GOz8Snr8E032H8UjkxyucEWnQ2A785zpJ9sVHrVFJdJFDIbT175vQIy8KBfQ8iZYYsqW3QKxSnGKCcThNpVfTDjjMFev84ZYD6dANhAA5lYgSszIIUQOXsgF5oe9ECGqauVW1oBFtyuCyR/OoWgtV9+tQjgXNi9NEivDsU4J6RXt2s4d2GwSXQTInMrLtLnD67yV2XBKCTl6+CQHN8h+sAJCu9REOimYdNyiRFZ17Pc6VJbzp+2KUhpt/UJyXRF+KiDIi2/M7PMsAEU4xt0cc9yeukoT0usDSSVcMY53y1c6LWApNNCN7dy8gi4640Aw1ADRpAQbbwBs9B46QNrsfZA1Yr55HeOt28H6AU+RRkVofX2Fx18rS6IPDgIYn5nEVnYv5eX6EUg/eoeG52lNxXeb3lxmF+QayaCJKjpwEV7Sb42R3wMkBj/nKWT3M9EJpa1jOY4LdMWDtuewEnfdq+LN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Q= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:HE1PR08MB0667; X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB0667; 31:ViE5t0PycgcpAW5ap1am9Mrtj5bsH3eE7BLliCV0JEsYflsYJObfdzeAKxXU453xTXe81P7xs4YdTP6gKfPhVDcE60snSqNkRzPitcHnCgBUl59f9a1t7n9mMkoX1J1SGqska7BWCFbyAkWKcRnf4PWrMvVrlVskyOQUzWeO1AGfe0osuEfMmPS3pnNTkbeS3mO6fmkz5/fpstybsxiaXw==; 20:rAu4BEnCGQ5YayFSSkn/SrQu4pJkQSmxcguE3hETgiQUhequIpBmar8PC+XZDo4XPSgbIkOBFOcVq4O9QQ3rxObcVY5J3OOFDKyVL3K/1fFd9SozrUT/DikEejRxX+dgUvpK80eR7teJWCRizkoi/oiKmsPyVNnP8ogdBx7Pcv9tEpA6ihdDOrQxICEo3EMqGwXR6VqBmDcijt+VIBGo3deC/aANOVDfj+XaPbNd0QCZ+HII6fwLkJbvPRFFg6q5 NoDisclaimer: True X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(9452136761055)(170618885588394)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(8121501046)(5005006)(13013025)(13024025)(13020025)(10201501046)(3002001)(6055026); SRVR:HE1PR08MB0667; BCL:0; PCL:0; RULEID:; SRVR:HE1PR08MB0667; X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB0667; 4:el1+b8b+2rmfVzvrJ9EFww7+75oQGF8oM+KNkfaMnCzSfVoL1ivGa18HgwfGhEbfJXnSVjBj844yS/cdUMkfHyglKArqA4TG8EH3tet0K8yq1aDI9xE5ZIrHsJFF30Ktj0Dd+SZ6ZgXGQlhNvZgZzNmv4wQVVPO7UL2hfe9Ed7i7lH2VHIdn4NhT49iJTvrLTZM2mbl9oi5u97w+Zdw3J1ScBFR57Hj5SIzCLDufYYv8G83P8LY1MajTepys/VANESjV3aR8jc+5eE+SCLcQ+SJ/cPJBwcAyCvIs98gMC+Vn/FGRCy0GtILMiJIqF7nGzFIgZmdMuirab0TPgXXdXZ6qyAI2D+f0nYL0tMTOWLinLyrWKmu15uxMM8qjQQLy4QrgwalYRFBTpzjAuQ5/EsHN9eten/NAXQBvOLacUt3m0ZlYKNxJiB82wQSruESW+qbcns/msduSo+PQJnnX7FjvX16qKF4CxtMXEBuHN4X+b1zW65H73kwZTaeGp9L6ZCJ5fYfkiUlbV5yViXgcXqVBIFzK6qQwGnooRnLnSOn+hl4xHc+DHXoNvvYtHCo7JYeT8BPNwromjFqHEIBRlRcBjMGrflvC08RfJqXOUxg= X-Forefront-PRVS: 00032065B2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR08MB0667; 23:ko6KSGVpBb4ugrM7XKPTJl6l1IppyNvwqsG3UX/Nz?= =?us-ascii?Q?7nPqYkQazRCw76G8hGZq0TH7IPnt5CJdPMhHu/mhSuwdKA7qjebqO2Go5Qlv?= =?us-ascii?Q?GYdwkdGWS1eYQNj1I5Nc6Gr4fS/gKKRSMIYU9+x1gw/Ynro6cyw939huAe29?= =?us-ascii?Q?ldyrB+q8rATqQLwBNAvGt93LAIGZ9jch91SWpmFRTZDihEFMwhrbwbsI3Flf?= =?us-ascii?Q?T2BRy9VA7H+Jviy2njcBfx1riZJD7p5iShMa82z+zRnEsnR6Z76UHaNRmB5z?= =?us-ascii?Q?7ivOeJ5IbzlhH2ajxvdugcXyWqATTsjtI6dL7y17Hv3DxBhGko7bNvScsw4L?= =?us-ascii?Q?UZME/aeHtQmtLpfJuIe901V0DsX7s4vmyLOTG+i3FKWONdNboUy8Q+pgbQb3?= =?us-ascii?Q?57PEj2Xe7ICGxEGiSNjCaFeQDhZ3lFxXyal9Erud41S+d2pmTTEcLOnghhLY?= =?us-ascii?Q?7TPoVJtbQ57TlxpHkfQasP71gVTkfRvI//RZI2V+m45uOrf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+W/8ZZQwEP4YQ2DRG4iHjqgoRNPd8ldn+e8MZsoITLg5w40M3HdGQAUbCfQ==; 5:oW4gNGOo+WOIhDyTjDTXmMqDiDMEz1pGFsuCjQFerA4KpuXxD2c8cqdRIeSZeOK4btaMIljqqUn4A5TUqQWz4/ujHnan3BIKi6pd1piL2A2tzUfSpLJwv63Qy/4dH1iywlKzUMqvA+eWC29SCdPbWQ==; 24:30rAayQJVTMLUnElUWmgwGsr3bFtsyzZK+mGTKp4y2VwV0AfE4RgMxwf3/7Ax0SNJfZRL/+e2B06aHNFNa3zAL5FZX6S/NcWbAmHmwdyG/M=; 7:fdkhZAJBBLeG3H9CW6871b1XI1AX31NhIL1sLTJdzJGEBxoiuCQOSzxDxW9X8d++nnUWyFqKcJHXwy/jwgfjwUwaO8rbKlm3rGH9wB7A33ArKpGRRlUur0/dDQwuYovXL+Q7mFWkETg4Pen02SOOkzzUvfDP+JBVZ5dCuUWdGZjZgW7VkGoH68pC+t1dfi6oNeQsW57DKEmP8Q+RBSED/jf9Ph8BeWyj0tz1mvRShDjg0LA+4CXBIj+DWrHJ5u5Y SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR08MB0667; 20:IJfvnwWz+wqhkj5AnQ6tk807OR4iDwgdZmBL5O2U1VQDfcszC5E2NIH9ug6F1/7mT0Y5Y+Fya6Nus5aM9pNt1+Z9YvkkJ/QaQZ9oL9/4m3zApKtXOM26XeTTTQf8ktPDPAWvyajyOiCSla6Sp/zlj7STOUOzdzvzX0flAXB0C0U= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2016 05:45:14.2878 (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: HE1PR08MB0667 X-MC-Unique: S28sa0-AP4Gmmp61uzM2sw-1 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When booting an ACPI enabled kernel with 'mem=x', there is the possibility that ACPI data regions from the firmware will lie above the memory limit. Ordinarily these will be removed by memblock_enforce_memory_limit(.). Unfortunately, this means that these regions will then be mapped by acpi_os_ioremap(.) as device memory (instead of normal) thus un-aligned accessess will then provoke alignment faults. In this patch we adopt memblock_mem_limit_remove_map instead, and this preserves these ACPI data regions (marked NOMAP) thus ensuring that these regions are not mapped as device memory. 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 : [] lr : [] 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] [] acpi_ns_lookup+0x520/0x734 [ 1.267845] [] acpi_ds_load1_begin_op+0x174/0x4fc [ 1.274156] [] acpi_ps_build_named_op+0xf8/0x220 [ 1.280380] [] acpi_ps_create_op+0x208/0x33c [ 1.286254] [] acpi_ps_parse_loop+0x204/0x838 [ 1.292215] [] acpi_ps_parse_aml+0x1bc/0x42c [ 1.298090] [] acpi_ns_one_complete_parse+0x1e8/0x22c [ 1.304753] [] acpi_ns_parse_table+0x8c/0x128 [ 1.310716] [] acpi_ns_load_table+0xc0/0x1e8 [ 1.316591] [] acpi_tb_load_namespace+0xf8/0x2e8 [ 1.322818] [] acpi_load_tables+0x7c/0x110 [ 1.328516] [] acpi_init+0x90/0x2c0 [ 1.333603] [] do_one_initcall+0x38/0x12c [ 1.339215] [] kernel_init_freeable+0x148/0x1ec [ 1.345353] [] kernel_init+0x10/0xec [ 1.350529] [] 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]* Acked-by: Steve Capper Signed-off-by: Dennis Chen Cc: Catalin Marinas Cc: Ard Biesheuvel Cc: Andrew Morton Cc: Pekka Enberg Cc: Mel Gorman Cc: Tang Chen Cc: Tony Luck Cc: Ingo Molnar Cc: Rafael J. Wysocki Cc: Will Deacon Cc: Mark Rutland Cc: Matt Fleming Cc: Kaly Xin 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(-) diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index 7d25b4d..9482b45 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)); }