From patchwork Wed Jun 5 11:40:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= X-Patchwork-Id: 13686696 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5DF33C25B76 for ; Wed, 5 Jun 2024 11:41:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E52E96B008A; Wed, 5 Jun 2024 07:41:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DDB436B008C; Wed, 5 Jun 2024 07:41:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CA3DA6B0092; Wed, 5 Jun 2024 07:41:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id AC21B6B008A for ; Wed, 5 Jun 2024 07:41:23 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 629761C11EB for ; Wed, 5 Jun 2024 11:41:23 +0000 (UTC) X-FDA: 82196644446.03.2099398 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf10.hostedemail.com (Postfix) with ESMTP id B0E2AC000D for ; Wed, 5 Jun 2024 11:41:20 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=U1Ioy0ma; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf10.hostedemail.com: domain of bjorn@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=bjorn@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1717587680; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=6h2I6nJYToX/Obnhkq9ldUBRZqwIYo9UJt4L+UrmAbU=; b=GdbXkVjMlkhtfdTubn3kKL7dQkaaKHEiCIHIjWKxOwh2mEuKUZJEMXYNBIa61JFP/eciW/ /J6LjhsnZcUpTKanlBkly14/pkP3etWkr/Ps4crZtcDiwdFbSRD9GEE4BB0KKOmKOtPpyG N2uCXWw8EiVowOw7RkrA9ztfbSQywno= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1717587680; a=rsa-sha256; cv=none; b=MS6buniVXtsPzXcILS7CGbq0SxVDAKGvYQVf+XeR2oIY9Z48aaBp4k30i4jGeauXv2Xnub uiyqDvLwFcPZ0QcwN2HXD2EDHjR7Huub4PjnmcZkmj31fOmwxxBcNrG+56fS5qxLReaFho uZN9meyRSkuqysEwyE1axS051q6oxyg= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=U1Ioy0ma; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf10.hostedemail.com: domain of bjorn@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=bjorn@kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id A405E617FE; Wed, 5 Jun 2024 11:41:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3803C32781; Wed, 5 Jun 2024 11:41:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717587679; bh=DeWhhyy/Pd+ZMACSRHJGzJta3bvo66kmrO80PItBsh0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U1Ioy0maA5AwRckov58PI1dPUHyyGGgTWfzppxKvOJ5vKG4OYfFjGk9LswC/lA67g AiIlfX+S+u9KX+idcOdeOFgkILKcjRmMy3P2mRnigjBzo6o8YhsVcdGLtPS1U5tG25 tAl6eEfOl+uJ0lnDHnB9krao18oZMsRfj3bVMcQ8Hhec/AU5okt/9ANWoqlsbg/v9B 6XAEJYTzUpZ4AMmjN82aSGoJ09nWwo5+Iq8Uc98aESGuk1kqIDdE25dT0Ew5lBYyMI tbHq6/DNAi6bsnOYdF3D68Me1apb1caKmDIAUghJSJNQu3/1DH/vbtfVidTyA9KTpx 4/ZFTWv4bC1MQ== From: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= To: Alexandre Ghiti , Albert Ou , David Hildenbrand , Palmer Dabbelt , Paul Walmsley , linux-riscv@lists.infradead.org, Oscar Salvador Cc: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , Andrew Bresticker , Chethan Seshadri , Lorenzo Stoakes , Santosh Mamila , Sivakumar Munnangi , Sunil V L , linux-kernel@vger.kernel.org, linux-mm@kvack.org, virtualization@lists.linux-foundation.org Subject: [PATCH v4 01/11] riscv: mm: Properly forward vmemmap_populate() altmap parameter Date: Wed, 5 Jun 2024 13:40:44 +0200 Message-ID: <20240605114100.315918-2-bjorn@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240605114100.315918-1-bjorn@kernel.org> References: <20240605114100.315918-1-bjorn@kernel.org> MIME-Version: 1.0 X-Stat-Signature: c5yspkhijtwgbkdmntwseshcxc6uxgzg X-Rspamd-Queue-Id: B0E2AC000D X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1717587680-595507 X-HE-Meta: U2FsdGVkX19rPNK+/6DkehPGkPid06cyEdMbtqbHogeFH3GEvTLIivnb7w1PCl1Axs/cr+m91uwmKTD2SD9X17dAVzR3kXX75O/4Jrt9LBCAUiojK2NB7m/emoggpMXywkxg+d0MNU3dv4CLBgUflUkxTjEhNhajT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Gk2mczJjlA/bWf8YRk07ePcP7wUjjwcCattIE7MoGMXMBlnHdH6KJ09O/xQ2AtPuHmMlkbDdcrQ1V9zGM5303VTyC0IUPnwQQPtddVnrbSCerlRsz8m7aTGy452E5CDlLQTrJ9dht42U6nlg= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Björn Töpel Make sure that the altmap parameter is properly passed on to vmemmap_populate_hugepages(). Reviewed-by: Alexandre Ghiti Signed-off-by: Björn Töpel --- arch/riscv/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index e3405e4b99af..fe5072f66c8c 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -1439,7 +1439,7 @@ int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node, * memory hotplug, we are not able to update all the page tables with * the new PMDs. */ - return vmemmap_populate_hugepages(start, end, node, NULL); + return vmemmap_populate_hugepages(start, end, node, altmap); } #endif