From patchwork Tue Oct 30 23:07:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 991171 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="B+rzqX1t"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GkWhFgrA"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42l6Zq73ffz9s8r for ; Wed, 31 Oct 2018 10:08:19 +1100 (AEDT) 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=2GQZFz+nLj+6wxdUSfnKpqIBCaCi10+ssEj+lVms2yM=; b=B+r zqX1tCvrY38QPDS5ZGchoa5TMTYABhDslLzOQ5iPhWY3mTlvCPXh0DSBaCgnc9qs5HWqE35j4pMs4 klqTpaQRYzGjFZk8kgweSkdAN5D/2XWT62ivE/KC5SdgCcdpVVK7PYQANPkOWB7AyMJK0jMUWZkf0 znT0PTIT0Gi0YtM10JxmLql1gj+olvr58ar3rs+oLAxI4K3nEbnUQ0HzAyvpRYrQM/jgAwPsA4Udg fKLafr8tf7pVRgmFaTPrOvsI9Jtagdt9rHxXjDpp/eSnif28kU211gLmitMYF6QNicLYQeBSZRgd+ FmO2nI/7hwBQ/KqgfwMXGz0rZIhWrGg==; 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 1gHd7Q-0003Pn-Ry; Tue, 30 Oct 2018 23:08:16 +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 1gHd74-0002ve-WD; Tue, 30 Oct 2018 23:07:56 +0000 Received: by mail-pf1-x442.google.com with SMTP id b11-v6so6615784pfi.5; Tue, 30 Oct 2018 16:07:44 -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=XfAFF30A3FXmhnhQJoMd3dHdYPobUy+1OSlpFhlT3i4=; b=GkWhFgrAtWXPJbRCpu1d7yChmE1NtqQ1Sh6ikSpUdTOBupHIsGTPvd/H9I9kE/MmGn uR7iI+BFF4P4JU2G4AT3222l72m1Zcy3BqKxjkutI7CKHYxBtpEXBZdP/RcMvO9zPXQ7 ojU97KmxbcoxdBfJC/WpsKtKEjBbip08l2daOkf9td5SrkQpNU5r7QzI9yax/vSC5cX8 /Kui4txZZJeNKThs3gmscdRIBdmE/DN0Z/jTV+qANyUB5qHtMYYv5vVaj0v0a0fcrkgN rJec9VQxV9LXLTL14vH/QnCpXRg/sf06yMKTT6/pd1PNkpY3xDSgsPlfomw5QWuEYhPm o6iQ== 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=XfAFF30A3FXmhnhQJoMd3dHdYPobUy+1OSlpFhlT3i4=; b=fBsgOY9prHfqf5n4kdl+ZW/vajkxjoSFYhtoMHKxJZyYVA15rDvk4i8wlWSkH+j2DG hY9aZ86hwiHHSExTJQW1hEAqzSYm5Pfy9KqYBShcj8u6D9kU+3DaINEhrGuuPNzdVF59 GLVzuhRyChbnjHFZ/JWd51PTe2wche1OGOFSDpRaHiJGU73hkG0jrNAAkpnDi4dAfR3e TE8AzOyTR386gstKRRrq9y+mPRironOZlYmST3ha9gmpADRQxEzbZXHnUH28e7GZ9WO8 MjSReXG6p1uWX75XYnHKZaiPU9hDQP0U3lTswtRFC2Z09Fx9qopZEQKN+3YMa29mDJpd R+xA== X-Gm-Message-State: AGRZ1gJao5Q71cVq0qo7MOsitwjVR3/AZNNDxV61J3mguDCSvLBarWY/ tbImMs5lON2TchsNL9TnlVo= X-Google-Smtp-Source: AJdET5fs1HG8NPnQ/g2MkJipSiVB3LTAzBVQnqN3GwAqPS7DP9FTZnZ0vRwNxfnuvw36ja8it2sNXg== X-Received: by 2002:a63:3546:: with SMTP id c67mr686686pga.284.1540940863927; Tue, 30 Oct 2018 16:07:43 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id f14-v6sm3431689pgr.87.2018.10.30.16.07.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Oct 2018 16:07:42 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Subject: [PATCH v2 0/6] arm64: Get rid of __early_init_dt_declare_initrd() Date: Tue, 30 Oct 2018 16:07:15 -0700 Message-Id: <20181030230721.28429-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-20181030_160755_040276_5EE01D9F X-CRM114-Status: GOOD ( 10.73 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:442 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (f.fainelli[at]gmail.com) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: CHANDAN VN , Catalin Marinas , Will Deacon , Stefan Agner , Masahiro Yamada , deanbo422@gmail.com, 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 , green.hu@gmail.com, gxt@pku.edu.cn, "moderated list:ARM64 PORT AARCH64 ARCHITECTURE" , linux-snps-arc@lists.infradead.org, ard.biesheuvel@linaro.org, vgupta@synopsys.com, Johannes Weiner , Andrew Morton , Robin Murphy , Greg Hackmann MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Hi all, Changes in v2: - get rid of ARCH_HAS_PHYS_INITRD and instead define phys_initrd_start/phys_initrd_size in init/do_mounts_initrd.c - make __early_init_dt_declare_initrd() account for ARM64 specific behavior with __va() when having CONFIG_DEBUG_VM enabled - consolidate early_initrd() command line parsing into init/do_mounts_initrd.c Because phys_initrd_start/phys_initrd_size are now compiled in ini/do_mounts_initrd.c which is only built with CONFIG_BLK_DEV_INITRD=y, we need to be a bit careful about the uses throughout architecture specific code. Previous discussions/submissions list here: v3: https://www.spinics.net/lists/arm-kernel/msg683566.html v2: https://lkml.org/lkml/2018/10/25/4 Florian Fainelli (6): nds32: Remove phys_initrd_start and phys_initrd_size arch: Make phys_initrd_start and phys_initrd_size global variables of/fdt: Populate phys_initrd_start/phys_initrd_size from FDT arm64: Utilize phys_initrd_start/phys_initrd_size of/fdt: Remove custom __early_init_dt_declare_initrd() implementation arch: Move initrd= parsing into do_mounts_initrd.c arch/arc/mm/init.c | 25 +++++------------------ arch/arm/mm/init.c | 28 ++------------------------ arch/arm64/include/asm/memory.h | 8 -------- arch/arm64/mm/init.c | 35 +++++++-------------------------- arch/nds32/mm/init.c | 2 -- arch/unicore32/mm/init.c | 24 +++++----------------- drivers/of/fdt.c | 11 +++++++++-- include/linux/initrd.h | 3 +++ init/do_mounts_initrd.c | 20 +++++++++++++++++++ 9 files changed, 51 insertions(+), 105 deletions(-)