Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1267106rdb; Wed, 6 Dec 2023 13:31:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHpOkAhkGws95ykf1rIbqNL1ljgzvgXLSWnMGbzqvdiNtc//1o44xPPfyBPTFNGeKrbYJ1E X-Received: by 2002:a05:6358:3982:b0:170:160e:b193 with SMTP id b2-20020a056358398200b00170160eb193mr1734765rwe.22.1701898295087; Wed, 06 Dec 2023 13:31:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701898295; cv=none; d=google.com; s=arc-20160816; b=F05cF8vYvpkxbUJYnDXfqrYjixR6vr3EgWv58RjGd1qtvmbDUnDOY4xj9DGcmmOP3J XfYg6688oyH089EGklE0OVchnBjGxAE7yDFSStS9svjLu8T2xcCzQTN22OzO7K8qLube BaydUm021kSrzJlux3siOfI7OWnORSiVBDCdGgNlpYMWd/bp3cvic7i+KTEibupf7ddR gG5QRRnCiyVmh1cwRzzOL28C575WCUDDjpfMVbNFNdrpxoq75BYT++8crDNL3luFuC8C MHxs75Ba3w1je18nix+nu2obcM4Dm5as4YsIc2Kii45FkPnx2LOIT0K80QuSvNbhlx1L 6MSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=IXOKcwNylDDzpj359uSheKfusXLn+oML8Kk/hPty+vk=; fh=ejkD/PcIIdwKF4fQQqp6oHjd4XbvTGPt7ZYhcqowtOU=; b=GbyK8Lulo4kzQ5hS4zPCZMJJLLVANURubwTy5XNmrCWPItlIq0mfiwCKR6Z+kJ6O6f p2XmoK13LA7qrVMraS25Nvrb0b4HG5BS0PaVZgnHCxzcj8jr1MPMyBLH47fKhAqJGTW9 jrXFd8dA3MrO7lA5BNU03yNtCbh5yku1aiJjhghoVPEeU8I3M/Jrv5HmrWIXiTRy9SqV wO63E0P0KyWelUHCim4r8OYPmeDl3zs5XELqMyBUTLLdMOd/Y8d6csl+gVe2L1hXpb3v DppUu4rY6xFoOVrLTWbXATb2NVK+jc8jcVup2tO2HyszvA5JxKkZT4GRW18PL1Zn05t2 /EVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id z19-20020a63e113000000b005c1ce3c9617si474365pgh.901.2023.12.06.13.31.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 13:31:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D6AB280D650C; Wed, 6 Dec 2023 13:31:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442958AbjLFVbJ (ORCPT + 99 others); Wed, 6 Dec 2023 16:31:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379773AbjLFVbG (ORCPT ); Wed, 6 Dec 2023 16:31:06 -0500 Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D5CCD4B; Wed, 6 Dec 2023 13:31:13 -0800 (PST) Received: by mail-ot1-f46.google.com with SMTP id 46e09a7af769-6d7e56f6845so172152a34.0; Wed, 06 Dec 2023 13:31:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701898272; x=1702503072; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IXOKcwNylDDzpj359uSheKfusXLn+oML8Kk/hPty+vk=; b=trLYAjApi+4jVlwzW0SLWoeRfikk/L2itL6GTuBd6q6c82gAHTMLCFvv6DNqLted6w QhlHnk2QHWvsk9bzfZ5+7J6kkL5uMdgXmNeLJyqVL05ZWAagjxShl95gs1bZeD4KjfX9 amp8ODwkC0NMkkSP+QA3qFRIFAo3dFZ6oT9Z45ILSptS5CULQUjAF0EleiuX2VLhPxDK XOR411cl0vsBARPIvLxRp+DxGe69YPGXn4LFCrr48KvNwhvsjEjYeEkZwC2Nieesimr1 YVKqcm3xVo5vBL7/6o76x3z9WPz56Xc3UQiOhY2wdq/r8PwpmZmmtUataLg/saxk625m TmMA== X-Gm-Message-State: AOJu0Yw8ebGlZMqyzP96ZqIFL3r/wYjYj3AJk0djkgHGaBJPCXthJb9C 2y3vMey+jcJXgYnXOzqa1Q== X-Received: by 2002:a9d:7dd5:0:b0:6d8:585b:410b with SMTP id k21-20020a9d7dd5000000b006d8585b410bmr1698733otn.8.1701898272290; Wed, 06 Dec 2023 13:31:12 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id n16-20020a9d7410000000b006d94fa88156sm114804otk.14.2023.12.06.13.31.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 13:31:11 -0800 (PST) Received: (nullmailer pid 3358370 invoked by uid 1000); Wed, 06 Dec 2023 21:31:10 -0000 Date: Wed, 6 Dec 2023 15:31:10 -0600 From: Rob Herring To: Oreoluwa Babatunde Cc: catalin.marinas@arm.com, will@kernel.org, frowand.list@gmail.com, dinguyen@kernel.org, chenhuacai@kernel.org, tsbogend@alpha.franken.de, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, mpe@ellerman.id.au, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, chris@zankel.net, jcmvbkbc@gmail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, kernel@quicinc.com Subject: Re: [RFC PATCH v2 2/6] of: reserved_mem: Swicth call to unflatten_device_tree() to after paging_init() Message-ID: <20231206213110.GA3345785-robh@kernel.org> References: <20231204185409.19615-1-quic_obabatun@quicinc.com> <20231204185409.19615-3-quic_obabatun@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231204185409.19615-3-quic_obabatun@quicinc.com> X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 06 Dec 2023 13:31:25 -0800 (PST) On Mon, Dec 04, 2023 at 10:54:05AM -0800, Oreoluwa Babatunde wrote: > Switch call to unflatten_device_tree() to after paging_init() on other > archs to follow new order in which the reserved_mem regions are > processed. You did this so that you could allocate memory for the reserved regions. But unflatten_device_tree() can already do allocations using memblock. So the same thing should work for you. I suspect that moving this will break any arch that called an of_* API between the original call and the new call location. Rob