From patchwork Fri Oct 26 22:39:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 10657927 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 E4B5A1751 for ; Fri, 26 Oct 2018 22:40:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D09002C991 for ; Fri, 26 Oct 2018 22:40:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE0D42C9C7; Fri, 26 Oct 2018 22:40:37 +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 B0E652C991 for ; Fri, 26 Oct 2018 22:40:36 +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=NTdqok4losT0l8pygdEMQpnsK9tlao9UQsV926r75H8=; b=q3Q MV6Rx135VdwW+katC2PsijwkoOeR5IW1qgQ0u/VPc85S0arYczovZ60XAq4GCjUKEfwYSbdNjXW1E JpOHLSKTx/OMKUi44KCmVITYj8PpO9PITOX/U2o7Bz1hCGj02M9g+dG2xDRMJGBodWkp7EC0X3Pmt VOdxO643oCQyRkaJS0yKDXdJv0EFr9gL3Lz5TqbljT2D5hEmuLLgdnb9vV7EBSdDp8EN9/qEP7gWN A5NdRR4GOUftY/h0AQg+AIwW42+UQ3Q/uvXjblH1fa5aGpy2pVxCPvl200/+hZQCbaetpGlvAmwfr qPlNpfpk/DOZY07J0hZ7KhEoZjiNeoQ==; 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 1gGAmM-00051F-C7; Fri, 26 Oct 2018 22:40:30 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gGAmI-0004yr-RK for linux-arm-kernel@lists.infradead.org; Fri, 26 Oct 2018 22:40:28 +0000 Received: by mail-pf1-x442.google.com with SMTP id a15-v6so1225695pfn.0 for ; Fri, 26 Oct 2018 15:40:16 -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=6NbFjkFyWM32p9EHP4XvhY+exv9Sw/mY2xKovCSkpc0=; b=AARkt2oDj2M7sM5gBxaDXPAKcPV2xZtcWe76WCORezXXIeeYe/b5iN4Harp3j9Remw hZnV70HL6advI4hOODWbPtgU+Qr9Q/4IPgkSE2PGJdGdnmG4dVQApLcLtvtKM6aqbvVG Ry81zM0lJZy24QDyq8vDqaJjK5FF3bn9w36DszQydLC5Y4u+Cl9gHwwaD9B5AprdBH68 vAXF4R7OF0LwtrXXHcXMpe79Xv5yvTbmm1ZPIGDa7CEGhaJJBye1FlE8kE/7//xmq56w jvEIFovum6NtQC+h8xyLyImhXDXXH2sFqt+cwjFB24cV5wWBKhxH6d8HB2M/dmSIhzXq 9Dew== 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=6NbFjkFyWM32p9EHP4XvhY+exv9Sw/mY2xKovCSkpc0=; b=b5ZkBNz3WdkqgdVWAXCwKom5VJrWT6iU3k1lhGageAo2oAWhsCs3EDmBpOznA0saIX 3sewCUWCeASqmolbcLEdYIBfZWLh8apbtkhCA8zwQ6gYEVExCjIM0W0kct+0Du7jhml4 9ZWHi0AaOewuXjZ4mYMJAn2nSZt2Nx9pT0hFKJwr75iIMpSR4ismwH0gdBE6xVa1Owx+ fRzkc/ydR+zvKorptT2kVAVlDXL93dVKctwemi61+bhBqvYXu1rnzfo/G5j1bmGP/m/U Cm94MM27i/horhp++WSNNmWxqrv3gM9chsEK78PizFr3YJYlIqcoy3jl60uBeEA86Rcj K9Dw== X-Gm-Message-State: AGRZ1gL33I4IDgLrtGmTNHLh2W5Q0WBOJCGUwOF0kJLc6yMh8xCsTv8N WbReUX3LiGSRjHg/BCf0e78= X-Google-Smtp-Source: AJdET5dd+Q1sBDb+Jb51w3RA5ZQn6RJIl42B46FonHaVgzi8wo+39tb11wXdva747IFl4gdwE6UElw== X-Received: by 2002:a63:6dc8:: with SMTP id i191mr5036556pgc.215.1540593615410; Fri, 26 Oct 2018 15:40:15 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id t9-v6sm3665536pgl.37.2018.10.26.15.40.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Oct 2018 15:40:14 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Subject: [PATCH v4 0/2] arm64: Get rid of __early_init_dt_declare_initrd() Date: Fri, 26 Oct 2018 15:39:49 -0700 Message-Id: <20181026223951.30936-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-20181026_154026_905928_702BBC0B X-CRM114-Status: GOOD ( 14.03 ) 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 v4 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. Comments welcome, sorry for making so many iterations, it's Friday. 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 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 | 26 ++++++++++++++++---------- drivers/of/fdt.c | 2 -- 3 files changed, 16 insertions(+), 20 deletions(-)