Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp871189lqc; Fri, 8 Mar 2024 14:27:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXtT6CE0MvCpIoYu4KbTVOOI9WQA+xyEEQ8USByePrT+rxVePr/gR5WYvHkGVzCuxrftb7OuAPPHXVpuRMu9pBkT20MOxfkAkwoaRBIkA== X-Google-Smtp-Source: AGHT+IFzZOIEPiYXbLELIZQgI8sO2VX1Ig72VlNCXdLV5z9pn6h/bHpVPmh8tIIpLxuqIotXiWE1 X-Received: by 2002:a05:6808:1b08:b0:3c2:3b94:41f7 with SMTP id bx8-20020a0568081b0800b003c23b9441f7mr291440oib.22.1709936851943; Fri, 08 Mar 2024 14:27:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709936851; cv=pass; d=google.com; s=arc-20160816; b=K0vm2ZrrM2UUprmmBPo+9JWU5XlqzMXC6LZCbcgfkJ3+HSPnQYjjd0Vp16aF42yQ0K YN6o6297O/9dkzDxLWdyFuky+SD+kzOejejyMfhdPt1vkXk8lnX77dotiepLC9i/lrv/ /jK4fP1zSU20+bOApbtjFfXPJUrf0Dpcio2MpmmgZn816198Eh6ZRxjexkvdhW+hD5nC 5l2u+DIU8fH9KgLhY7DULNj1SpecabjiP09mLGWzcxnIbn6w7k+yiaZZQyovkFHqZ7RN txTAoWf1i39wAJi9cyFok2/RZAx94MoSG2WypIxji51WBoWeBSLAfJUWLnt4oMuGOoGn BPHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=j62oPnIVjNXEkLwc6x1vxDDwPNWZwfNz/IeZcBMO0U4=; fh=FWcQCLpT0+tqFw+Xwk9levU5SZCW82Um5tT4E7A97YA=; b=kqn55eW9gpEqTztctV9HUV5GbWcSAQqwn64GwPo42Tz5j4HiHsxdmQIPA6TEaqm7GX 6XJCLWlbH53XfhQZH6OErKCKUJrFDjnasdyLl8+yVkL24ULrT4x5WuBOEYZKMJgQ6OHQ vxs4hF2OWFStm6tDzAkZai3HKztvUZ3NZ1Jg58v0ULoPfW3w4yljnn3dYZeSEYv4XSY3 xS/5/ieFjQZ3kHdF9S2JmJaTNZENVRIk9f8it7GHDI5i6o4+mwkunRKTQwhLXcchfsDf mDvklgXzDYI9yeS6r0nneOvVH3yPD5SGpqmU4PIxlr2bh9VXyLNz7y5qJ1j6lLON4yfG 7raw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=knv80yvg; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-97643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97643-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v64-20020a632f43000000b005dccf9561c0si368359pgv.150.2024.03.08.14.27.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 14:27:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=knv80yvg; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-97643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97643-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0E76228320E for ; Fri, 8 Mar 2024 22:20:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 618906025A; Fri, 8 Mar 2024 22:20:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="knv80yvg" Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E758D5FBB9; Fri, 8 Mar 2024 22:20:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709936414; cv=none; b=OphKReKatFwjjXt0JDJBuiqwBydyUdBtSD4lOK6xD6TMJCmoj1vKJqGiYMJ4JEZ+LgkUu9LEiuXcp39Qc+Qk/q9Pg0OlTEhUfpjG5n4n+GNa8CRIllHP3F2HoH5iQqLdLXRROg7O0nJ8/v/QPxSN3ddFvqDQtCznsT6Sm4D//qo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709936414; c=relaxed/simple; bh=UvaPv/XPHrH2WNEAzYheoSrYhZzFwh6ItrrN3RRyQiE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Q/cyq5tFvl1P7/lCBjphgBsnVrgz6AtdmQ5/L4K/mG2P044EYXHx5gIW9Te5kQJ8W59zGnQSYunPM5B62P8bEKXcB+eMOYOdW8ZGbIlPoZRYLj0s351UV6ekuZPW9zufj2sy1OkL+fqziitt2FxoLAbovt8SkJp0KS27lwFR+FA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=knv80yvg; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4131b27cda2so6810585e9.0; Fri, 08 Mar 2024 14:20:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709936411; x=1710541211; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=j62oPnIVjNXEkLwc6x1vxDDwPNWZwfNz/IeZcBMO0U4=; b=knv80yvgtBCQpRL2YuxAIGifr8ASeIS/rdaX8xYUeomB6RzgWw2SaFzZBMwtZX56me 5Ycw1xgFcc1BOSJtX7BQKORXCJfdenz+vZrGVhMJD0Yet727Jwx/oeBCWAxitvJxjUEE OhREW57TvV/6izeW18WgC1q9vY2JIIg/Eg+SySVvH2gkzoAhesi9J+c0gdc4KBeBU2B3 yrtCBki9DQ6izg+tGsQJ7f6GSFkpLkfFUPG49l58kz2GEcQ8qi7aV66oMubnOtURQ/qi 2tf7BLQXjQrwMLdyXsYUGWgAnv5bSVSoEK53Z3Gp4NKzvXOGxd+a0KkolVoNhwOqSLZQ SYJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709936411; x=1710541211; 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=j62oPnIVjNXEkLwc6x1vxDDwPNWZwfNz/IeZcBMO0U4=; b=XsKQxoDs72k0LZNwAnjywxcs77B9+FbOiwWe/CQ1A1LsmR/HiiNYI4qVwl/QymsZzb NRLwptfGA+RDpmTxlVWYIpQ3xwcNAh5EMsIRgEnT2CnHYsSLMD+cfrz5QA9xjlcr3+bQ Nf+Rh9aXMk6QYitnz9/H6UPziwYy+SteoVldrxD39sjwu8mXSRO56If1RWH5YnjMtX2s LTT+kmnVvDoSrVrCErGSEtNGe/cmtSJWy9UymS/6owHLX9X+EmW/GWfW3s/v4NK9pszC PQEnkuLp8+E+/6Rtw+zYJ/CcGIsRtAdGQrDsyw6ZcZjtN9ikpXf3Ev89B97K5OJgb1cI aUvw== X-Forwarded-Encrypted: i=1; AJvYcCUC1ZkLeJJ7L6OEmFVWuRSGSp41e//8OoI+JRe+FvaU1psN/I0BREjRnhGZ6ayJhSQhPv8bIpNgqg8GVEyKIxY0uJCO5G8WSckhDjBgLMRCMVxnCwG0+vCSPFOm7yrohsutyAg/NDmfvjusDa37TUKYQ36rVlpTf2rsmUwE0srHe+dd4d/1+bfp9weXwKTSw38+7M7biE+dQ4G9dSZZXpElYj0= X-Gm-Message-State: AOJu0YzSA5NiEEpVz04TU5PjpGldr6ZjdFc/40x8aePM9c/XppGhf8Wx DV9CaqlG5lsELA+bgOikmjB2Jrg1kQalvl2S5IkaolT52AupjuzY X-Received: by 2002:a05:600c:ccb:b0:413:1438:cbd4 with SMTP id fk11-20020a05600c0ccb00b004131438cbd4mr359744wmb.17.1709936410844; Fri, 08 Mar 2024 14:20:10 -0800 (PST) Received: from localhost (cpc1-brnt4-2-0-cust862.4-2.cable.virginm.net. [86.9.131.95]) by smtp.gmail.com with ESMTPSA id hg6-20020a05600c538600b00412c8117a34sm608258wmb.47.2024.03.08.14.20.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 14:20:09 -0800 (PST) Date: Fri, 8 Mar 2024 22:20:08 +0000 From: Stafford Horne To: Oreoluwa Babatunde Cc: chenhuacai@kernel.org, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, robh+dt@kernel.org, frowand.list@gmail.com, linux-openrisc@vger.kernel.org, loongarch@lists.linux.dev, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kernel@quicinc.com Subject: Re: [PATCH 0/3] Restructure init sequence to set aside reserved memory earlier Message-ID: References: <1707524971-146908-1-git-send-email-quic_obabatun@quicinc.com> <467b8479-dfd8-43a4-92eb-d19dc65989cd@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <467b8479-dfd8-43a4-92eb-d19dc65989cd@quicinc.com> On Tue, Mar 05, 2024 at 10:59:20AM -0800, Oreoluwa Babatunde wrote: > > On 2/9/2024 4:29 PM, Oreoluwa Babatunde wrote: > > The loongarch, openric, and sh architectures allocate memory from > > memblock before it gets the chance to set aside reserved memory regions. > > This means that there is a possibility for memblock to allocate from > > memory regions that are supposed to be reserved. > > > > This series makes changes to the arch specific setup code to call the > > functions responsible for setting aside the reserved memory regions earlier > > in the init sequence. > > Hence, by the time memblock starts being used to allocate memory, the > > reserved memory regions should already be set aside, and it will no > > longer be possible for allocations to come from them. > > > > I am currnetly using an arm64 device, and so I will need assistance from > > the relevant arch maintainers to help check if this breaks anything from > > compilation to device bootup. > > > > Oreoluwa Babatunde (3): > > loongarch: Call arch_mem_init() before platform_init() in the init > > sequence > > openrisc: Call setup_memory() earlier in the init sequence > > sh: Call paging_init() earlier in the init sequence > > > > arch/loongarch/kernel/setup.c | 2 +- > > arch/openrisc/kernel/setup.c | 6 +++--- > > arch/sh/kernel/setup.c | 4 ++-- > > 3 files changed, 6 insertions(+), 6 deletions(-) > Hello, > > Loongarch patch has already merged for this, but review is still pending > from openrisc and sh architectures. > Could someone please comment on these? Hello, The OpenRISC patch looks fine to me. I will test it out. Sorry, I thought you were getting this merged via other means. -Stafford