From patchwork Tue Nov 22 20:35:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Neri X-Patchwork-Id: 24550 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2425153wrr; Tue, 22 Nov 2022 12:30:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf75bCnO7+0zM9FFiFeI3nS7WbCQEoFCXuMLlZOTOhia5+Z50BZ9ju0jGKToWfe/j2XlG1hk X-Received: by 2002:a17:906:c40d:b0:7af:1534:73c9 with SMTP id u13-20020a170906c40d00b007af153473c9mr5005708ejz.558.1669149047891; Tue, 22 Nov 2022 12:30:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669149047; cv=none; d=google.com; s=arc-20160816; b=ICBVTJfTkurAdUwguKZlWjXLKYhOK62NxTJY647UfegIUPIxbWrjTiOCI4iT3G9CLq g9kRzt7HqrdMiU1s1DBrIBAUTJyqc1KhhViOH++f+Czh4K3kGT7/Ao6EFvasx0XwXeWj cRvWL6Guz+cK145d/Xvc+9+sDMUOaO8ch6odnkst+rtZ9bBGvfeVyD5MsMLEnhCyXaDW Wx9c97yYos+9MQmouJvB7gL9nbzTR3cvfdQXlwenXjjZLEbE9VQkGUC8eCzokTkE4ZmC IuN8NYvfqFg0xkWtXNyigMOkhNkMXcl5k2FBoEunu1EPplzepaRDrmPAvZKHY6mEW3AC VUAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=MmqyR15v2ZN53QVWLOcGu+qn2Cn4MiE8w7DDSiR+oT0=; b=agayLeWzEWh8ipZklgfSMC6CittNtPmqv/ANSJHT6RSZenefPNYsWl56DkprQw/azh MlXqt58Dehy78jP9Ue+PbxdjBhkx0bN+B/rFDvwqnHzXBMYrAAyGeOW3XptXCEIeBWEm uBJjSFeiVdWnaHEpt6MQ0qSPsk/GdpdVhklCwHoyUw8RigHjYT5Q25iRP56miogJFlJ7 1VtbC67DdttgJ5PQWHw4itbuQZ8UYuMp+byuB2PPfe0gZKSjvsmCs3Z/oBVhyOA6cPuM yn4PquqXABH9XZaclm5c2vTcf9eMDP77YCrj3E5G6wDG0TmyjdqtrJonAlvpHsyfdfyb 2UUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ezwAMMGq; 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=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c17-20020aa7c751000000b0046329e2724dsi11267264eds.86.2022.11.22.12.30.23; Tue, 22 Nov 2022 12:30:47 -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=@intel.com header.s=Intel header.b=ezwAMMGq; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234889AbiKVU2l (ORCPT + 99 others); Tue, 22 Nov 2022 15:28:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234470AbiKVU2P (ORCPT ); Tue, 22 Nov 2022 15:28:15 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5576A17055 for ; Tue, 22 Nov 2022 12:28:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669148895; x=1700684895; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=vXIaD/zsIWPHn5n3olE8jagfMylwb+X/0KOXnCS5E6Q=; b=ezwAMMGqxlaicR1khS+T/6eMe09a2oG4+ubhca8mbuxeAjebbBBQvccE yzAEvaI1egytNfUP8SgWJBb7VEL8ioI+Tz1KLvCUnlhHstuikCyyrzj7P ziiLnTyZ2qqndpeHd7fW90As0qVFZKL9ayyWp6s4rnQfvVsYS1GPU1ScP tMKKJds2SCMB58oLW3toHRRzpxH9YwcTbI2jGCtxXd+kKO5ZxvH/NwzdI NZgL9e+EEUdUUislcc9xH6c+EExe3QlcVv07D3Lz3K2YFBGJ0WonXyCXs 8Neit6x8iKNal3IW2uBcWWK2VMF6J5l0k5wIZVsj/BwshL8RHETA7PZA1 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10539"; a="293616511" X-IronPort-AV: E=Sophos;i="5.96,185,1665471600"; d="scan'208";a="293616511" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2022 12:28:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10539"; a="816228141" X-IronPort-AV: E=Sophos;i="5.96,185,1665471600"; d="scan'208";a="816228141" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by orsmga005.jf.intel.com with ESMTP; 22 Nov 2022 12:28:14 -0800 From: Ricardo Neri To: "Peter Zijlstra (Intel)" , Juri Lelli , Vincent Guittot Cc: Ricardo Neri , "Ravi V. Shankar" , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , Len Brown , Mel Gorman , "Rafael J. Wysocki" , Srinivas Pandruvada , Steven Rostedt , Tim Chen , Valentin Schneider , x86@kernel.org, linux-kernel@vger.kernel.org, Ricardo Neri , "Tim C . Chen" Subject: [PATCH v2 5/7] x86/sched: Remove SD_ASYM_PACKING from the "SMT" domain Date: Tue, 22 Nov 2022 12:35:30 -0800 Message-Id: <20221122203532.15013-6-ricardo.neri-calderon@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221122203532.15013-1-ricardo.neri-calderon@linux.intel.com> References: <20221122203532.15013-1-ricardo.neri-calderon@linux.intel.com> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE 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?1750229632240157968?= X-GMAIL-MSGID: =?utf-8?q?1750229632240157968?= There is no difference between any of the SMT siblings of a physical core. asym_packing load balancing is not needed among siblings. When balancing load among physical cores, the scheduler now considers the state of the siblings when checking the priority of a CPU. Cc: Ben Segall Cc: Daniel Bristot de Oliveira Cc: Dietmar Eggemann Cc: Len Brown Cc: Mel Gorman Cc: Rafael J. Wysocki Cc: Srinivas Pandruvada Cc: Steven Rostedt Cc: Tim C. Chen Cc: Valentin Schneider Cc: x86@kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Ricardo Neri --- Changes since v1: * Introduced this patch. --- arch/x86/kernel/smpboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 3f3ea0287f69..c3de98224cb4 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -545,7 +545,7 @@ static int x86_core_flags(void) #ifdef CONFIG_SCHED_SMT static int x86_smt_flags(void) { - return cpu_smt_flags() | x86_sched_itmt_flags(); + return cpu_smt_flags(); } #endif #ifdef CONFIG_SCHED_CLUSTER