From patchwork Fri Mar 10 11:03:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Song Shuai X-Patchwork-Id: 67361 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp805408wrd; Fri, 10 Mar 2023 03:05:49 -0800 (PST) X-Google-Smtp-Source: AK7set/SFksa/tpxIobwb9SGpCuCBYqetyKiExyFLfDzmSli/Vu6xZ76q4pBfl8CEKL1Lc29Gz5i X-Received: by 2002:a17:902:d50c:b0:199:4d25:6a4d with SMTP id b12-20020a170902d50c00b001994d256a4dmr1845468plg.10.1678446349447; Fri, 10 Mar 2023 03:05:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678446349; cv=none; d=google.com; s=arc-20160816; b=olTVf1uPV/onxOaNw6FHfyfFce8Dd4A8g7miIEbCcqqxJFY+TJ/D6UDNMSAzXIxd+Z OZnLhCopK17S8gErs/HtLKYnpNQpoleM1khSUl6LzM320KyxjFrIocuJRlp3Q1w5jEHB pdGj3mbqkJe0EE2q3t/DMX5qGXaiFfvt99fEKWJKtqNQuCXf2SYUBmGfrW6PihmTN2Cz awoJx3ExI/5Si9A0OVy1E0uqcbytptr4dAa1y3jy1o+QARre3OLS/uvVx0vJzUQVrMS8 uTztrYwIo/OAjrgFKXocm9CuP6umqTffoV8C26+epDSN4QVFooXw3O7kA/ypi2C3dnak tDDg== 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=XleH2qRgkAjKfAnH5lQK+hOVQ6pdsI7iaFiOV1K3KNM=; b=G3VtGS+YftEwelL9BepOrRX6JCzrMoRKdR98BbSiq2bpP9DWcEZF2tX+HZQ+NcUJi3 Z04cclwAR/HWu/n7Lvvtb2T2VXaZK39TTRscw+7FRDISemozjhtW6jhn0mZmonrHtINb 4jaMu0trdh9vXUD8uut05iN1IqCEn1C/ZdxCXkyLLGgUWzuM5JHKaqkiGD+iR6jhravN YShRn1rRmdMZKNiM3FrcKTiTnUvZZOKPSDXAl+6jGOS2omAREsmvyxUrbT4riWB1cxQg SQ8uIteekxagm7BFVneSuO0tBvNoqHvb1eSZ4eNbHh7GtpI+FHZjF4E78yc8gF7QRIBI fPIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XiDRYO83; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e1-20020a17090a9a8100b00233e2e1ff6csi1626364pjp.119.2023.03.10.03.05.34; Fri, 10 Mar 2023 03:05:49 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=XiDRYO83; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229894AbjCJLD4 (ORCPT + 99 others); Fri, 10 Mar 2023 06:03:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjCJLDw (ORCPT ); Fri, 10 Mar 2023 06:03:52 -0500 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 1D57AB0B93 for ; Fri, 10 Mar 2023 03:03:51 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id y11so5178074plg.1 for ; Fri, 10 Mar 2023 03:03:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678446231; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=XleH2qRgkAjKfAnH5lQK+hOVQ6pdsI7iaFiOV1K3KNM=; b=XiDRYO83T5IVLmCtEQZzT/BbHCGItwcuH07SlSFOmcpngXMzlga/wCh7ysxNP/A/YE mcmmyycGgxwXys5FmYygNt+dHSwtRvgQCTBpLCDkhKmgMk9zL43qMYMTK8ghH9WC3Pto pwsC0jhjGGJ8w8mjTBLpZIgDEkjF4nvpIhLfKyYUMCJVbZ6Kj7LMbhOBSSJFvZcd+w9A 4/yzqWqpiav55hJxJEbgCWoLuygmsYjU25r+HK78EDFbURJC8sEEhsPiu3cYyar5h60s 2tZPNiCKcwM6l9e8egZz5PlLwmKjvdkEdPlChyQklWegJw3SkLY7kFR+DZNDgrThPcwZ hl1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678446231; 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=XleH2qRgkAjKfAnH5lQK+hOVQ6pdsI7iaFiOV1K3KNM=; b=HGDRRDqU9k1uP4+6Q+MLMRW2oNXglqimomKhqPsTqMtWXLoluMAl05K07wAsvwHaG8 9o2nn10NoblgWFhQols8ssiptxZj/LICLYn8PAxo+rhYe1feWe3ibCk9/yqZk+ly7o/p v8gq/2muBI9gHwG5bhy4Gkswiy64pwkbJWF62OAY629zi0o947RK7/nxKepkX4BmIYuW qWLuEp1wRdBl8bV0aNGXENE04EeZm0y2PPjmYUFheyanx636OjNhpvBIp3BdkbgZyc7Z +RxiHTxxpjr+JCVRPEEeqaaEnhNrzXSFLOhAJBxRqaBW1PXIZTOXPcGBcY2oxgm6vMti ZDIA== X-Gm-Message-State: AO0yUKVM39bvDgnkaT3nusp/SsUo/FIg6ADZGUngRAKayAG3ZR0MAM3D Axxace3qZHPPktYvStpAzRA= X-Received: by 2002:a05:6a20:6909:b0:b0:3329:c395 with SMTP id q9-20020a056a20690900b000b03329c395mr2409010pzj.30.1678446231342; Fri, 10 Mar 2023 03:03:51 -0800 (PST) Received: from localhost.localdomain ([221.226.144.218]) by smtp.gmail.com with ESMTPSA id n7-20020aa78a47000000b005d3fdf7515esm1171477pfa.81.2023.03.10.03.03.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 03:03:51 -0800 (PST) From: Song Shuai To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, conor@kernel.org Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Song Shuai Subject: [PATCH] riscv: Kconfig: enable SCHED_MC kconfig Date: Fri, 10 Mar 2023 19:03:36 +0800 Message-Id: <20230310110336.970985-1-suagrfillet@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759978559665998966?= X-GMAIL-MSGID: =?utf-8?q?1759978559665998966?= RISC-V now builds the sched domain based on the simple possible map. Enable SCHED_MC to make the building based on cpu_coregroup_mask() which also takes care of the NUMA and cores with LLC. Signed-off-by: Song Shuai Acked-by: Conor Dooley --- arch/riscv/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index c5e42cc37604..5b9fdc1a619a 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -320,6 +320,14 @@ config SMP If you don't know what to do here, say N. +config SCHED_MC + bool "Multi-core scheduler support" + depends on SMP + help + Multi-core scheduler support improves the CPU scheduler's decision + making when dealing with multi-core CPU chips at a cost of slightly + increased overhead in some places. If unsure say N here. + config NR_CPUS int "Maximum number of CPUs (2-512)" depends on SMP