From patchwork Wed Jun 5 11:40:54 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: 13686710 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 0C52FC25B76 for ; Wed, 5 Jun 2024 11:42:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 94ABF6B00A9; Wed, 5 Jun 2024 07:42:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8FAE76B00AA; Wed, 5 Jun 2024 07:42:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 79D246B00AB; Wed, 5 Jun 2024 07:42:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 58EF26B00A9 for ; Wed, 5 Jun 2024 07:42:13 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 24712161265 for ; Wed, 5 Jun 2024 11:42:13 +0000 (UTC) X-FDA: 82196646546.03.48411AA Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf30.hostedemail.com (Postfix) with ESMTP id 213598000E for ; Wed, 5 Jun 2024 11:42:10 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=P49tYTr8; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf30.hostedemail.com: domain of bjorn@kernel.org designates 145.40.73.55 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=1717587731; 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=bNZWfSlZTa2NzDGSWlyBxkA4XrpKxuED/KNOUxqVLDk=; b=cmtNfMBDOJyVAcZpdMEC47wtg2N4QWUFNdB+x55W33ze4PXCYdfeooqLNz4HHf78GBu6w3 3pwkaqb+o89XiGML8yo5kZBgCTcO3DsQjckYNsqqE0ekeaDg+M5Jh6jEfa0ZbCxqP32fx/ Ki7Wxy/he55VMlsTSH7rbNSruODYIsA= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=P49tYTr8; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf30.hostedemail.com: domain of bjorn@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=bjorn@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1717587731; a=rsa-sha256; cv=none; b=mlunHFiVyDbE51prUaipXa/OUX0ZBoHP1qBWSvRVMT+FdD+9ZsE8i3r7zBd5TA+epKI029 RMn0LWc3H+GgKUeRm1FxfqMtvyaQMmBr0AOnYSqTwoCX/RfrZGSzIOtMqXxn/f1a58pvuZ Qk0o2Irjat01jTrlVbM7gCpXbqgS/eM= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 1E518CE0EB2; Wed, 5 Jun 2024 11:42:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C49EC3277B; Wed, 5 Jun 2024 11:42:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717587727; bh=cXaL8X5xkqjru4qZvhtnJBNQd1jrCsGud/RraJezK+0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P49tYTr8ENggo5fZvyKqZ4PxM1peSbHLq3cEfJefvxO26qq3VgrbD44w7SPHT1HkT yLZk4KJTmkXb4xi7nmVa9vtoQcspd+KSp86VRVE/N0ToZjrv8UmR3sqged4GllPn5h 5GvPvVSfGAeMGH24F5yZwuJ5PcsphzNqUIcASKCOtwEetL+b7w0teYBp/8DvVDy4KI evrzh5rO0PqNeq9Kf+oHWL+Lp3xUwlwdEzkfvR/QO6nuFAWCLeW2D2MUCFok7kI/s0 /y+gLAedifYQI5N+imnHHGNoDFCQrHDR/jrIIAKKecSFW6RBDuu4j+4/Tyl4w1ABwV fsHibJ697J1KA== 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 11/11] riscv: Enable DAX VMEMMAP optimization Date: Wed, 5 Jun 2024 13:40:54 +0200 Message-ID: <20240605114100.315918-12-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-Rspamd-Queue-Id: 213598000E X-Stat-Signature: p4zbhapp8n5wnis4556zq1rmnah69q8k X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1717587730-858430 X-HE-Meta: U2FsdGVkX19wS8st77n06wZqXsGekNPaOs3axpOSDq34gKu0u+Swq8tB4VdRKdY7qGagM3kYtXRVbGiXYnStAspQV17XuPcgEjAuPGMS8EsXsTMFa1PiJn9RA1G4lNQetKunQAmYSyMjh1xYnZXIGiUPFwzol96/kfXqeQ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5Ump6mpum8Kdx8lPpycE+xqKmbESLFsIfawf31fQv113EFRC5KkSrHw== 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 Now that DAX is usable, enable the DAX VMEMMAP optimization as well. Signed-off-by: Björn Töpel Reviewed-by: Alexandre Ghiti Reviewed-by: Alexandre Ghiti --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 8a49b5f4c017..1631bf568158 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -73,6 +73,7 @@ config RISCV select ARCH_WANT_GENERAL_HUGETLB if !RISCV_ISA_SVNAPOT select ARCH_WANT_HUGE_PMD_SHARE if 64BIT select ARCH_WANT_LD_ORPHAN_WARN if !XIP_KERNEL + select ARCH_WANT_OPTIMIZE_DAX_VMEMMAP select ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP select ARCH_WANTS_NO_INSTR select ARCH_WANTS_THP_SWAP if HAVE_ARCH_TRANSPARENT_HUGEPAGE