From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BA91EC4167B for ; Wed, 6 Dec 2023 21:31:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=e2z57Fti0vSEiwkm3bruHWSvOhL5kBB0/IyPjWSkuzY=; b=yuZ90vzJj7wcWt p45flU2RFqySOnZwiFgblQsKTJFx0Qiu8cD+v/t7YU+f42jiUs6fIgIPaiXafjfV6g+8HHQAf2MAL ZVw+31tOJR9tCrUSWXhM5u6PIOXp/r7g4yGrgVRFgpl+Jx9XtfPE84PFmmE+wowwfJXtkk/j5zmtN TEsvGIH+FGeb11XBkmq2skvhPjEHz2ekh6M4roIzAcoOorFvZpB75yFxab1Zp9fcU+lKk7OGaIQnC O8LWAbu5YKxejUzKQyB9Un+vc5TDX26usqXmtUyTP2gHupjquKd46+CWUPtIh6HiEskrAYlQwPZKE 82dw/DTGf/DmPqLDs7dg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAzUD-00BKHw-26; Wed, 06 Dec 2023 21:31:17 +0000 Received: from mail-ot1-f45.google.com ([209.85.210.45]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rAzUA-00BKHS-2n for linux-arm-kernel@lists.infradead.org; Wed, 06 Dec 2023 21:31:16 +0000 Received: by mail-ot1-f45.google.com with SMTP id 46e09a7af769-6d9a3c035b3so155510a34.2 for ; Wed, 06 Dec 2023 13:31:12 -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=ZPQAYo025BYwjSojM5CKNW3MqD7lCSXot47E4tsOrrpcoms8242d/DgBlX7VgqK4OX gHFdg5DGzv1UEpsAOSg8GgIILZcPdXFzR+W/27B7h8TGP2GPPKB7RzdS0ovs97LViFim 89ijCiPSzVy5/yGvO3IzscO1mC0LU2TCHyJwd13WoDHloXYze/yr3Q8oGeIhIELckgqU TAKFt768JQDj9ql+mx34LaZKIXem1iWc6y2WJJx72BCCJwS2/sNiqVv3zfvgo9Qm+OJP YOvXrS9Tz+WWcJMCOOcsRDrhvwBdXTY3tDqb4g6JjuZTs3awKR57a0pqS5Vsqbe1jp7t MFVg== X-Gm-Message-State: AOJu0Ywst8j2cLDeHQ+jjRVTVueWt2f9JFgm9WX2QdKnhH9uCttpk2BA cvUycMoFmvFRLf5XzxunLQ== X-Google-Smtp-Source: AGHT+IFtumfUIKo6aBSB0vh1CEIuF8AUYhrVdYrLyd/wuCnXSl+flurWmeZTod8cYMx1talrMVK7jA== 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-Disposition: inline In-Reply-To: <20231204185409.19615-3-quic_obabatun@quicinc.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231206_133114_908080_739FC825 X-CRM114-Status: GOOD ( 11.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel