Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp232996lqr; Wed, 5 Jun 2024 04:41:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5HL7CplNrAsjJAkUARfLmoNQuonELCskLIPjS2/f7ZgPgMtcloAj3pieC3krMAThp3avjAJZm6j5iAeqsux3/xGm0f/iY8oVRrXZFpw== X-Google-Smtp-Source: AGHT+IG4WQ/zXcBZmh8VmgfBcbY6dX444xOtRbtLEeWtfZcrvxWKIYimvgW67nHc6DxYdSkcMRoP X-Received: by 2002:a05:6512:33d1:b0:51d:9ce:c282 with SMTP id 2adb3069b0e04-52bab4f77b5mr1553032e87.46.1717587701342; Wed, 05 Jun 2024 04:41:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717587701; cv=pass; d=google.com; s=arc-20160816; b=c9HIHfMpPPcPDpgJSGhnA+jhfMk+CcsrjiXdVR5tw6IUknxFOSIfEgdsGcdcOfLg1L FORuSwHf2VDWkgRpeCR81UVC5070FRr+eLhY95HoPw4F8jntm2HcLzdxtEVQDcV7Akxp b+tik+BB+PUeM8OuLwIzmREkEBZHNLgPLLVLMeSXWJMkALDwHO9E2sY6Jv7z/YcuPzTx j/Xj2SPfAB7wXkETvhjcxIiYQfsFwDJreNuzx504d+nCTHjdA5Ve96o77pArJVqPaV36 HHuPWY4UQBuHT4NMIqJjyrfOAVtvyYLJsvl7vzC2nzk/drk2XCpBAaUh+Qimexdn0UB3 Ripg== 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=6h2I6nJYToX/Obnhkq9ldUBRZqwIYo9UJt4L+UrmAbU=; fh=/tocBNknTX0CBdcxdKGUdCq+MQUhEmbYJSr49AVQ1Gk=; b=Ed5TQnNdNVsneVIupNVdLJBe5yY7o94Co0V3cPfXNkawQjCNhtnh1ccxmikOQzN5pf h0rANJ+Dj+WyBp+miFK7zCUMx9KvjjBFqxKAfYS8l4J70ZOQEpI7CThLLtBcfGkygrmW ZMCTM/gi+TzB9NwIFHGXr2NaIPDk7CWhA5JmUJlAVM5zNwAiYf0QNlR9Ff0W4a/+W2a/ WMwaEkIoCSKdGPNKl5T5dUo0FKLSt+XGkQXZutnAVuhjLUsr/YAiMdBPCw3GUkjKCXO+ xkXxC2UX8XJO6qxQrQW13xS8LMXWVpM0IAkizUucfIB+oRB0MMylusI3NC6ki02+RljY 0MYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U1Ioy0ma; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202275-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202275-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31ccad5bsi6025857a12.660.2024.06.05.04.41.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 04:41:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202275-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U1Ioy0ma; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202275-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202275-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0E1501F23DAF for ; Wed, 5 Jun 2024 11:41:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97CC119307F; Wed, 5 Jun 2024 11:41:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="U1Ioy0ma" 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 BF63719307A for ; Wed, 5 Jun 2024 11:41:19 +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=1717587679; cv=none; b=G81YTPuXWklTGeFiJCLL++lYF/xiDuOejS9EYOCRER+F3gG+07bk1/X8izd10Wlf3xuaHXqV3pMhqMmyWIMimO8BWV/wOQ5MBqH+vYF5bSoO/zm96yE0kFLbtaMQ6IHMh5jwaOo0ZdlUArnTSOIPCLvnQ4E9P0pHAvJytuoD4XI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717587679; c=relaxed/simple; bh=DeWhhyy/Pd+ZMACSRHJGzJta3bvo66kmrO80PItBsh0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uD1GM3XByXneqRosEaZhTscxZQ5Ii7C0SKLc9x6kO7sly3h7hw4LWAcrwi1+kkFPc/aRavbCR4sOZUX1sRrmzzgipdx1ER62f2mda53jQHt09lNl4Ok9UnAh711S9WiafLRD5r9RYZ6H0wiuFb7B33y75R/efAvmMQkh6VGCfEI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=U1Ioy0ma; arc=none smtp.client-ip=10.30.226.201 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?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 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> 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(). 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 -- 2.43.0