Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7320686rwr; Wed, 10 May 2023 06:55:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5IYclYzDgOOGXIFKg4yBwyNaUKYWZyr+GLZzlq6C0TDzcm/OJJM9P9qs1csBa0xRAtZrl7 X-Received: by 2002:a17:902:7001:b0:1aa:df9e:2d19 with SMTP id y1-20020a170902700100b001aadf9e2d19mr18945015plk.54.1683726957415; Wed, 10 May 2023 06:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683726957; cv=none; d=google.com; s=arc-20160816; b=RT8XBgYlf2phFPp9PNbbD+IGSW/ieP5are68PA1PURdz0xj0AMnwPGwUl0FXqfmZJO uTI1Ol9s45QHSJmw2Hqz5NUGKEGVaQ5E5oHNbsOvAMG8cyz4/7VQA+mpVW0iNuy3FGJD bwlh0h8Y0wymjeStYDy80j9UfM6owekp0FTXkG/WZqhHUviEnxfx7gGEqdhgh57WeeuF hnvgna2cXumBd9BkejiW7WCdZnZj1+29GkCzePMNe64McryRiQHeFG0/gh6mzUUaxCnb HWkFCoioJLosd/hPXn8HmK98WXXO7bntphOc4NATrxsxN6yT6B+CWpzk8h2tZ7NpMEdI BCnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=SvTe2KWi0j0LWLx4UMP4SOKhlBq4JwIPfjz/2XNZiUs=; b=l80t6CodfpNsN7n6moyc/92PDxgdGVpRvyGToaSJtvXLsnzIF05D2JHPdCBZjUX234 aKnCSi3ZSGbD9Vb6nnn6+RqU6RBRk053wrhgWySw8xDXYX3t8UmfT86tmx7FDNYLlqVB qmg5znSL1XmKIsqXKl0wTppHBB1Tdxadj4y2LHaDjUgcyS0unojjXIkr5Q/I4vPjmjS5 9IVxyx+bPdOL7oKBUcnQSIoFJEsXS+qnWeAVElumoPeJtZvi/YOXhmaepOhthd5lPGZO qpQv/kPwZlUJEu/rmMbs2KldYYRoJowheLUH5dNGARU6cTR7S0jDs0zpS5viJ0kvaJQy /6/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3CRtUOW3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6-20020a17090332c600b001a989e412bbsi4516053plr.514.2023.05.10.06.55.44; Wed, 10 May 2023 06:55:57 -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=@linutronix.de header.s=2020 header.b=3CRtUOW3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237292AbjEJNtn (ORCPT + 99 others); Wed, 10 May 2023 09:49:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237267AbjEJNtW (ORCPT ); Wed, 10 May 2023 09:49:22 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC4B5449C; Wed, 10 May 2023 06:49:18 -0700 (PDT) Date: Wed, 10 May 2023 13:49:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1683726552; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SvTe2KWi0j0LWLx4UMP4SOKhlBq4JwIPfjz/2XNZiUs=; b=3CRtUOW3B5jbYWO8jIvNd3po3sfgMlv15pam8S3hWykhWS8QsnvnudVI1gYsYEgZjmIaoa ovU0df4h3vvkKmF6K06fqlDkxi85luu6fbA3PQtDuwsQk89WeLLfhwdZ5W/1UpNinE67dN muCSz84Tpr878EOd76DF5zkO3z8kHR+IGQYa+za9dzGUKo0PIKss9n8G0fwbCSqaMtuPBa vAin8T/AEp+0bT/SUMmXuULRwbVsuodXGiXuyqIwOQmB/KWqm0te8D7vCthdC2XlKnjQJ7 tX9MAd1X8lXb7hDtENGAqeJhHvvHtGmiZzX5nWDbPIbM7/W9Jlnysj0PE5+yAA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1683726552; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SvTe2KWi0j0LWLx4UMP4SOKhlBq4JwIPfjz/2XNZiUs=; b=6KM1mX3/SWFtga4hfaY04qmdVvD2dpzTGsDqd3qXoRGvbtQfHP+GNwadopa98zSog3OYw4 l9hHPfzbMw4uaVCQ== From: "tip-bot2 for Ricardo Neri" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/topology: Remove SHARED_CHILD from ASYM_PACKING Cc: Valentin Schneider , Ricardo Neri , "Peter Zijlstra (Intel)" , Zhang Rui , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230406203148.19182-10-ricardo.neri-calderon@linux.intel.com> References: <20230406203148.19182-10-ricardo.neri-calderon@linux.intel.com> MIME-Version: 1.0 Message-ID: <168372655168.404.2208152058819623598.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 The following commit has been merged into the sched/core branch of tip: Commit-ID: ca528cc501896a808dc79c3c0544369d23b331c8 Gitweb: https://git.kernel.org/tip/ca528cc501896a808dc79c3c0544369d23b331c8 Author: Ricardo Neri AuthorDate: Thu, 06 Apr 2023 13:31:45 -07:00 Committer: Peter Zijlstra CommitterDate: Mon, 08 May 2023 10:58:37 +02:00 sched/topology: Remove SHARED_CHILD from ASYM_PACKING Only x86 and Power7 use ASYM_PACKING. They use it differently. Power7 has cores of equal priority, but the SMT siblings of a core have different priorities. Parent scheduling domains do not need (nor have) the ASYM_PACKING flag. SHARED_CHILD is not needed. Using SHARED_PARENT would cause the topology debug code to complain. X86 has cores of different priority, but all the SMT siblings of the core have equal priority. It needs ASYM_PACKING at the MC level, but not at the SMT level (it also needs it at upper levels if they have scheduling groups of different priority). Removing ASYM_PACKING from the SMT domain causes the topology debug code to complain. Remove SHARED_CHILD for now. We still need a topology check that satisfies both architectures. Suggested-by: Valentin Schneider Signed-off-by: Ricardo Neri Signed-off-by: Peter Zijlstra (Intel) Tested-by: Zhang Rui Link: https://lore.kernel.org/r/20230406203148.19182-10-ricardo.neri-calderon@linux.intel.com --- include/linux/sched/sd_flags.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/linux/sched/sd_flags.h b/include/linux/sched/sd_flags.h index 57bde66..fad77b5 100644 --- a/include/linux/sched/sd_flags.h +++ b/include/linux/sched/sd_flags.h @@ -132,12 +132,9 @@ SD_FLAG(SD_SERIALIZE, SDF_SHARED_PARENT | SDF_NEEDS_GROUPS) /* * Place busy tasks earlier in the domain * - * SHARED_CHILD: Usually set on the SMT level. Technically could be set further - * up, but currently assumed to be set from the base domain - * upwards (see update_top_cache_domain()). * NEEDS_GROUPS: Load balancing flag. */ -SD_FLAG(SD_ASYM_PACKING, SDF_SHARED_CHILD | SDF_NEEDS_GROUPS) +SD_FLAG(SD_ASYM_PACKING, SDF_NEEDS_GROUPS) /* * Prefer to place tasks in a sibling domain