Message ID | 1467107284-29747-1-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 301F660757 for <patchwork-linux-acpi@patchwork.kernel.org>; Tue, 28 Jun 2016 09:48:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F045285D0 for <patchwork-linux-acpi@patchwork.kernel.org>; Tue, 28 Jun 2016 09:48:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 136E2285F9; Tue, 28 Jun 2016 09:48:49 +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 5FB33285D0 for <patchwork-linux-acpi@patchwork.kernel.org>; Tue, 28 Jun 2016 09:48:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752500AbcF1Jsl (ORCPT <rfc822;patchwork-linux-acpi@patchwork.kernel.org>); Tue, 28 Jun 2016 05:48:41 -0400 Received: from eu-smtp-delivery-143.mimecast.com ([207.82.80.143]:25690 "EHLO eu-smtp-delivery-143.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752054AbcF1Jsg convert rfc822-to-8bit (ORCPT <rfc822;linux-acpi@vger.kernel.org>); Tue, 28 Jun 2016 05:48: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=SkKQzPUoM2m8w2q48/khNZvvlIr9b+x/t4SGE223eWw=; b=rGohNSB5hhhFVNLb8LzpleZgcqK9IXd1wA0r3poc6/cboSeyF9gxA43xklOv2zmRwl+2CPELu/1qJPUZDhQfcu097BOCYpgIg61gNCwCmNhZgx4aD7z8bpuKSr/eAvp0F3UAXVDol8J6VfCnqkBSQSQSoyrg4qNiaqaUw67K1c0= Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01lp0181.outbound.protection.outlook.com [213.199.154.181]) (Using TLS) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-2-QMpf3-b2OsGyTL3yQWJn1Q-1; Tue, 28 Jun 2016 10:48:33 +0100 Received: from HE1PR08CA0005.eurprd08.prod.outlook.com (10.161.112.15) by DB4PR08MB0144.eurprd08.prod.outlook.com (10.161.17.28) with Microsoft SMTP Server (TLS) id 15.1.523.12; Tue, 28 Jun 2016 09:48:31 +0000 Received: from DB3FFO11FD036.protection.gbl (2a01:111:f400:7e04::188) by HE1PR08CA0005.outlook.office365.com (2a01:111:e400:5097::15) with Microsoft SMTP Server (TLS) id 15.1.528.16 via Frontend Transport; Tue, 28 Jun 2016 09:48:31 +0000 Received: from nebula.arm.com (217.140.96.140) by DB3FFO11FD036.mail.protection.outlook.com (10.47.217.67) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Tue, 28 Jun 2016 09:48:29 +0000 Received: from dennis-ws.asiapac.arm.com (10.1.2.79) by mail.arm.com (10.1.106.66) with Microsoft SMTP Server id 14.3.294.0; Tue, 28 Jun 2016 10:48:09 +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 v4 3/3] arm64:acpi Fix the acpi alignment exeception when 'mem=' specified Date: Tue, 28 Jun 2016 17:48:04 +0800 Message-ID: <1467107284-29747-1-git-send-email-dennis.chen@arm.com> X-Mailer: git-send-email 2.7.4 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)(50986999)(86362001)(575784001)(50466002)(26826002)(87936001)(48376002)(11100500001)(92566002)(4326007)(586003)(77096005)(33646002)(47776003)(36756003)(229853001)(106466001)(50226002)(5003940100001)(2906002)(246002)(189998001)(8676002)(2351001)(356003)(5003600100003)(7696003)(7846002)(19580405001)(110136002)(104016004)(8936002)(6806005)(305945005)(19580395003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR08MB0144; H:nebula.arm.com; FPR:; SPF:Pass; PTR:fw-tnat.cambridge.arm.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DB3FFO11FD036; 1:68y657tB5HnwpsQAIBMv3foBv+tiyuJNA7vipx0APvduiN/Sgqrzoeo0I8gt47wto3UJLgbQqubIRoFAP3MgTzS0GF5MYpvFFsAUZbqifD6m6Rhs1WXhiEIhNRQmgZq4yCJLHT4WfSoXIv/9At5bE3pMhzy0s8+yWpHNVfW1wmBp7dDAaJeRCnSt674VdMQ5PFBYA4ciibVblOqdtFM8pjG7sjklu5t7epY3/n9srh+t+mrtOEl23NPEKOdVnLI3y3u7PONjCaSf4Zu4tXqzJJNpq0yFEj20GVbPaaftAKTadiUN6ZbMDY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quSlaGsGMX/d4+q5fGetdLRndXqp4X5SJzluJFMQMJhMgpZtb6ztxuAVMTvdZxq+g1zZreAVmqE8NVt7bbspcyjEwNMQWrk/8GgnFmUGctcgGfdI8IFzCuMKTcp+vr/AEKT0sD/AWf9Ya0NAyYChZcZ2wRKg+Ag6qTa5u5IbTxIUAJ/oqlnnKv+l/UgvndZLDqFxxmBMeYupkn/PhQd4IURlYj+S8xfq04+ol9vzsklRtmuXVfb6s/RZM/V+2VJKGlR5396jkXcH5BS+NHLqvAj4P+qru1iQ= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:DB4PR08MB0144; NoDisclaimer: True X-Microsoft-Exchange-Diagnostics: 1; DB4PR08MB0144; 20:54bwdRF+XD6yB9FUOOsUeuYWjW1VUaWL9H65TbDuCVNA+SkWQfDsiBqT828maVlib5R0NhZC/mRnYepWg2z8pmvQj5MDMVrhh1kguPvtyw9bMe0IFnf6DFUaD5W+s29hy54wEaTb9fvzrxS3FiOqEppKl16vmnwyq3amUed0biucVf+F9md28BSXJLTrJ7hAcm/M43HhtV1wOx5rrUhPh65Xr0F96AaEBLCxXtm9jJlGKUQnbvVm9ystqV89FaN4; 4:7VNOatxASrNEyC0CR0BMwVN3AdsLOFJ/SNIveYM5PefGSt79dPJ4yzhhPt9Rzl/xA7YfesAzjY7SLTep1PfnVmgHkp7Fn1CGnQ+WTpXqx+2jplVIOTNpBKNMX1jOuTWaZbZe2UZ/egTDYp82RE2EVRptAjpJr0RDYV/MVCJA8B/AeYjozEkE7wHu190oO0ONez5LfhF9lhr6Xsx1VCMm8ZHArFnwcVrm6f+laIulfTXx8yP6s2X3GmQ5ShfHWsyZZ8zS7g5jpgPZGi4XOfWNEtGJADoAWPiiTwYnCOjRwDdBYVhaipDZte2lYDZSud4ui00A86ylrdLQ2rSPCfC2vwP5byyMmiGQK0BCz9CZOP2zBHl/VPzogl66xyM9GGK17fH1Jbv6Keoq7GlwhmnKLlZJiHmEX7XOIVN0K4EU4rPCRbGq/jzqEBn2e0nLTu4qzHa8kocH5Wc99I77JB5aF5/9X5G2xcIsQbjk1rCz0X6TvIMH8q9gTWGbQie9lb7amaLCJFlEcgqMRE8Uv515GbbjVPNuXpeLcWBnbMmD0pKWTJJTTNnqVamAjkFdpU8X X-Microsoft-Antispam-PRVS: <DB4PR08MB01440064AE4E62A23A142F30FE220@DB4PR08MB0144.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)(5005006)(8121501046)(13023025)(13020025)(13013025)(13024025)(10201501046)(3002001)(6055026); SRVR:DB4PR08MB0144; BCL:0; PCL:0; RULEID:; SRVR:DB4PR08MB0144; X-Forefront-PRVS: 0987ACA2E2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB4PR08MB0144; 23:cQstxvQk7TTn1i3r8xJiVpJz9CAJxPKLDWfrg2eVx?= =?us-ascii?Q?QsK7/DzqHbwean1O5WTHFCVb7WXMzujm0xfZCWI3+S1mckUMpD1HhgiTpi1U?= =?us-ascii?Q?bVTmxhq3cIIqtM7/g+3H5T8fs/TI0NK+88/kxP3hD072A0CcJg0z60CeFavO?= =?us-ascii?Q?1zLZPEJtoBMhOimOo0qTTqovAxAadOo52hvBjdwtNalp7auUoEFCOcsoycT/?= =?us-ascii?Q?P29XnUrMp3IWy6OlvUHkoG/EvVdYhqEuz8DU36tKw/EoZbto/LuFDVmYuNGZ?= =?us-ascii?Q?56uFpIIhJusQ9yk7dxQxhYroQSaoCUzUEfrjxUChYWyba56mTH9hZAOE/h6i?= =?us-ascii?Q?9iBSMeyEsEaP3VdUoVLOT0ixYnM5A2VnhLusqauHXaEeGMcqQwG/sVWAQFyx?= =?us-ascii?Q?iiZSv2PE/vBYqSsSB52YtM6ABYm8vIRJVxGu9bK8m1Cgu6ksWKMD54qWAMrY?= =?us-ascii?Q?++sauLU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PbCgL65Iq53VDkTNP60dr7L5WPkCj7kUbaFbnM=; 5:Xce8gRvQcWRdO1/9UL+QT3lCfnhJcKHsnvpNX+muajzItXC+3WqZrMNfpbKZBWNS3tdGoYl0wC953Soji6melftMCZD1QB3w54hu7gbyB+/k8S6eGziA55aXmzGH4KOwhnPt2aZrpyTlNqxZLLw90w==; 24:DB0m4dR1K2uXduEz483KCZOQGM2GQ9bKvO+ManhP1Ydu6IJb1CkTo4qN+/4GofVbr1zhNXdxEuzfcG0PRQvnjzZxHPlxQw65GrLEQgPalXg=; 7:81SAJ8KgdkZwt5diRcUaPXU0PP4UmPortJUociN+vz2MFjkI0xPbEi2dia80rh3i1mYIZXyxlprfV81cqsm+BAkE4I21B1yp0TFsnpoGb3dvuXVS4+LwGe09XIeu5UivLi35UQDwgN4WBpINb9Wg9WWp34qjI+XCyO6mR2SS8jtFaliT4DHbA7FmWuyUaHHMxrcLVaJ5UOu9BWTUfYcv6mXspzmz7TF96aeEaqR27BXHivMqrbyEUeVptRQlB+i8epfmxuAlycN6uKzWReJdoQ== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR08MB0144; 20:sfaM7+4W0vzlvoyCext7q7GEEoH21Gs2a1M6uSE9pT91985gUGP9cdG6MGezZHJfwT+luPjlbH13osEz9Bmci4ldGjU+wG3UBaziXRThZjnffgSqrUy5Xw+8SXuTzWxlXJWCFVbNfNoKBwpvShtxm1bTUL35ZJy3dMdM1IItm5I= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2016 09:48:29.8144 (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: DB4PR08MB0144 X-MC-Unique: QMpf3-b2OsGyTL3yQWJn1Q-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 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)); }
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 keep 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(-)