Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10432882rwr; Fri, 12 May 2023 08:06:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6+MSq40nDLgQk/uA0IprPNA/4VK8bUeSRcmTabtnD6xpQc0vqcHnkuQkRpq/Qw7xQWYywk X-Received: by 2002:a05:6a20:440a:b0:101:6a81:619f with SMTP id ce10-20020a056a20440a00b001016a81619fmr15691470pzb.39.1683903992369; Fri, 12 May 2023 08:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683903992; cv=none; d=google.com; s=arc-20160816; b=ZJUfkc5U/uHJl8YCCzyGGfkUc60+WZIRz+v4MncRwT/MfltczG1tsKSEUinPajkLis fAfdF07soSsHdgNmFmnTydp4MNdQFpzUAhKCNdOGxRQnyB2e7g50Cnatt+danj7mBrn6 abV01D/rde9KBosN0oGzfrwZAIwvz9kQISYKueePMMHGvMPrufh+W5kRj2IbuMwxZxZB 03qSWqXeGj91Oi7f654j75hXqmIuI67p6eQnkTDdUBZcMqSF4JlLjG6i6ByE9z89X3PM x/+LRBBYv69Za4gzc3cpa3vf6xlTMq0oNpPkxm7xTVwXFA27V5PWa6fArZZxIwTSpWXb JV3w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RHoSFbyGi0eW5u3jgCSI5Cav0nRvNf1gitJMGy1VIBE=; b=NY4u/dDDKwU1sn7R5tmdaZyVyw/uB08kcbzeSdGuXtaGV0pplBSfOELZ6Dtn4rG0lL Q9Ne2/SugUKdTU++GHgrwPXHnrfy2wrzJCAp4zz1SuL2qdQP03yMPmsMmaAk1D6AIMGw oWUYqshZC/Qus+MSRLaoxAXQ9WscmTmgnyrJd72NCmQqdK7TYOhOBefS7N/xcoSNNcVS yBycmHYqNynbkpFlcvLu2gcRTFRfdcDdMMNhMCx1yu7S4PLpKDa2kLo5/OYBCkyWeLJD 6hO4YvV0ftyQOl//GENwUZ+xcieurU7c1ceNqf7rb73AGj/c1fwPeUWttn0mbOXXJGzl HGNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qQzflYqn; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q64-20020a632a43000000b0051b70782bbasi9458052pgq.375.2023.05.12.08.06.17; Fri, 12 May 2023 08:06:32 -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=@kernel.org header.s=k20201202 header.b=qQzflYqn; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241596AbjELO63 (ORCPT + 99 others); Fri, 12 May 2023 10:58:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241605AbjELO6O (ORCPT ); Fri, 12 May 2023 10:58:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32C209022 for ; Fri, 12 May 2023 07:58:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B715F655F5 for ; Fri, 12 May 2023 14:58:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5593AC4339E; Fri, 12 May 2023 14:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683903492; bh=Pna6hgXZPMsGHenSDkIIzlTOUDQrq5sDRKKv7+K0xpY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qQzflYqn6X1XwTYqDskdaUvkozpqmlKiTZ7sJZMcSXHaRn188NF1w4O4Gcg9IS09k oKwEhmh46ngeDtbZCpX71wFNrPl+kK3Y4p+ewFov1/UkgDjuFqVOTty0tiMMSElTNb yMuyw+QZmlU6JyZOeqC3QUttWJyV6GkHm73I62awiyhzXWWbPf3Lm1PjNuZoNrq0QB VApf+wgzHLHZ2xAEvvSCNJwzRHGvl/v5NT9pDPzmfOPYPJjDHZOW346ZF/PUDBnppQ xqqHnvoiJdxwAchWZf8t4aSIlDXEgYY06mtzf3klWqYHbjBSQG5Jhc3+1nVtzW5hkE X+9KbCvtUB98A== From: =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= To: Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org Cc: =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , linux-kernel@vger.kernel.org, linux-mm@kvack.org, David Hildenbrand , Oscar Salvador , virtualization@lists.linux-foundation.org, linux@rivosinc.com, Alexandre Ghiti Subject: [PATCH 5/7] riscv: Enable memory hot add/remove arch kbuild support Date: Fri, 12 May 2023 16:57:35 +0200 Message-Id: <20230512145737.985671-6-bjorn@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230512145737.985671-1-bjorn@kernel.org> References: <20230512145737.985671-1-bjorn@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Björn Töpel Enable ARCH_ENABLE_MEMORY_HOTPLUG and ARCH_ENABLE_MEMORY_HOTREMOVE for RISC-V. Signed-off-by: Björn Töpel --- arch/riscv/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 348c0fa1fc8c..81b3f188f396 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -14,6 +14,8 @@ config RISCV def_bool y select ARCH_DMA_DEFAULT_COHERENT select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION + select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM && 64BIT && MMU + select ARCH_ENABLE_MEMORY_HOTREMOVE if SPARSEMEM && 64BIT && MMU select ARCH_ENABLE_SPLIT_PMD_PTLOCK if PGTABLE_LEVELS > 2 select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE select ARCH_HAS_BINFMT_FLAT -- 2.39.2