From patchwork Mon Oct 29 19:00:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 10660155 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 06AB913BF for ; Mon, 29 Oct 2018 19:23:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0206228541 for ; Mon, 29 Oct 2018 19:23:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E8C33286A0; Mon, 29 Oct 2018 19:23: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=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7816728541 for ; Mon, 29 Oct 2018 19:23:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=cvOnH2sFpkKtrFVHk8FTtHXWTaU+3IpE7aI1kRDihQs=; b=S/R tKsajxypL0zyt18fMFZKL65JlceFAlaJko4pkjP7s6N/4XQtpN/mGyoIlbEcun1UgMJ1rT7Wqq3Jc k+b+stMT+F+sQuAOUz2MFsvVmTn4I7qPGx+HbAxqw97HWbeslrWPxOlXVK13bJRJPc3brRUKheabh FfEdRsjupAAdLYH6tyfB+d4G5NuP1DQWYYenA9ydg1r4E3CYdtl/m+d7ysh1jCWay6ZLpvYzS/X3Q uSZ1nvqYDmcR9MvgpOXYvrsM4320ZfBl10I3fMSMLpN3xDHvNy+cDNaV7zgHTLE7zr7h49Y9hwiIa xwMgIOsmxDAb35SsQkPHSYb/Xt1b67w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHD8b-0002XU-6H; Mon, 29 Oct 2018 19:23:45 +0000 Received: from mail-yw1-xc41.google.com ([2607:f8b0:4864:20::c41]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHD8W-0002V4-PZ for linux-arm-kernel@lists.infradead.org; Mon, 29 Oct 2018 19:23:42 +0000 Received: by mail-yw1-xc41.google.com with SMTP id v199-v6so3874571ywg.1 for ; Mon, 29 Oct 2018 12:23:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Cx7LRpCbK0t68q5q4RBqh9Dn5V/BhNKc+ydKX4pEr30=; b=EvOMZWeySDdWTZ0nJpWpuu9hinUvs3CPt8F93wj7wgfCrj5WNlk1ugRbxZmBz4+PZH Sj3tK+oIrigti7lV+FiJ/2faf/33/xkk0tsPt6kizkfwYH3c3m3is8yrazzwRbCN1bVW npswefSA2YYwzN9XBBiqN3mHEbelZmL57H47KGUJHr+Ft6faI2krdQWl50QZinKHA9L4 /D0cr5WZFGnZS/gvKBX/AWntzMpnQNJqsaO2MhNHxLibCw5P1kzEIMQbZD2W49B7ftk2 lwqZUgbxPPXTAYe+p6pSh/0GMWlfT2AyTGBhD77LB9k8eJkW/uEQFg2Iy6GP0SxJX9ZR r1PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Cx7LRpCbK0t68q5q4RBqh9Dn5V/BhNKc+ydKX4pEr30=; b=thdEEZBlMd1OvzQcx8IVvEvRbBdBzCi2Pqga8YUoOaxkYYd4ySZyV9m7z2OAI3BDgF TWod6DHzDC8bZNHiOVNjfXWJlC0HVI3QM9nVD5gEZ8wOnmkmdpJgKT3fbqEmDwtFhygH w753WA6LzGWq8QIYd/XC9DxQTBYJKLwTgf5H33gLpyrVe8BQ8fYnLoxOf6N/KhJpjykg D3DiI1AKBszAf1TLh8G6LIUZ9KZW+TyRzqXLY2ZMH/pShFJOUXMlRtt8DYdM0Nq1tyBe bfv5XTuq7w04zVbrfVyRNgiszS2gD3nxnposaS1EZ+uZY1Q7QUjVwvwxTKKx0ic021Uy QQUA== X-Gm-Message-State: AGRZ1gLNFeEthOC+AcngyRXIUz2Xt4COLz3kAuVYG8KKlxJbp2FEQu2z p4RhWSPygblLR3C1xqEoyDI= X-Google-Smtp-Source: AJdET5eqwJmuvwFmaV6yzFaVUJNpHx07hIm3pVH0m0FwJc52o1IbaP+8NWa4iBiV+AZkXqRRK+fNcg== X-Received: by 2002:a0d:f6c7:: with SMTP id g190-v6mr15369214ywf.103.1540841008882; Mon, 29 Oct 2018 12:23:28 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id k85-v6sm5410014ywa.76.2018.10.29.12.23.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 12:23:27 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Subject: [PATCH 0/2 v5] arm64: Get rid of __early_init_dt_declare_initrd() Date: Mon, 29 Oct 2018 12:00:12 -0700 Message-Id: <20181029190014.6455-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181029_122340_851051_1AB2BAC1 X-CRM114-Status: GOOD ( 14.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: CHANDAN VN , Catalin Marinas , Will Deacon , Stefan Agner , Masahiro Yamada , Frank Rowand , Florian Fainelli , linux@armlinux.org.uk, rppt@linux.ibm.com, Andrey Ryabinin , Laura Abbott , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE" , Marc Zyngier , Andrey Konovalov , Kristina Martsenko , Russell King , Rob Herring , "moderated list:ARM64 PORT AARCH64 ARCHITECTURE" , Johannes Weiner , Andrew Morton , Robin Murphy , Greg Hackmann MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all, I numbered this v5 because this is still revolving around the same initial desire to cut the build time of an ARM64 kernel when toggling CONFIG_BLK_DEV_INITRD. This 4th version is basically the 3rd possible way to just get rid of __early_init_dt_declare_initrd() for ARM64. I previously mentioned that I was working on making phys_initrd_start/phys_initrd_size generic across architectures that make use of it, which would cover ARM (32-bit), unicore32 and possibly arm64, but upon second glance, this does not necessarily help, or rather this patch series actually helps make a smoother conversion in the future. Previous discussions/submissions list here: v3: https://www.spinics.net/lists/arm-kernel/msg683566.html v2: https://lkml.org/lkml/2018/10/25/4 Changes in v5: - incorporate Mike's version which properly takes care of command-line specified and FDT specified initrd location Changes in v4: - perform the physical to virtual initrd conversion straight within arm64_memblock_init() to get the correct memblock reservation to occur Changes in v3: - attempt to change drivers/of/fdt.c to absorb ARM64's specific behavior Changes in v2: - put an /* empty */ comment in the asm-generic/initrd.h file - trim down the CC list to maximize the chances of people receiving this Florian Fainelli (2): arm64: Get rid of __early_init_dt_declare_initrd() of/fdt: Remove definition check for __early_init_dt_declare_initrd() arch/arm64/include/asm/memory.h | 8 ------- arch/arm64/mm/init.c | 42 +++++++++++++++++++++------------ drivers/of/fdt.c | 2 -- 3 files changed, 27 insertions(+), 25 deletions(-)