From patchwork Mon Oct 29 23:52:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 10660391 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 1208E14E2 for ; Mon, 29 Oct 2018 23:54:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF18328CD0 for ; Mon, 29 Oct 2018 23:54:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF85529238; Mon, 29 Oct 2018 23:54:53 +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 6859328CD0 for ; Mon, 29 Oct 2018 23:54:53 +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:References: In-Reply-To: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:List-Owner; bh=Dh0CfulSgccjEWEmTrszdlESBdnHEl15BSKKxUPMNuw=; b=W3EXyO+ToMsUaDNILPlMk+/Zh+ SLlJ46sezCtyJxZKthdwupGg8t9yDEAZyirzOWirauaYN03S9FcKmf0nJBG+gOdM4FnfP2984JMtd FRB9kyOEGuwhEl4qh17dHLwV39HUddUrA95+vobxr3wQKmnVM6QRHiYcdv7d/85MqTFEN4Ou7ntfB X6S3Hvfd6Ev4Ef3qM4Wuje4iV/tzICVW4gIZaWbUZMgcUMA46+WVVX0IiXiKCUMB/bsiFKT6nje/O WZHnvu0qif5K9Fyale/8MMjPpofgizUY9KB1dYekr89Yqiv65bQhDnWGcSj+swJFXtmfueDAZZWoJ GlJHzBZg==; 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 1gHHMv-0004xC-1d; Mon, 29 Oct 2018 23:54:49 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHHL0-00042U-0M for linux-arm-kernel@lists.infradead.org; Mon, 29 Oct 2018 23:53:01 +0000 Received: by mail-pl1-x642.google.com with SMTP id b5-v6so3965515pla.6 for ; Mon, 29 Oct 2018 16:52:39 -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:in-reply-to:references; bh=IdcEyKMm4vYhsKy4CABorYdVSsAXOdKZ8deL2wX7NRA=; b=p3ns2q3uzt5IPKy6pThwMWZ+2BxmXDhR3fDNiRBZP3zz+NeZkGWhmEOqgy3IhrdGZq vlO3fgpwrVCPFKTqGDaDJ8cLQuK85GgbCTHTKd4VjD0BG2fTiigh+hFiO5GTR33UqAVH gn+5ZYyKvFlJ8F/eeWdo6L20gBgbllK3tLGDiQ5cKJxR/8wB3/Cme35fqIIbG3PP51PX Api8AXpXIdJs9arp2NYdfj1XQQbM64UIxW8nZRdv3dJRN8uSNraqY4rZohKP7GhFxVP1 W7ICGYefk0t+wHCjlJFrGi2CNGZsC88l07AQE0t34lKcPPs5vXLtGfDNgjFOPfnutGFP FBEg== 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:in-reply-to :references; bh=IdcEyKMm4vYhsKy4CABorYdVSsAXOdKZ8deL2wX7NRA=; b=eKb328C4BdcrXTXe1T4+m4f3RNU8qO0Cyr/2RW7bUBTNQ/1xAh6YyfNbJF3Zn32LY7 F4CLgxul8hs+iBjO1ww8njrrT/L3iOgxGxszHVqFXBRjeEFiCgEHT81xlnWYUj+9Ls1I hFdJz1RBcGF6qGvGyW4qx/Tkxd4jTGc5At7prGcRlB0jtQXci1AMFoV/v0sf8Vf+vBYW uxS2DtiHlLTFl4N/QJ8eRZgSEGTxuKh3JluZYHwP7CNvUc7kp/evvE9FovdWCe0vffg2 7WuyCE9e8JXTVSny0OBvlseZarjH86rXB+7D+BPgeA9P0Sh458Ek6twk/KNi6tirDw1j xKOA== X-Gm-Message-State: AGRZ1gJSgp2teMpu/V1hi15qSmMAGEhNHxbG+wbgOuZB9PsPVDFNmV1r S9ldXsNPWyYtN3jn5aA+NI0= X-Google-Smtp-Source: AJdET5f46Izd+jiHB1knz9Af4+W7TgXITKwkUfBEb0OM3n+3u7kESWfwo+gWbpH5EzG5zr+mUBJzEg== X-Received: by 2002:a17:902:5066:: with SMTP id f35-v6mr16157636plh.145.1540857159247; Mon, 29 Oct 2018 16:52:39 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id k13-v6sm22537981pff.30.2018.10.29.16.52.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 16:52:38 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Subject: [PATCH 3/6] arch: Define ARCH_HAS_PHYS_INITRD for ARM and Unicore32 Date: Mon, 29 Oct 2018 16:52:03 -0700 Message-Id: <20181029235206.30060-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029235206.30060-1-f.fainelli@gmail.com> References: <20181029235206.30060-1-f.fainelli@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181029_165250_092712_D600F896 X-CRM114-Status: GOOD ( 14.94 ) 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 , 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" , ard.biesheuvel@linaro.org, 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 Make ARM and Unicore32 select ARCH_HAS_PHYS_INITRD meaning that they do define phys_initrd_start/phys_initrd_size and make use of it. Signed-off-by: Florian Fainelli --- arch/Kconfig | 7 +++++++ arch/arm/Kconfig | 1 + arch/unicore32/Kconfig | 1 + 3 files changed, 9 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 9d329608913e..0926f8291782 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -865,6 +865,13 @@ config HAVE_ARCH_PREL32_RELOCATIONS architectures, and don't require runtime relocation on relocatable kernels. +config ARCH_HAS_PHYS_INITRD + bool + help + An architecture selects this when it needs to act on the physical + address of the initial ramdisk and allow generic code such as + FDT to populate that address. + source "kernel/gcov/Kconfig" source "scripts/gcc-plugins/Kconfig" diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e8cd55a5b04c..b87c40701b0e 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -11,6 +11,7 @@ config ARM select ARCH_HAS_KCOV select ARCH_HAS_MEMBARRIER_SYNC_CORE select ARCH_HAS_PTE_SPECIAL if ARM_LPAE + select ARCH_HAS_PHYS_INITRD select ARCH_HAS_PHYS_TO_DMA select ARCH_HAS_SET_MEMORY select ARCH_HAS_STRICT_KERNEL_RWX if MMU && !XIP_KERNEL diff --git a/arch/unicore32/Kconfig b/arch/unicore32/Kconfig index 0c5111b206bd..28a66ae61dcf 100644 --- a/arch/unicore32/Kconfig +++ b/arch/unicore32/Kconfig @@ -2,6 +2,7 @@ config UNICORE32 def_bool y select ARCH_HAS_DEVMEM_IS_ALLOWED + select ARCH_HAS_PHYS_INITRD select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_MIGHT_HAVE_PC_SERIO select DMA_DIRECT_OPS