From patchwork Thu Dec 3 12:36:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Sverdlin X-Patchwork-Id: 11948631 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C026BC64E8A for ; Thu, 3 Dec 2020 12:37:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 25B1922245 for ; Thu, 3 Dec 2020 12:37:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728493AbgLCMho (ORCPT ); Thu, 3 Dec 2020 07:37:44 -0500 Received: from mail-vi1eur05on2118.outbound.protection.outlook.com ([40.107.21.118]:10400 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726213AbgLCMhn (ORCPT ); Thu, 3 Dec 2020 07:37:43 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JPgiSHYtfVfTKay/oR9IWHMdHOCfMpyAzYoPDalvmIDCoteaEtlBDVdDXBm3jKZT2Ydoa7B2NAL397W3ifBonNpxXgT+8WboarF59Lvk9OinccxzPb0Oc4zjJAm/EVGl4Gwe0mnKtC0ekeuruzZNpagyB3vWQkUe1XoOPDXlPqXwjhsVaIpBw2zd69w5X0xHabEivlqhGZpfVei3xIDhu9JBuzZM//V8zn/GDRDJBNyJ0+fH42q12DZDHt1rGPwmAL8HaoL+PmwUX+vZHPvfY6nLJlwtZXaVfcutMiG0PyZ4oWrOCNaoVpkVYmMKGzFdJ9/A1E9QsvR21LFJEnd1ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yP9jzzqpk1JQGqDlt3rZZPy49Icix8ZFTlGbWwU7vZQ=; b=NpsZKJ8a75EszlmCp3ecyuMPMi2uznBeNc1xElza3BrFC9cYPN4u9NlpgteMbexkfBJNraeWBCiEeDoLjU+QintIqL8jIgAp+XBhr6gvBvGfFkk93cPmNQ6lLt3HlIwbmUFt/cSwZi4yP9z+Jyfz65AQ6I1f1l9xAL2dkKLlunZAoHFkyrK5u0HUJiQCbrNPz/67poVSLkuY7IsFprmCTQ6O2kqYzpnUQDdW5138fekXrJAyfeiWRL6fpS8w52P36GUlVE1j4fV7P/XKXFhWXS/vW65z6z5Jt7UeslS13hC0wz+8DXdMANosuKA2SLBblVd6UDxcdWC0WPlmiK5WzA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 131.228.2.8) smtp.rcpttodomain=flygoat.com smtp.mailfrom=nokia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nokia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yP9jzzqpk1JQGqDlt3rZZPy49Icix8ZFTlGbWwU7vZQ=; b=lUy9zxZxDM7szKnUDlfg2iM/ZOjv6lgwr3meAqVEEVclITzRBq7R8JcrRe+6eNPAXeGbVTGMXFaMglCBRqVj81BmSPYoLzmFU1xEyP8EKfsK19P8m17Lzn20GEHt2keH2S2/XDmZTPfN+HHzid77KIRzBrtAlKZ7wONzRVLUz3g= Received: from AS8PR04CA0087.eurprd04.prod.outlook.com (2603:10a6:20b:313::32) by VI1PR07MB6495.eurprd07.prod.outlook.com (2603:10a6:800:181::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.14; Thu, 3 Dec 2020 12:36:55 +0000 Received: from AM5EUR03FT038.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:313:cafe::ce) by AS8PR04CA0087.outlook.office365.com (2603:10a6:20b:313::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Thu, 3 Dec 2020 12:36:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 131.228.2.8) smtp.mailfrom=nokia.com; flygoat.com; dkim=none (message not signed) header.d=none;flygoat.com; dmarc=pass action=none header.from=nokia.com; Received-SPF: Pass (protection.outlook.com: domain of nokia.com designates 131.228.2.8 as permitted sender) receiver=protection.outlook.com; client-ip=131.228.2.8; helo=fihe3nok0734.emea.nsn-net.net; Received: from fihe3nok0734.emea.nsn-net.net (131.228.2.8) by AM5EUR03FT038.mail.protection.outlook.com (10.152.17.118) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Thu, 3 Dec 2020 12:36:55 +0000 Received: from ulegcparamis.emea.nsn-net.net (ulegcparamis.emea.nsn-net.net [10.151.74.146]) by fihe3nok0734.emea.nsn-net.net (GMO) with ESMTP id 0B3CaqBI025448; Thu, 3 Dec 2020 12:36:52 GMT From: Alexander A Sverdlin To: linux-mips@vger.kernel.org Cc: Alexander Sverdlin , Thomas Bogendoerfer , Paul Burton , Leonid Rosenboim , Corey Minyard , linux-kernel@vger.kernel.org, Serge Semin , "Maciej W . Rozycki" , Jinyang He , Jiaxun Yang Subject: [PATCH 1/2] MIPS: Don't round up kernel sections size for memblock_add() Date: Thu, 3 Dec 2020 13:36:48 +0100 Message-Id: <20201203123649.44046-1-alexander.sverdlin@nokia.com> X-Mailer: git-send-email 2.10.2 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 40d0b287-4fa3-41d6-8790-08d897881ea4 X-MS-TrafficTypeDiagnostic: VI1PR07MB6495: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1013; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +4aFgzc21o3E1dK52Cf3RSyc79VgsNgStYYxZrxObnmeSXlfyZCKRJkyR6oSsbOOiGqXQY9J3AmSxEFnJYqTwz4eAV6gHGedu8dRtbvAHSvdeYswjUeBRQWtUxOHfiKhrUmS9e9vKg331woIvVQUxuTr/UDXFwxB4If9Nu2VKhfa6BvJv+IMQ0bVISeAlrDR5YnFn1zHlOs3kDoqcMWDxp0PnXnJgaEYF2Z0RJBszeSt2C24O1A/TpqYUeRW0+n4m4jlo2t6scsq/1YIHxgA7dBl+5OQHvHtoPnkkESPEBhJqvDkAqD1yfWoiQkbxAGtxi1ygNKE4JJT4z42UeiDwbYaFVl6o4QwNY3X0XVaBC1kGyuZBT8Dhpfyhc+uUvQuvHku3/9DwFO3tJcMo3kxew== X-Forefront-Antispam-Report: CIP:131.228.2.8;CTRY:FI;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:fihe3nok0734.emea.nsn-net.net;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(136003)(376002)(39860400002)(396003)(346002)(46966005)(8676002)(82310400003)(36756003)(356005)(5660300002)(70586007)(6666004)(70206006)(83380400001)(86362001)(2906002)(478600001)(6916009)(186003)(4326008)(26005)(316002)(54906003)(336012)(7416002)(47076004)(1076003)(82740400003)(81166007)(8936002)(2616005);DIR:OUT;SFP:1102; X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2020 12:36:55.7721 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 40d0b287-4fa3-41d6-8790-08d897881ea4 X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0;Ip=[131.228.2.8];Helo=[fihe3nok0734.emea.nsn-net.net] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB6495 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org From: Alexander Sverdlin Linux doesn't own the memory immediately after the kernel image. On Octeon bootloader places a shared structure right close after the kernel _end, refer to "struct cvmx_bootinfo *octeon_bootinfo" in cavium-octeon/setup.c. If check_kernel_sections_mem() rounds the PFNs up, first memblock_alloc() inside early_init_dt_alloc_memory_arch() <= device_tree_init() returns memory block overlapping with the above octeon_bootinfo structure, which is being overwritten afterwards. Fixes: a94e4f24ec83 ("MIPS: init: Drop boot_mem_map") Signed-off-by: Alexander Sverdlin --- arch/mips/kernel/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index ca579de..9d11f68 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -498,8 +498,8 @@ static void __init request_crashkernel(struct resource *res) static void __init check_kernel_sections_mem(void) { - phys_addr_t start = PFN_PHYS(PFN_DOWN(__pa_symbol(&_text))); - phys_addr_t size = PFN_PHYS(PFN_UP(__pa_symbol(&_end))) - start; + phys_addr_t start = __pa_symbol(&_text); + phys_addr_t size = __pa_symbol(&_end) - start; if (!memblock_is_region_memory(start, size)) { pr_info("Kernel sections are not in the memory maps\n"); From patchwork Thu Dec 3 12:36:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Sverdlin X-Patchwork-Id: 11948633 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3854C83012 for ; Thu, 3 Dec 2020 12:38:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 52A3022247 for ; Thu, 3 Dec 2020 12:38:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729123AbgLCMht (ORCPT ); Thu, 3 Dec 2020 07:37:49 -0500 Received: from mail-eopbgr10123.outbound.protection.outlook.com ([40.107.1.123]:18353 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726213AbgLCMht (ORCPT ); Thu, 3 Dec 2020 07:37:49 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eEqD+CzfsquzVg9enHQRowPrVeWmv+NyThFJubszIA5NJG2Rig1JJPgcIVE99cyoQY4I1nhaHwpTkVE5uHZwF4OPn5xz6tTB4Y8e1c5nuIrNcxi2qh+nucHTEUmYUT6ZEEwQYxG4rRdUHUA+Dt2tiHGNPxRs5MLiwC5KqN8NqKWcAVyIkRGXtX2jA1MDeAD+Abnwo+oEKOjdh7yEvbu8rHSDvoEh/fbU/hyVlKvEQgrWEvrFTzMHs1E9QTShju/h3G8C3VITSR4SdnYLUD5KKZTb88lJCruaxO16lv5cNH0cOhYNhwilgRywtfYSvarZ+JE9lS0oBBDXxWM6cuahXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fzIQuwWslMU0ZV6rw1ddYa7K1OEcS1ZO696QI5alaVE=; b=Jk4SKNYG1ScJPiXRl/nAg7abVKJZL1MIHDxdEll1nSM8s5uAGOBgerwRYTQ2P6rSEt4heG7P4PZ6OQ74mltFgGrCS0/ZAoquwpaMU2L56xfSp3Fchv05j/RGDesXt62qh06l01vuF1WhjhehpBk/V1IfJw0pPlIJ+p2ycvc+7v77LIRCcRmL8S8Tl3kHOJw7RxtP7e7Gg1ed7rHO6dskk0eQNOk9N8AzvPTeByrQ1oxmL/yeQKM16UBBvsfNSmZwWq3e32KglhH86eZIWBUUkc+2NId+xDc1Kwe1BpxhDrndd7OLnsjPkOCgeQUk5hwve999MGmgYiFqS9mOyv8HtA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 131.228.2.8) smtp.rcpttodomain=flygoat.com smtp.mailfrom=nokia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nokia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fzIQuwWslMU0ZV6rw1ddYa7K1OEcS1ZO696QI5alaVE=; b=yZKqrTG4PEH8vxbcAaiShoI9jg3y4aBlznlio0kR15uOg6d4JM7lf/cRhuDVa5IaHxIrKpH3HmYQlt1jkZodJOPzosJ7MAJJ4178DXYemvRNDflNCHIuEWFVZ5jdvegEAdFtQcGLX2ePCMSg7/lCjbyLgKDeKHTlN6zu8gPSdm0= Received: from AM6P193CA0089.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:88::30) by DB6PR07MB4440.eurprd07.prod.outlook.com (2603:10a6:6:53::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.9; Thu, 3 Dec 2020 12:37:00 +0000 Received: from AM5EUR03FT010.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:88:cafe::38) by AM6P193CA0089.outlook.office365.com (2603:10a6:209:88::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Thu, 3 Dec 2020 12:37:00 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 131.228.2.8) smtp.mailfrom=nokia.com; flygoat.com; dkim=none (message not signed) header.d=none;flygoat.com; dmarc=pass action=none header.from=nokia.com; Received-SPF: Pass (protection.outlook.com: domain of nokia.com designates 131.228.2.8 as permitted sender) receiver=protection.outlook.com; client-ip=131.228.2.8; helo=fihe3nok0734.emea.nsn-net.net; Received: from fihe3nok0734.emea.nsn-net.net (131.228.2.8) by AM5EUR03FT010.mail.protection.outlook.com (10.152.16.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Thu, 3 Dec 2020 12:36:59 +0000 Received: from ulegcparamis.emea.nsn-net.net (ulegcparamis.emea.nsn-net.net [10.151.74.146]) by fihe3nok0734.emea.nsn-net.net (GMO) with ESMTP id 0B3CaqBJ025448; Thu, 3 Dec 2020 12:36:57 GMT From: Alexander A Sverdlin To: linux-mips@vger.kernel.org Cc: Alexander Sverdlin , Thomas Bogendoerfer , Paul Burton , Leonid Rosenboim , Corey Minyard , linux-kernel@vger.kernel.org, Serge Semin , "Maciej W . Rozycki" , Jinyang He , Jiaxun Yang Subject: [PATCH 2/2] MIPS: OCTEON: Don't add kernel sections into memblock allocator Date: Thu, 3 Dec 2020 13:36:49 +0100 Message-Id: <20201203123649.44046-2-alexander.sverdlin@nokia.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20201203123649.44046-1-alexander.sverdlin@nokia.com> References: <20201203123649.44046-1-alexander.sverdlin@nokia.com> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: ff648952-5bd6-4006-616d-08d897882129 X-MS-TrafficTypeDiagnostic: DB6PR07MB4440: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3513; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Mj1kRJf+bm/WL7iBZMf7lMJWx76hmCdpYvtN9Ok8wvhwQfFqzmck5JPguWlZSx9TEJA3Tct7C25bQPNVQXgiWsUOHVJiGdk4dtSvRMVbjVC1vEBD378qWMyr4iFqrcfi70RP3/srlKcXK4XwzmZv/VC+n1c/YQc7ev0xo6jL68ph7/Ja38w6GBQpR6iF39W0CqrewTWrGM9oeSpduV8SEkMrVeky0B/r/MU5ebE37bQxdwa6pa0RyogaWxOn5i+FTJTwBm4hOcZSdBKpYQ2woM1B8PNJ62gTui3cOJmLy+64u4I4iLyoxQz9qIFQwTPfGeYJ5laI0G7+CY6fB7doV/r+bLOBrKASyFWBmdEvIjiDeWXZ0p49LFBxxSloTjytuzAo+KB2CJF7+qW4l54BrA== X-Forefront-Antispam-Report: CIP:131.228.2.8;CTRY:FI;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:fihe3nok0734.emea.nsn-net.net;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(346002)(396003)(136003)(376002)(39860400002)(46966005)(70206006)(2906002)(26005)(8936002)(86362001)(8676002)(6666004)(6916009)(83380400001)(7416002)(47076004)(82740400003)(316002)(356005)(70586007)(54906003)(478600001)(81166007)(2616005)(336012)(5660300002)(82310400003)(4326008)(36756003)(186003)(1076003);DIR:OUT;SFP:1102; X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2020 12:36:59.9931 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ff648952-5bd6-4006-616d-08d897882129 X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0;Ip=[131.228.2.8];Helo=[fihe3nok0734.emea.nsn-net.net] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT010.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR07MB4440 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org From: Alexander Sverdlin Because check_kernel_sections_mem() does exactly this for all platforms. Signed-off-by: Alexander Sverdlin --- arch/mips/cavium-octeon/setup.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon/setup.c index d051a8a..34cef11 100644 --- a/arch/mips/cavium-octeon/setup.c +++ b/arch/mips/cavium-octeon/setup.c @@ -1013,8 +1013,6 @@ void __init plat_mem_setup(void) uint64_t crashk_end; #ifndef CONFIG_CRASH_DUMP int64_t memory; - uint64_t kernel_start; - uint64_t kernel_size; #endif total = 0; @@ -1152,13 +1150,6 @@ void __init plat_mem_setup(void) } } cvmx_bootmem_unlock(); - /* Add the memory region for the kernel. */ - kernel_start = (unsigned long) _text; - kernel_size = _end - _text; - - /* Adjust for physical offset. */ - kernel_start &= ~0xffffffff80000000ULL; - memblock_add(kernel_start, kernel_size); #endif /* CONFIG_CRASH_DUMP */ #ifdef CONFIG_CAVIUM_RESERVE32