Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp13416538rwd; Fri, 23 Jun 2023 23:18:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6lQVJlkEfX/QtWiOUGmBCa+Q4QclTrMZMEsbT2O8eB0F7mmZVbBS0DmlwAdzozPCtUorpW X-Received: by 2002:a05:6a20:2588:b0:11d:2764:d9c1 with SMTP id k8-20020a056a20258800b0011d2764d9c1mr28536482pzd.51.1687587513255; Fri, 23 Jun 2023 23:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687587513; cv=none; d=google.com; s=arc-20160816; b=0Emup/DC0Wh2Zs82zcl2sDte6HKpxkLP0Zt2bnlQ8urcGg0T3rbwb9B+qRPlBbpPN8 lA9XdlgcDgQ2JJ2Ji0w2i83gKee7R6Ggx9Ex4ntGx4ykUHEOzXmpWRRitiLVETQCckWh u7dfLVsZQfptQXM5NkC3ftLdRsriJ9zZRm7rnhCrZK+noCmZLJbQUs9fFM/pl0cBO6mA 82uvn7O9mOmGmQYfUuYYDnNZvnVFqtvmZ6dvNcCxy/ma8SCQwzHJSFnw+/EeLMW7kUed wJqQ2poVzBe/nubJAIh64S1Mgsx0KbLwftvWu+c1j4w7bj/zEStU3pq567qv8GdC48AA Zhpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hBPPH4/uw0ABWvVPTs2OWTzo1oNRx61u6JuJ/5dY43c=; fh=tmsAlHQnupPp2YhaRKv3k261WlD5E5mFHPCq22l7+YY=; b=HCPlQNY8hfuBFcQucIwAdEPNGN1WvFUZYwD+SdqnHNb6g+lPywXNHocgDvsGOWR14/ 9tN6CtLCjCtyG0SvVwfy8R18lX/aQgToQZZ7ZWbXwK0UDWTMyzTpqzTjkJ2Jh4qIVHm8 fP3ikzA3m9caM1d2r8dZYvk+GvZklQj/xsqutbIr2Ka6CdsH6Ytfw2yDhTeVTt9+Xgm7 l0KT6H3sVpDGUGwOeMFUAz5cLiyDcZS981vfSXZKWl60j4ZfCrc0JwNN2CdaqgZMd8NW FmLU/rCq6774GMHJqNcaFOKbhitr2+9T4Q+p6Njxope925X95Eqdd2wqU91Z8h6sU3RT GCJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=I0vRFb+k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t32-20020a635360000000b0054fd7759423si1025516pgl.485.2023.06.23.23.18.16; Fri, 23 Jun 2023 23:18:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=I0vRFb+k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231386AbjFXGD1 (ORCPT + 99 others); Sat, 24 Jun 2023 02:03:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjFXGDZ (ORCPT ); Sat, 24 Jun 2023 02:03:25 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 083A126B3 for ; Fri, 23 Jun 2023 23:03:25 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1b7e66ff65fso142795ad.0 for ; Fri, 23 Jun 2023 23:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1687586604; x=1690178604; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hBPPH4/uw0ABWvVPTs2OWTzo1oNRx61u6JuJ/5dY43c=; b=I0vRFb+kCb71Z0VAHVn+jYVYu4Xd2HLgqO4gYa8zyJmzJVQgFpUYnMQ8H5ZenOEacF HHFZ5+OP/TQq06FRNQrPH4QN66dq4PM3XLOc517r3+6xj9Q+CIEShSzFXBt34sbmoTpI MdfWZGmHEWVKJ3v7yuyrwzoxNEBDFmvzXg5+gtXoIDBIp85spmcNBjUjJTg5PQ249ev4 fPju/XdxvcA4LErbMgJtyQF9Vg11QPcTEKZHHhK0s+Xq0PbfDshFFA4+yTOH9ChWv1hk DHY+KCUEAUxXLle4/wJQXvrtVJGN+iRNpyOhd5N8PdrPtBF+8SnHy0HZfmT64kURnZTL 9CzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687586604; x=1690178604; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hBPPH4/uw0ABWvVPTs2OWTzo1oNRx61u6JuJ/5dY43c=; b=AQt9tCEdbaCW1i4D2b2d3qam8aLapoTxb198DATamjnqa875vfaviS9qPW4kJeEtK7 oFb31Oqua3TkEnMvfy2JI9MM5TBfH5zF2YLvQu3jNBpFIUPAhhtep5cqjM1WZMCkXhkJ jZbv2mr8b/FBEIItDuceKBtpRITj3pMKiqB30TfdWQTGXtsZ+SKeW8Dzt1eKQjYOAYm6 fO9HYHpFQ2106sCLkrvqqJvQvAP5zXNHFDvRngO7pIbReIox6KWTC5bZXZxMAF/6DWFq QzmvoLJyZv648+k30TWQfLsrQfZ3pdMhe0KGa7R3/8fioR7dYSkFvh2bjnGOqC++dYqh 3QXA== X-Gm-Message-State: AC+VfDxgrYHZRQSldOyGKuXzIeYX6jaTZZtB+WJY3qWRwsENwZrkpAgK QiL6c1sUMWhId/0FxlmXQ/6SiQ== X-Received: by 2002:a17:903:41c7:b0:1b5:5ad6:ce9d with SMTP id u7-20020a17090341c700b001b55ad6ce9dmr1527206ple.50.1687586604471; Fri, 23 Jun 2023 23:03:24 -0700 (PDT) Received: from sw06.internal.sifive.com ([64.62.193.194]) by smtp.gmail.com with ESMTPSA id u15-20020a17090341cf00b001b539640aa3sm465802ple.283.2023.06.23.23.03.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 23:03:24 -0700 (PDT) From: Samuel Holland To: Palmer Dabbelt Cc: Samuel Holland , Albert Ou , Paul Walmsley , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH] riscv: Select HAVE_ARCH_USERFAULTFD_MINOR Date: Fri, 23 Jun 2023 23:03:20 -0700 Message-Id: <20230624060321.3401504-1-samuel.holland@sifive.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This allocates the VM flag needed to support the userfaultfd minor fault functionality. Because the flag bit is >= bit 32, it can only be enabled for 64-bit kernels. See commit 7677f7fd8be7 ("userfaultfd: add minor fault registration mode") for more information. Signed-off-by: Samuel Holland --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 5966ad97c30c..21e864fa93db 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -97,6 +97,7 @@ config RISCV select HAVE_ARCH_THREAD_STRUCT_WHITELIST select HAVE_ARCH_TRACEHOOK select HAVE_ARCH_TRANSPARENT_HUGEPAGE if 64BIT && MMU + select HAVE_ARCH_USERFAULTFD_MINOR if 64BIT && USERFAULTFD select HAVE_ARCH_VMAP_STACK if MMU && 64BIT select HAVE_ASM_MODVERSIONS select HAVE_CONTEXT_TRACKING_USER -- 2.40.1