Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3022687lqo; Tue, 21 May 2024 04:49:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCV+luLcMHOfapoyo0yEE8cuRNyhPHbIT1Z0FmJZSu5FPpgauX9CSHsO5bLudSq5PJntii9BdVnYbbEPDf3IwqLfMVj3AXEc5EhotkCw== X-Google-Smtp-Source: AGHT+IFbWE/Xribcf6pDf9KXfjGmaeSGT4NFUIopasvElbat23Wur4xDKqIT3nmVIpcgLwQGtb+Y X-Received: by 2002:a05:620a:5d83:b0:792:c2b5:ca9 with SMTP id af79cd13be357-792c75f0c93mr3374123985a.49.1716292141637; Tue, 21 May 2024 04:49:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716292141; cv=pass; d=google.com; s=arc-20160816; b=Fnj2mFwprjWOBTrBRBEQyi2/qSl9oT0JGEmJEUfrG0FwAY9VEz6dNx9oZTU30Aq+/G tEi+hdmffvi3XyfTklfJ312AypSUyiTGs+bPCjJpr2o3z/UO724iZQXV8JqU62mMcrb0 Fjcr4S7WzDQynNGBEaR7apiXGv197niFDovAYqJj6Sk0eC7WTP66Lvby0cxNQap/wuV4 huSo2CqjAGj9MzshysBvHaCwEFAUxjMvsbkis0IfmQRe2SYeZTlgUMrDhBGVgmfMKXnN dljJ3B4pkAscr9fEuTFdmHopr/BXQvuzMcjA8PBettmVUAK4KUvpw4SCd3Sof/RRiMd3 pPyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xl/Z2jYZBGJ5u6Vz8oQP9RZLmgParFb41gOw09Q9Sp4=; fh=/tocBNknTX0CBdcxdKGUdCq+MQUhEmbYJSr49AVQ1Gk=; b=kLFb+xO6cutkivpjZHtlMcVYrROP4d/4nr5dSfY4dOojqMkCLrQxQmMcKcFhDrqyu4 RbWL75lXBwlp7hKtdTaQ09NZGPyvt2qxg3wFsG1T32Tkg3QvF+M62Qm9Up+pzuxQ9cXK mbD6Hz07P2k2U4XXngPZuREDx5UKyl186NPXvLjcEMnVjZzrxowN0bIFzFcyqF7xxMTg E3M/x5oniPBpHWomGLHhdK8+Nzb32HH/WHkw4/ISF4dymwtemRX/62LJRhowUBBKZ2QV KVY5HNxhY26wGZMJVxTtVlk2wfazx4FndnE1HaUagh6MsmpOTsPtJpj3D8FFi2lNPMLy wAng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GXrl8c02; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-184897-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184897-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf3732f8si704286885a.687.2024.05.21.04.49.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 04:49:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184897-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GXrl8c02; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-184897-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184897-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5EB8E1C221C4 for ; Tue, 21 May 2024 11:49:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73860768EE; Tue, 21 May 2024 11:48:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GXrl8c02" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9874D763F0 for ; Tue, 21 May 2024 11:48:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716292130; cv=none; b=KVPQn4uJah/I6+fMOkzkL2lIa8O+84QG6VizxLnV+OhFuAF5eICOYmqYv8TLjK4vT9sJ2N/Qa/5rOYH3bgOuzvT2O/lOiL7Sk9IJBtPq7DvxdDC5FwpNCt64VEaW5nrXLx43lucIN7hGUPLdnXxVRk6wcSWPInB2R1CH3E7TlzI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716292130; c=relaxed/simple; bh=dNsU9/EzgA72vQ2DBRKYul88CUOKLAUu9MwoObC6yL8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=jgiTmuceuJHaQAUTP2EtJnL/MbqTGi1LZ2GpPFHEGl11cmve4z58JUckR2iZIxv2ZhhzlWimmUUGOrD2S/yEF1GAUitRtVWf1O0JgU3f+0xxbnOD2wv86nwhu/1qqx/WepgyhpBhlVp51kvsF0ZCnqUm07qy/zWrKnETgvNMTUQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GXrl8c02; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30B5DC32786; Tue, 21 May 2024 11:48:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716292130; bh=dNsU9/EzgA72vQ2DBRKYul88CUOKLAUu9MwoObC6yL8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GXrl8c02sxRhi+iEOVG7cmPLve4hs9PdvC3ifTK/0ZJ2fpiI1XBIM4f+Tw1XUK7oJ E4gTG3lnIzNy0NnH7nrt/MisLxPNbNSdRPNHDns409n2DL9j/qql7OXIVmG+wbtrld Kjm+nN8ILu0EkFtcEGiGNyfxoJyIGgCdRUFHFljWi+6cXzT8JsNglHSC1kyO0Gjzvq TKOX/eyVGq0AbdiNIWzUz0oGDOjhKt/Mvsj09wXl9JKM00gjNZsK/YEwrBgqQ6GusU /dOVij7LrrF21Q72kX1xKptNkdTTAiN8fiiWs98gKQJ3bmwiqITGgPQJChzVFnhp2N k6bc9FLkN9NgQ== From: =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= To: Alexandre Ghiti , Albert Ou , David Hildenbrand , Palmer Dabbelt , Paul Walmsley , linux-riscv@lists.infradead.org, Oscar Salvador Cc: =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , 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 v3 1/9] riscv: mm: Properly forward vmemmap_populate() altmap parameter Date: Tue, 21 May 2024 13:48:22 +0200 Message-Id: <20240521114830.841660-2-bjorn@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240521114830.841660-1-bjorn@kernel.org> References: <20240521114830.841660-1-bjorn@kernel.org> 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=UTF-8 Content-Transfer-Encoding: 8bit From: Björn Töpel Make sure that the altmap parameter is properly passed on to vmemmap_populate_hugepages(). 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 2574f6a3b0e7..b66f846e7634 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -1434,7 +1434,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 -- 2.40.1