Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3873241pxu; Mon, 12 Oct 2020 03:39:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxydGnk4N6sMKuvvoe7g9a00AJYTfQKzpqs2qV2vRYwynXVbpJO4KULKbQHqYkgvMwLnJjv X-Received: by 2002:aa7:d65a:: with SMTP id v26mr13945453edr.82.1602499183402; Mon, 12 Oct 2020 03:39:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602499183; cv=none; d=google.com; s=arc-20160816; b=uPqHB4+IQe3vnnk9cmy+Yg2Qxlu6Uk9zBUDwVRCrwQKh1URqQIn+JlMcoFfyt1Axns mHy1xwl8CIYy5UxUTtH0Ef0KQgWBAiPeC07HfqGEsjz8qBVTOMG7rWHNyppAPAd044bG e6gYKK+9dBI/OOfKOcwl0bwms6FKlH6Ncnq4BVlAxVMaYdeqSq+0ClUVHOCo6choPg2y 5xAW/UyLu+js9m6aN1FOZmAoxJQ1d3kQMGKV7zW3XzwdTLySgXFIFz+d4ZDrE9dXF9Wf aBC1UKuGdHYDmycrtBwYxuEdHZFGwR8vzhgWy61VduqQ4sUjOuBBmAtCFanmlJMO34Ly ZgUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:to:from:date; bh=g15hHO0AQ+YrwaLm0hUrRqBCiuib5CxlfLCqjRv3mec=; b=OFuruK4PAMgBAsQvyfFIpoH3bFoRiJe9kAJ02063Hpydq5kpI0xSW4yWfH8FRkNEzl DXlVina1Uaf2bndt6LAmdYW5m0xirAdTLfgIMDVOe18cVYFXfKH7C5quKQJKq63+juJZ eDzdG6dCnwRfon4a51qNaIwkFxtiTxrHpz7k1aNUlxmpL+6puiwNSQaS887gBIKW+bym j+ADlwSX7ibfr5SPtDMXqTQOEqA2T26POeNysi2AZKJgwELdowjTjExeGeV0v+HcRpJE EjpmX/hray+wH7KWzqPT4dqbnXjSNriBANxdEWAcqMEihkM10PSnj1R8E+h+ip+yaN3o mvXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt21si12623624edb.243.2020.10.12.03.39.19; Mon, 12 Oct 2020 03:39:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387631AbgJLKiT (ORCPT + 99 others); Mon, 12 Oct 2020 06:38:19 -0400 Received: from elvis.franken.de ([193.175.24.41]:58427 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387598AbgJLKiS (ORCPT ); Mon, 12 Oct 2020 06:38:18 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kRvDc-0008KW-05; Mon, 12 Oct 2020 12:38:16 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 15A1CC1140; Mon, 12 Oct 2020 12:31:23 +0200 (CEST) Date: Mon, 12 Oct 2020 12:31:23 +0200 From: Thomas Bogendoerfer To: Hauke Mehrtens , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, "Maciej W. Rozycki" , Jiaxun Yang , Keguang Zhang , John Crispin , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3] MIPS: replace add_memory_region with memblock Message-ID: <20201012103123.GE7765@alpha.franken.de> References: <20201009121449.64081-1-tsbogend@alpha.franken.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201009121449.64081-1-tsbogend@alpha.franken.de> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 09, 2020 at 02:14:46PM +0200, Thomas Bogendoerfer wrote: > add_memory_region was the old interface for registering memory and > was already changed to used memblock internaly. Replace it by > directly calling memblock functions. > > Signed-off-by: Thomas Bogendoerfer > --- > Changes in v3: > removed early_init_dt_add_memory_arch and > early_init_dt_reserve_memory_arch as there is nothing > special about our version and we can use the generic ones > > Changes in v2: > fixed missing memblock include in fw/sni/sniprom.c > tested on cobalt, IP22, IP28, IP30, IP32, JAZZ, SNI > > arch/mips/alchemy/common/prom.c | 3 +- > arch/mips/ar7/memory.c | 2 +- > arch/mips/ath25/ar2315.c | 3 +- > arch/mips/ath25/ar5312.c | 3 +- > arch/mips/bcm47xx/prom.c | 3 +- > arch/mips/bcm47xx/setup.c | 2 +- > arch/mips/bcm63xx/setup.c | 2 +- > arch/mips/cavium-octeon/setup.c | 24 ++++++------- > arch/mips/cobalt/setup.c | 3 +- > arch/mips/dec/prom/memory.c | 8 ++--- > arch/mips/fw/arc/memory.c | 28 ++++++++++----- > arch/mips/fw/sni/sniprom.c | 4 +-- > arch/mips/include/asm/bootinfo.h | 7 ---- > arch/mips/include/asm/netlogic/psb-bootinfo.h | 1 + > arch/mips/kernel/prom.c | 25 -------------- > arch/mips/kernel/setup.c | 50 ++++----------------------- > arch/mips/loongson2ef/common/mem.c | 12 ++----- > arch/mips/loongson32/common/prom.c | 4 +-- > arch/mips/netlogic/xlp/setup.c | 2 +- > arch/mips/netlogic/xlr/setup.c | 5 +-- > arch/mips/ralink/of.c | 3 +- > arch/mips/rb532/prom.c | 2 +- > arch/mips/sgi-ip32/ip32-memory.c | 3 +- > arch/mips/sibyte/common/cfe.c | 16 ++++----- > arch/mips/txx9/jmr3927/prom.c | 4 +-- > arch/mips/txx9/rbtx4927/prom.c | 5 +-- > arch/mips/txx9/rbtx4938/prom.c | 3 +- > arch/mips/txx9/rbtx4939/prom.c | 4 +-- > 28 files changed, 82 insertions(+), 149 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]