Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1151245imu; Mon, 5 Nov 2018 14:58:41 -0800 (PST) X-Google-Smtp-Source: AJdET5fZTipfUkknRgmgZfUR51GjaiFRfu/1DJHkgYZQqbqlD2NstwUcgWNzy8XfqRryWha2N6o+ X-Received: by 2002:a17:902:144:: with SMTP id 62-v6mr23231687plb.142.1541458721873; Mon, 05 Nov 2018 14:58:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541458721; cv=none; d=google.com; s=arc-20160816; b=lv3AhPMJhbrwH4hg5bcP94/bc42QyxgctNrmjjN8lB+dhfm04LuoYAq7dNwTn1zGDz 4jixHogHEVAmQnMMesrVo1w+vMfCn1REKkT/8qhrvPybXMDHITXDAXPU1Ts0uUE//lTf EMstKOGHM27qs68lWP/FHBHVWbOwCVBMVKS/1MNuRVNDLsKUJ9i4oGgG+C6ljAV0P479 EP/vk+Oa85JB1s1kBBrT7iDuvzTV5/PmX06yB5QueWtJzRz4oaQxgbIQaZEZqE0w5QW8 CB9h2/4KWwnhszH9tY3Upcth2Dx/wSJoFrswbJs5Jxgy78BjCQ1zDQUkw4JzZ/UHT5NS De3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=rRXr2ehAZecUxevmphGf0OBMQL7jTK4DUFokuxn+GwY=; b=f59XeKP/Hg3ag9auFdGQW9bnKMsuB4byiFBJo9EdkU2OrUFnWWdMLl4yj87pv0A+2I 0w2NyqzWZ/7DoP4PsjwbdCeAiC4aYIDARIyAwKxeAYHMLb2RcSyzhBnqCfvAVj2rhjqM mKm48wnIi70CgNMmabfhyd/EY34SSNq6K86Fi1EoMuH4gMCAFs7V2hwZ1ZS87KEYf5OL dbaO48R3Gk+MF1+PRTazGHI1bE2VuNf751RHundns7BVoc8RekYfaRbxJxPR0aZvNADy kDF1jIhsaM6jbgTl0Ogqqh9lnzlfjpt6gPZ+KtVRtYstxg/BNjAl9Q1EW7QUZwut/bXa Z5nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j5BYBptQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u14-v6si43621909plq.268.2018.11.05.14.58.26; Mon, 05 Nov 2018 14:58:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j5BYBptQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388233AbeKFIT5 (ORCPT + 99 others); Tue, 6 Nov 2018 03:19:57 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:36716 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388034AbeKFIT5 (ORCPT ); Tue, 6 Nov 2018 03:19:57 -0500 Received: by mail-pl1-f194.google.com with SMTP id w24-v6so5183154plq.3; Mon, 05 Nov 2018 14:57:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=rRXr2ehAZecUxevmphGf0OBMQL7jTK4DUFokuxn+GwY=; b=j5BYBptQkuEM6+OsRYBGazR6nXTiQUwM05QdW9d8nMpOY+BziHg6FvM1eIb5B6ggfQ Dhq8J92uiVin1TZKjRDm/FPtfyN1nVCCqmQiJ02jCWCrbBY1AuGqJpZkBQ9PgZHKYKsY SmK76O/PvwAyKC4t+6edxsMlZQJ2D58ivZ77CbVWon7L+mi9tyDZam30zs2705PQZzSm KnzHBLdWzPFziagtP7rWdyP8eSuSSMsLzLQLr0eqDi+ljhTgf7hqZvHGSTTCDJw+TI7V AhnF1OoDD5eExOyuHMlqKK94RyeT2rrGN4HCCRPF5yIUTn4/EB6+CkaraNtEM8P6Jrtm gdVQ== 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=rRXr2ehAZecUxevmphGf0OBMQL7jTK4DUFokuxn+GwY=; b=BfoX44GgwSK3zYnoRD66r9qa9IVe0ygNa0Xed3csKfDgylavswrAWlxam6dCRYYhAG dBGsmyVuO4S3NlFnCyzCfpHjl5Ekl7Noqg9xTPphXeb0CzaRQ8JJOqhnY3Ub/wv49WPQ yBGrWFYId3LyCkO86/VSP8GIesTZrhixdGsSgAXHQVYGmJCPuX7EfCI0EjRDCcfOY8a9 3lbO8XMmh3EwFSAQ48irXUlEbqfcT1AfkPOtvXCjOQHKBR+4x/7PvdsY/gJYxVLlDNVC eEmwMczc9pkPcfYXorvcaQuLp47A2RAnzzh5wms3CDOKWf6NF9eeMhd3mceYdW5UDyBT kOew== X-Gm-Message-State: AGRZ1gIpUBwN5YPTgHF0fRyefi0kBqkhSB3shNR5nmy+nDH4qCAHD7u5 D4HmZ9n4B91tXHqeljR7fqARGy+K X-Received: by 2002:a17:902:8214:: with SMTP id x20-v6mr5193274pln.224.1541458674421; Mon, 05 Nov 2018 14:57:54 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id q195sm12898479pgq.7.2018.11.05.14.57.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Nov 2018 14:57:53 -0800 (PST) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Catalin Marinas , Will Deacon , Rob Herring , Frank Rowand , Andrew Morton , Marc Zyngier , Russell King , Andrey Ryabinin , Andrey Konovalov , Masahiro Yamada , Robin Murphy , Laura Abbott , Stefan Agner , Johannes Weiner , Greg Hackmann , Kristina Martsenko , CHANDAN VN , linux-arm-kernel@lists.infradead.org (moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE), rppt@linux.ibm.com, linux@armlinux.org.uk, green.hu@gmail.com, deanbo422@gmail.com, gxt@pku.edu.cn, ard.biesheuvel@linaro.org, linux-snps-arc@lists.infradead.org, vgupta@synopsys.com Subject: [PATCH v4 0/6] arm64: Get rid of __early_init_dt_declare_initrd() Date: Mon, 5 Nov 2018 14:54:25 -0800 Message-Id: <20181105225431.24485-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, Changes in v4: - dropped initrd_below_start_ok assignment in ARM64, not necessary at all (Ard) - replace #ifdef CONFIG_BLK_DEV_INITRD with if (IS_ENABLED(CONFIG_BLK_DEV_INITRD) for consistency with other parts of arm64_memblock_init() (Rob) Changes in v3: - use C conditionals in drivers/of/fdt.c - added check on phys_initrd_size in arch/arm64/mm/init.c to determine whether initrd_start must be populated - fixed a build warning with ARC that was just missing an (unsigned long) cast 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 | 34 ++++++--------------------------- arch/nds32/mm/init.c | 2 -- arch/unicore32/mm/init.c | 24 +++++------------------ drivers/of/fdt.c | 17 ++++++++++++----- include/linux/initrd.h | 3 +++ init/do_mounts_initrd.c | 20 +++++++++++++++++++ 9 files changed, 53 insertions(+), 108 deletions(-) -- 2.17.1