From nobody Tue Jun 23 21:13:09 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 222CDC433EF for ; Fri, 25 Feb 2022 13:17:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241093AbiBYNSX (ORCPT ); Fri, 25 Feb 2022 08:18:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241205AbiBYNSJ (ORCPT ); Fri, 25 Feb 2022 08:18:09 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CB021BF91C for ; Fri, 25 Feb 2022 05:17:37 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id gb39so10862430ejc.1 for ; Fri, 25 Feb 2022 05:17:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qJcYYM2DkPdVZwcYMzgAzMuG+6ZX8EDHi8dueGVr0ec=; b=P1f1iCu7yseQoCkbh7nwOz2DmY4PxbU8FDu7xI2lIyMnoc9uLvs0AVnssodgQEGoej QbhEz1CffETEBMi/2pj/Iuao1PUMD2u5KJnZf7OWMmEyJVRXcYVwGF1RpAdvEazcc0Yp qUq7b8wz007abCYLff0Qjcu0+qlK7IxL5jfChOK3C2kAFi5XK3SqRJoGxxV5cj4ztCco vKcTk0H+IFA0ShFnaI9nVRXbouR/b6tfzSGqkZMRPMceXDK7ihdiUuZknxShgJBPYCT7 l5hmpIJR943m/H5635oPdZ0zTDf0pJs10KIrKQvOcj8eCFFa/5bqFdOWQlNE124RZgQ1 Miig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=qJcYYM2DkPdVZwcYMzgAzMuG+6ZX8EDHi8dueGVr0ec=; b=eCw6C5NJHJxSESXDcpIK0XDxMDGskfALFyCTsOPSepzA9CZCrRKHBqb/9OWlXpIv2k PFl2f8mvl/T6p6mZKd8TCZ++zX+xnGpW3llCSU2dE9dSLC3Z8t67DOOXf4gGPsUlejmU hAA5xck8NYJh+quc7XexbuqLILzwUrrev6k8wraHUkzmSTpgJ6w7U5obQTJqG2FnGwzQ BfitKoJ1+DyhjO4fj1FZL/qjB/akxw9lISCr8mnoWc+ZWWk2Aya3xHIq7qwjJum7kFIl jYn6q71Ll+HLvfgectV+rL1ruWLwFUN9p14ao7s+67NyxZ+GF0URpD71swyLE70LyWz0 0sjg== X-Gm-Message-State: AOAM532HH9UyGkR+ZZOpvj94l2xcjXqfq3oeLr6Q1H+P3KZpjyvk3Y9Q 4KGOB3o1zdRG0z8usuTN2EGOAqnRr28+rw== X-Google-Smtp-Source: ABdhPJzjaYu0PPKED3uWDxOL72JDadzM/0gRi+akN+loDvo2G/sZbUPlyQjTt0lTmtjrzQ2km/fs5g== X-Received: by 2002:a17:907:369:b0:6cf:d106:acae with SMTP id rs9-20020a170907036900b006cfd106acaemr6067619ejb.456.1645795055582; Fri, 25 Feb 2022 05:17:35 -0800 (PST) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id k17-20020a1709062a5100b006d5c69301e4sm974864eje.202.2022.02.25.05.17.34 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Feb 2022 05:17:35 -0800 (PST) Sender: Michal Simek From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Cc: Andrew Morton , David Hildenbrand , Kefeng Wang , Mike Rapoport , Russell King Subject: [PATCH 1/2] microblaze: Wire memblock_dump_all() Date: Fri, 25 Feb 2022 14:17:30 +0100 Message-Id: <6f480b6010068872f429df69c8894cc3f1f38f46.1645795048.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Wire memblock_dump_all() to be able to see the whole memblock allocation. Dumps are enabled by passing memblock=3Ddebug via kernel command line. Signed-off-by: Michal Simek --- arch/microblaze/mm/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index 952f35b335b2..de0d8b03af21 100644 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c @@ -263,6 +263,8 @@ asmlinkage void __init mmu_init(void) =20 /* CMA initialization */ dma_contiguous_reserve(memory_start + lowmem_size - 1); + + memblock_dump_all(); } =20 void * __ref zalloc_maybe_bootmem(size_t size, gfp_t mask) --=20 2.35.1 From nobody Tue Jun 23 21:13:09 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A630CC433F5 for ; Fri, 25 Feb 2022 13:18:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241092AbiBYNSf (ORCPT ); Fri, 25 Feb 2022 08:18:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241261AbiBYNSQ (ORCPT ); Fri, 25 Feb 2022 08:18:16 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3345B1BD9B2 for ; Fri, 25 Feb 2022 05:17:44 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id s24so7373837edr.5 for ; Fri, 25 Feb 2022 05:17:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dO8HMA/5Eh/PQhBGunCbdVuLS3TIlJbSFBfnd4KP1ZA=; b=t1h7EEni6r2llc8EEkysxjmDiPxl6J4C5lhfxag6JC9O9e7PAOVfpkv6BJgZconjrr Xru0HXOojShRdG81rPj8eO138b4c+CfrCb7nGFZ5PEDiEtxmMwgmJ4zai1HmbSdER89W asOsByb1VrR24v6pG5x1UUSnl/NxbvII5cy+RGwJoiK38FK2OtlBrzVi+GugWxwlqCuC WAVNctrEa7Dt0EobWgoPUL1qwuqIIXEsZsRQD4476ZjLOy8l1AjjbkZlhReGf8V5n/Tq 3VdTJKrwiZ0F0gUrrbi0DSQ47xz0Z4aq/Vb4xDYSJUPDhc6oI7sGtRLHPI2xC/droCn7 3MFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=dO8HMA/5Eh/PQhBGunCbdVuLS3TIlJbSFBfnd4KP1ZA=; b=OVkNbrvGX7nuwqQzm622tA3la2WNX5trDHdbny/7t7JzDKGcWZKDazuPUuATQB3d1h jDmUQPEZ17tyw5Q/iXscUL1xCFyWriFkUmMf+maDqy+Y7Tp3NwYm7l29sEJ8ekw4AW/G JXgQp2igj70g5knRYc3nq1cmRuiNBUbMJTVLnU2nyqn+VzqxJOMYM/Jk4uvu5BCwuJ0N YIz814hRJMfeXgUD5EfHCKruMa+GaFM1MvMtllFyy2n1qO2zQD2YvRzX/um9y5rkFSD1 Yinon076enkWomrA6hlLwnwK+rNycyZ97P5qXlbsq4aZg8T96KPo568D+/5LPRHZk2tV wuuA== X-Gm-Message-State: AOAM530yaPYZcXyES8V6bY4GMAgnqkJWtmF/V8ayYj/hXKjphZ+TmLS7 9duOT6V2POmlLpatThQSFJSflbWMW5IkSw== X-Google-Smtp-Source: ABdhPJxlF6V2OfbhO1lMwKSPZnxGj4kQY7uZeCZnsoHBQacIW0G3+ZuzweuRwehYY93PosvzfmtyuA== X-Received: by 2002:a50:934b:0:b0:410:befb:cfd0 with SMTP id n11-20020a50934b000000b00410befbcfd0mr6957827eda.27.1645795057612; Fri, 25 Feb 2022 05:17:37 -0800 (PST) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id lf4-20020a170906ae4400b006d5b6de1803sm587621ejb.104.2022.02.25.05.17.36 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Feb 2022 05:17:36 -0800 (PST) Sender: Michal Simek From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Cc: Andrew Morton , David Hildenbrand , Kefeng Wang , Mike Rapoport , Oscar Salvador Subject: [PATCH 2/2] microblaze: Add support for reserved memory defined by DT Date: Fri, 25 Feb 2022 14:17:31 +0100 Message-Id: X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" In DT reserved memory nodes can be added as is described by Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt but Microblaze didn't have a support for it. The similar change was done for ARC by commit 1b10cb21d888 ("ARC: add support for reserved memory defined by device tree"). It is pretty much enough to call early_init_fdt_scan_reserved_mem(). Microblaze is not using initial_boot_params that's why there is no need to call early_init_fdt_reserve_self(). Signed-off-by: Michal Simek --- arch/microblaze/mm/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index de0d8b03af21..f4e503461d24 100644 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c @@ -13,6 +13,7 @@ #include #include /* mem_init */ #include +#include #include #include #include @@ -261,6 +262,8 @@ asmlinkage void __init mmu_init(void) =20 parse_early_param(); =20 + early_init_fdt_scan_reserved_mem(); + /* CMA initialization */ dma_contiguous_reserve(memory_start + lowmem_size - 1); =20 --=20 2.35.1