From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796266707; b=BF6fazFwxkThGs84OA4SmSLstzpwgpELqplXn7h9G7gGzvq4Czna7oeNAOLT08b1rUQt X9XkTdjNjer9pbzGaTDMxqbl4NHkQ1Nn0b4wWHtVE5jwDeeM9VeUkol80VA1OWEeqNfuf eLvg5O01WND8DbvlvvVY1TT8Df4cnEsxE1GKEca+QoDN5e4+XlNL8fDxNkgBe3cX9GhWA Se6mmuhdh9uNLrW6T1MVYbrx/KxIaajcO7QP1KDbCgiFTbFVK6SByPbo+2og5Gyi5wZbW WXTNGt7sKM+S/FKTejzVt2euF8p7pWm+m5caN1Oaz2cJVWbx07NJtazT2AyKcBDhkSQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796266707; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type:Content-Disposition:User-Agent; bh=4qMuTehZtFsgKi7aRKLk2ykys64b+E9kquLylSjbtfY=; b=Gxhky6Paxv4JHVR18Kj4+qI7bcU8MzOQHoCFlcZop7Fygdljjemu38ZwQC5F2lJX4I+v 1S76Pd06mKOArEqwo4EB/TGG4bTKqUE3gY5xgppI26ShCN9iPJkWtdbDRpKoCttaXi1Ow Dr+W9qZNusnb+YJZc3No5rWz2aU3O1G9G83as8iFtRPaiuKJ65ZMvPZUurxj1xHf+MrKz BTMpPzNGCvPdTVC19U8MdAX78+7Nj0Gke1/xhsqEEKWkHauiFhLRSB1WSLL+4sse+7jH8 /uEZ/Hi2V7fii7b6ZQBxoJNMnafyYt0tFoRs386y3v1ETY3M1BVqWw5aO9fneU/2TJA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=chrisdown.name; spf=pass smtp.mailfrom=chrisdown.name; dkim=pass header.d=chrisdown.name header.i=@chrisdown.name header.a=rsa-sha256 header.s=google header.b=jx+sYmZQ; arc=none smtp.remote-ip=74.125.224.54 Received: from mail-yx1-f54.google.com (mail-yx1-f54.google.com [74.125.224.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2595606A32C for ; Thu, 3 Dec 2026 02:58:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A2595606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=chrisdown.name Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chrisdown.name Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chrisdown.name header.i=@chrisdown.name header.a=rsa-sha256 header.s=google header.b=jx+sYmZQ Received: by mail-yx1-f54.google.com with SMTP id 956f58d0204a3-67db763cec7so14161037d50.1 for ; Wed, 02 Dec 2026 18:58:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; t=1796266705; x=1796871505; darn=vger.kernel.org; h=user-agent:content-disposition:content-type:mime-version:message-id :references:in-reply-to:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=4qMuTehZtFsgKi7aRKLk2ykys64b+E9kquLylSjbtfY=; b=jx+sYmZQvrSsqgQN7cL224FZyAr4DcFFRO+Hl4PjSXed3ay97F66APbRIqFZ6KSpa4 jVrE9uoFi6JL9zXse59JarjJKhW18FH+9mrXkJH2BVsN1PRWZu5LuD2QLuk6e/dZzDRn 1YEa/8y+NjbONd8fimO2ZhbB+SifmpMN0ovic= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796266705; x=1796871505; h=user-agent:content-disposition:content-type:mime-version:message-id :references:in-reply-to:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=4qMuTehZtFsgKi7aRKLk2ykys64b+E9kquLylSjbtfY=; b=ZVscM9/q0z0Q8O5dNwxbCbF6b1JhT4NgEHg/dDj3ZpeYuYGz6xGu3TTA63DwuvtqQA JUXY68nigH3U3Z0qjLFx0FFirEwpUUkeBK5eMZem42xy8jIbiawR2YvNlH0SG48sj1v6 ibWt6j9b0Vy20hrs2IQ5Ht0AiCQdgNGEarfeYTrvSWRWW/je4wJd0ZHYOQtV8fhf8vc7 P1CqgZdFOhEdXq/HLZNX29YbxD0Dg2FARRLJ0YAP6ylFQDKg4DfMeYRuPW33XFVNA+hT HUoWjNkr5VBVkwVygqCFgEfWtZQSrdgHyMVcf+F+NkNpZSnxvDZ9/suTPABZ2rlRNUiy qwvA== X-Forwarded-Encrypted: i=1; AL+hErGg/lmg+MPQcNeJxgYxIaRvWj22Qid5eCHY4EW7vlrATBlutsZvJdJD3fiw9vpjqoap/MFXMnLvyXLp+3M=@vger.kernel.org X-Gm-Message-State: APuU4Z+oxLw8YPDqXNYHeMiIe9TR/Xu6Tfn4ZZH4Vy6KaJsajKvHJdHm xyQgVI4kxOL/btVRACqx/I+Z9zxZxTKhnySCxKi4aoQfZYuduuP2uWcwB8HZb+jlAJg= X-Gm-Gg: AZFdTZf2FbbLjf10dc00gNmh+fnprwjypB70FBvsGaUoAcWNgdKs4f6Srh5AQvzVvru 3GrYft8wO/kmyBTMN66ffEuwcDIhYXeAfkgBmxXw1wfdx90dKWLm6ZX46bLTZNTKwdoiOXDwGpb 5Mmr49aE0VHbRM1N5db1bCXRccm27Rvhph8p4/+/ZSXimcwxOxhA95Y4+wiOiKPsw/fk4YMB94k 3GQDzdO6llJy74lKJwDQzJZxYGeK5NzfL4QswZd8sbJjxTPRqjcAgoyrA+kfOlyeOSm/5xDFi1n 6LsOJfd9GwGi5S+Zz2MuBkgrwmdz2tXXQAgmoDvxfietffArtwL3v9DRbbnfH77zH3pzTf3PBlm G5g4/YtwK3bgtUC+fMfT+bbYi1ZPaRdBT8OOnmWRgR1sso11LOl3v9d87RS+kwESalsJuExYN6b oqILAzPx/4RNrBDA3k+Az5R8nWj8iEpFOAmVEEr6AAZKtwFppfhpQzV8o5YLuR6yZOc89AUCzzR j52w3zHO0kZ0Dc3HylcXrh0n3XLHGuXSmwRvj8cL6BHq1qaHdl80kwvkAuuKf6/zg/1pxTRRcKA y6umq1dN7+Z3wZQcYppw2ftIM/fz2nyHxq1f4r4gYn+Ar14VXoKrm8AyZKDU4eG1NGeLznr7msm oN+Z2VB/c0fkKcRGJ/lIWvOUVgmeAoDTk9jiEcADG1y3MVEIQUmlOJV+7Ez/hkasJqAlGDPqCqt dEMEhNVHfx9321XMiffnhtcnOv52E/BgMMUFMnCdUZF0PEzVhOtLMyzTw47vWvxGUHzJwfCI0Uz bCXTgc1+yVNRjt7Erxu1P4= X-Received: by 2002:a05:690e:4396:b0:67d:b3b0:e040 with SMTP id 956f58d0204a3-67df44259f3mr9795151d50.28.1796266705620; Wed, 02 Dec 2026 18:58:25 -0800 (PST) Received: from [172.18.0.2] (c-73-207-185-9.hsd1.ga.comcast.net. [73.207.185.9]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-67df337bfd7sm19615444d50.15.2026.12.02.18.58.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 18:58:23 -0800 (PST) Date: Wed, 02 Dec 2026 18:58:20 -0800 From: Chris Down To: Pratyush Yadav Cc: rppt@kernel.org, pasha.tatashin@soleen.com, graf@amazon.com, kexec@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCH v2 1/2] kho: skip bootmem setup in kho_init() if bootmem was inherited In-Reply-To: <2vxzmrqouex7.fsf@kernel.org> References: <2vxzmrqouex7.fsf@kernel.org> Message-ID: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/2.4.3 (cc9e3943) (2026-10-09) Hi Pratyush, Pratyush Yadav writes: >Nit: I don't understand what "even if handover is dropped later" means. >Doesn't the handover get dropped _before_ kho_init()? > >Also, perhaps "even if the handover fails" is better? Yeah, it does, so "later" is wrong there. I'll change it to "even if the handover failed" in v3. >kho_memory_init_early() clears kho_in.bootmem_phys on failure. So this >doesn't work. It clears it because kho_memory_init() uses to check if it >should even try to retrieve preserved memory. > >Perhaps it should only clear fdt_phys and kho_memory_init() should check >fdt_phys instead? Good catch, thanks. I'll do that in v3. kho_memory_init() will also have to skip kho_reserve_bootmem() in that case, otherwise it reserves new areas that kho_init() then never releases. While looking at that I noticed that kho_account_incoming_bootmem() and kho_init()'s error path still check is_kho_boot() as well, so v3 will switch those over too. Thanks! Chris