From patchwork Tue May 21 11:48:22 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: 13669342 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 89C3AC25B7A for ; Tue, 21 May 2024 11:48:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B5CA96B0096; Tue, 21 May 2024 07:48:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ACC896B009A; Tue, 21 May 2024 07:48:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8060B6B0098; Tue, 21 May 2024 07:48:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 5F2FC6B0096 for ; Tue, 21 May 2024 07:48:53 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 0B038140A61 for ; Tue, 21 May 2024 11:48:53 +0000 (UTC) X-FDA: 82142231346.27.BC37DB0 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf06.hostedemail.com (Postfix) with ESMTP id 6562F180012 for ; Tue, 21 May 2024 11:48:51 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=GXrl8c02; spf=pass (imf06.hostedemail.com: domain of bjorn@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=bjorn@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1716292131; 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=xl/Z2jYZBGJ5u6Vz8oQP9RZLmgParFb41gOw09Q9Sp4=; b=Mrgk6vCaw6t4Vz+gsr+dhc5HjT25NJpRfZPUQHOi16cRmY4f7+3D6EGQD6ALh7y2GVS8Mc ohzZdUM0ihHvZaFfWgG4oHBeaZtj5jjdCL77nlGejzfkuCWI2vXWT5qxdRwjoqd8aPAwnE cbKGgkfDJfiiMdmJvAEElq2Tc+GJ4Dc= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716292131; a=rsa-sha256; cv=none; b=J47zBkC9+cki0bYqx1SysTZQysNnCOSW8rGVOW9oRW/L4pdvRjZUSNNuLyENP8v/aAhd/7 YaOE3h/10PLo81aAERSCibaS50i6pxZd3w5/Z11l8HlPyTYAoAGoCv43M2aU/RkxBAIPNr PPE2YKhtRfVVqkM7uXTFDEYKQ/AZh98= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=GXrl8c02; spf=pass (imf06.hostedemail.com: domain of bjorn@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=bjorn@kernel.org; dmarc=pass (policy=none) header.from=kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 58655621C6; Tue, 21 May 2024 11:48:50 +0000 (UTC) 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?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 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> MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: 9oguzbf1hcbm8q8e6dwtdqu7n517ndo9 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 6562F180012 X-HE-Tag: 1716292131-935721 X-HE-Meta: U2FsdGVkX1/DlNPSIABmDNuw3Q4y59YQ0VdCbO6sV40vBPEfW21Qt27JydYkZ0z5QAzop3HOMlVJe5Lww354ciojsU4pU3irXXjMfBDoSCDEQdrdpXpDy+wDRwyZFIFIUemYXTlP2ZB+JK8BMCnxZrR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isrB7wojIXxsb1uBe5DuTrvk49OCMfkeVRwmbxO7LhotMfiyZ0MGlidvfOyYVQIHuVcjdaGAJfKFZhSByCxFClVb0cfmOMhIWHMxYOjz45mX6wMzVJ21GrCT6fmLqUseDZiBovsOUwomtIYxo= 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(). Signed-off-by: Björn Töpel Reviewed-by: Alexandre Ghiti --- 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