Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp234213lqr; Wed, 5 Jun 2024 04:44:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVvwr62GWVloO7xYl9evR2ATbkTQNqhLyaSvEHO++4Uaij/rPXpPPkdHj3aF1Y5MWuAsXo6ovbEyJaXFZRZWa4ftLRfvNAtzfQZXeSirg== X-Google-Smtp-Source: AGHT+IEXPa3ykKuriE+ZtvdsHi5SiHH+2G5qb0mwI8bT7hmJ/sqq3ZHw5inR9T69JTwf1kuxP6wD X-Received: by 2002:a05:622a:490:b0:43f:a084:58ff with SMTP id d75a77b69052e-4402b61ee7dmr22295171cf.33.1717587868633; Wed, 05 Jun 2024 04:44:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717587868; cv=pass; d=google.com; s=arc-20160816; b=Kr/qFUdakOwDwo5hPE9Grcag7++gyhrphA6mxL5UpnYNgaqQbsr2//hnTJSRG/PecO U5ncir8iXA9ZkDFUdMuzCVUrMKB9L2PNstW5jYg9wW4paIF5Dm6Eh6L1rPvlUz9y+/Qk yFBM/TC0LnYI4jBdTHjg4S/tyPlOxHWdpXGuOsOhKCzAaoCsYYF5N/8d/H7WMPuuArax w0IDbtJZf6B2ISTPPL3Ej/3pObxW1UGUssp+tgzTQXpWQb2kg04/xtIeQfzUKKBaTdzl A3zmurVdACgQW5sYG2pGN3ywKLRDTk5h+S003D2jki+bs3yVOqg60ujlUZj7auRfJb0Q uonQ== 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=bNZWfSlZTa2NzDGSWlyBxkA4XrpKxuED/KNOUxqVLDk=; fh=/tocBNknTX0CBdcxdKGUdCq+MQUhEmbYJSr49AVQ1Gk=; b=ITNC18eR6lzJu7rwnXmKUnCYS932b3i0ylArllG0/iISafVi5RGUxuNZCV9UbLVOOc lMyfo9uPWYvHFkjMqIduFVldKlwdWKaanPeQ1hP/XjN3Olfq4iIpp1t+32FHnTwgwnRY Js6GAagbsoKO1aGo1lA8yezfB/Ro1hgpDZ/PFoar3UJC8v2XQ5dai35aO5rT/FPC8sO5 oWNFBkXkK2Q0xdoBCayLwGQodwdKpR4X7QIYqGi3g+vkJ0mFt0sx5XnOhfintjmSFuJP Siz7r50gIB6cVvXnIXLMifJarP10AuESVOIOvbeuL/iepFfdkjTL9v6kqVCVHGQ2Bd7g Lxfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P49tYTr8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202287-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202287-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43ff259f707si5006641cf.644.2024.06.05.04.44.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 04:44:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202287-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P49tYTr8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202287-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202287-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 58C651C22BBC for ; Wed, 5 Jun 2024 11:44:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5720A21C185; Wed, 5 Jun 2024 11:42:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="P49tYTr8" 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 842E814D435 for ; Wed, 5 Jun 2024 11:42:07 +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=1717587727; cv=none; b=QmoQd7aap5e+9XyBGD1sDQdLlafIF4mpzQL1SXQsygzVNzC4AXDcb6uUbFwVApW3PbbUONXzENWLfKehZeQiyJNrqr9o8VvWY+kK2EcCiqiVWnwrPAYGsQSWzG6kMwOfC1tXrvyKzs/jwvl9bPRDuESZw3I/KqZITqJCSFEofgY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717587727; c=relaxed/simple; bh=cXaL8X5xkqjru4qZvhtnJBNQd1jrCsGud/RraJezK+0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=p+wDtC8nUsOoW1BdIMTtOEvPDHYwQpdNyVt+i7lvvzRs1Z14EYlj7Leq8waK+N/2kUE2P/u2lw7430ScuWAhEpTFi+vqf64vPgtspdwJaARgbZdrBWT5bzY8OkvZsjumhPryo9DYMlkNo1fIv21RoL8xr4nJJ3R7povJW0o3+iM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=P49tYTr8; arc=none smtp.client-ip=10.30.226.201 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?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 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> 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 Now that DAX is usable, enable the DAX VMEMMAP optimization as well. Signed-off-by: Björn Töpel --- 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 -- 2.43.0