Message ID | 20240130131708.429425-1-alexs@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-44681-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1212727dyb; Tue, 30 Jan 2024 05:18:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGaB8hXN0xqusDjEG2J5itWD0qZOGQqa1FCvpetmjcBYJPEIf9+SLUn2UzB+BGoKBwrT/90 X-Received: by 2002:a17:902:e805:b0:1d8:f98b:616b with SMTP id u5-20020a170902e80500b001d8f98b616bmr3351194plg.44.1706620734926; Tue, 30 Jan 2024 05:18:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706620734; cv=pass; d=google.com; s=arc-20160816; b=eRvvkqNkieyJ/tGK9ZgKMaje3PqrVZ8WePcmo1UL1VhAbeIFOAFojHx7JKMlbwfH1s 5f2C0tKskqrnIYgWeiPGwy+xT0pWJfX6WdLdX0PBjH855O+C1wKs3NKh/RNlpML1cqju /WAYjtO/fqM2I5u2Lfub5EJddytbAINoh9JqGGz6O8BuiT5TW5IQhIyyIktVuSeSN0or QA5OIxd/zQF/WSxAIKVvBOEzgYQlhSe0TLUbdXyqhylIQaaXIW8OlWfkCCB4H9ziVbP3 a2yc4yedwVwKKCHOQhu4ZQgRlLz0yzfGFQrzeax62g2lObQEKWLe1SPT2qEhDtbCx4OT FTlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=J9S9kBFVDwMUdPrctuaoVQn5feE1iZbC8Kk+U2zDv6U=; fh=CH0OO+rsEMoKRW5HY96+2DQ466rE9ttKX9bm1c+/3Ro=; b=0q7huxroCw1hyrlFU13RFMSbsgw5AUx1Y80UvBNd0NWBK/L33jsJBjrUanDr6rRtgh 7PxtLzSQD0aNm57/Kyz/TyWERTnU4LsZ/mtAgwg0l8E8dr1/ytjIy+oGD9t9xB07Unzl 9XQ13JqmJQ0s7DQVTyRulwp/y8fLeR6kX+cCfFA9+0kVNDewz/gKSRdhYc6EgY4qZDGm 46IP6sjAYFqyEz6XS4NUL0sCPj9O0pngQPxgLHr/M2i5uXV01zVg25+qF4r7cPiQ+us/ Q4pF3G4fal2g9i4ekrC0UF3P27EdOVsZTAMd7FYle1eXD9dXXjQ/3sdb/9eCf8U/xNaA ECmQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="kO/mGNHP"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44681-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44681-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m6-20020a170902db8600b001d8edfec66dsi2705568pld.443.2024.01.30.05.18.54 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 05:18:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44681-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="kO/mGNHP"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44681-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44681-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C945628E4A4 for <ouuuleilei@gmail.com>; Tue, 30 Jan 2024 13:14:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1E516BB54; Tue, 30 Jan 2024 13:14:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kO/mGNHP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DFFF6A337 for <linux-kernel@vger.kernel.org>; Tue, 30 Jan 2024 13:14:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706620456; cv=none; b=hwqyyOVUDRhjL9AN6IREGHn1jJliwnLlKdJUUzJC0w23jhryliSJU8d95KlrCeIVzHye+lQR/fSM2HJOMed3IkQd/EcOPYGs0emIDhF9gj/0UIL88VgXYCXbmGyN7v5JpftyFcdzJ7J1FoGlVCsbowTvcgwVMa0LOOA0awty8kA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706620456; c=relaxed/simple; bh=igel0xrDbniIkaaDmTpoNc96gkHdCdCHSRZ68ZZFEe0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rIEqFyRpzVg2I0A4eJmEJ87a/Tb30bvbke6b6CgVd8MaUKLNfQt+ZVpwv9sGXxSXxEGyOF/lwqmh6jwhe18XyKGVZZbhzEfAypmIGaQjxo3n7h5ibkZIeFwgKlftZbTmTfq1xkXPzuremmmxwuIBioSoFBNks1w1EXBuRukv9EQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kO/mGNHP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3BC6C433C7; Tue, 30 Jan 2024 13:14:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706620455; bh=igel0xrDbniIkaaDmTpoNc96gkHdCdCHSRZ68ZZFEe0=; h=From:To:Cc:Subject:Date:From; b=kO/mGNHPhKqQWzL8j0hqH3l5sXFFbDogLO41f5djOqMxCipaBrG0h4rBODXPevz9/ qW6XeRZybwxQw70VKy53GVtMppl2Pz2RDUtwDV8JnqpEg1ji0rIRMBaRhuKNIpCZco y4fSSK37mcprJR7eTlU0Gm2R9JldtM5zfi+9gXXLlpPZIZDPjbze+0qVt6AW2ONvjZ XvjbBnwiW0DqmN7HnNxOjT7jRA5djDlrIenDZQtWn0X7eqWHKe3gjSInyz8bQMxdqu dniLjoe6QWjEQPgt7NB4eeHrC78gL5NK8JXfrc2DOS/2y7QLvwtSmLpyzH1j0x6eKG dZmQUBsVgapYA== From: alexs@kernel.org To: Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org>, Dietmar Eggemann <dietmar.eggemann@arm.com>, Steven Rostedt <rostedt@goodmis.org>, Ben Segall <bsegall@google.com>, Daniel Bristot de Oliveira <bristot@redhat.com>, Valentin Schneider <vschneid@redhat.com>, linux-kernel@vger.kernel.org, ricardo.neri-calderon@linux.intel.com, sshegde@linux.ibm.com Cc: Alex Shi <alexs@kernel.org> Subject: [PATCH v2 1/6] sched/fair: add SD_CLUSTER in comments Date: Tue, 30 Jan 2024 21:17:03 +0800 Message-ID: <20240130131708.429425-1-alexs@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789521543497223553 X-GMAIL-MSGID: 1789521543497223553 |
Series |
[v2,1/6] sched/fair: add SD_CLUSTER in comments
|
|
Commit Message
alexs@kernel.org
Jan. 30, 2024, 1:17 p.m. UTC
From: Alex Shi <alexs@kernel.org> The SD_CLUSTER omitted in following TOPOLOGY_SD_FLAGS explaination, add it to fill the absent. Signed-off-by: Alex Shi <alexs@kernel.org> To: linux-kernel@vger.kernel.org To: Daniel Bristot de Oliveira <bristot@redhat.com> To: Ben Segall <bsegall@google.com> To: Steven Rostedt <rostedt@goodmis.org> To: Dietmar Eggemann <dietmar.eggemann@arm.com> To: Ricardo Neri <ricardo.neri-calderon@linux.intel.com> To: Valentin Schneider <vschneid@redhat.com> To: Vincent Guittot <vincent.guittot@linaro.org> To: Juri Lelli <juri.lelli@redhat.com> To: Peter Zijlstra <peterz@infradead.org> To: Ingo Molnar <mingo@redhat.com> --- kernel/sched/topology.c | 1 + 1 file changed, 1 insertion(+)
Comments
On Tue, Jan 30, 2024 at 09:17:03PM +0800, alexs@kernel.org wrote: > From: Alex Shi <alexs@kernel.org> > > The SD_CLUSTER omitted in following TOPOLOGY_SD_FLAGS explaination, add > it to fill the absent. Perhaps saying: "The description of SD_CLUSTER is missing. Add it." is sufficient. > > Signed-off-by: Alex Shi <alexs@kernel.org> > To: linux-kernel@vger.kernel.org > To: Daniel Bristot de Oliveira <bristot@redhat.com> > To: Ben Segall <bsegall@google.com> > To: Steven Rostedt <rostedt@goodmis.org> > To: Dietmar Eggemann <dietmar.eggemann@arm.com> > To: Ricardo Neri <ricardo.neri-calderon@linux.intel.com> > To: Valentin Schneider <vschneid@redhat.com> > To: Vincent Guittot <vincent.guittot@linaro.org> > To: Juri Lelli <juri.lelli@redhat.com> > To: Peter Zijlstra <peterz@infradead.org> > To: Ingo Molnar <mingo@redhat.com> > --- > kernel/sched/topology.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c > index 10d1391e7416..c342c52b1f34 100644 > --- a/kernel/sched/topology.c > +++ b/kernel/sched/topology.c > @@ -1554,6 +1554,7 @@ static struct cpumask ***sched_domains_numa_masks; > * function: > * > * SD_SHARE_CPUCAPACITY - describes SMT topologies > + * SD_CLUSTER - describes Cluster topologies This description does not really add much. Perhaps syaing "describes CPU cluster topologies". Then users can go to the definiton of SD_CLUSTER.
On 1/30/24 6:47 PM, alexs@kernel.org wrote: > From: Alex Shi <alexs@kernel.org> > > The SD_CLUSTER omitted in following TOPOLOGY_SD_FLAGS explaination, add > it to fill the absent. > > Signed-off-by: Alex Shi <alexs@kernel.org> > To: linux-kernel@vger.kernel.org > To: Daniel Bristot de Oliveira <bristot@redhat.com> > To: Ben Segall <bsegall@google.com> > To: Steven Rostedt <rostedt@goodmis.org> > To: Dietmar Eggemann <dietmar.eggemann@arm.com> > To: Ricardo Neri <ricardo.neri-calderon@linux.intel.com> > To: Valentin Schneider <vschneid@redhat.com> > To: Vincent Guittot <vincent.guittot@linaro.org> > To: Juri Lelli <juri.lelli@redhat.com> > To: Peter Zijlstra <peterz@infradead.org> > To: Ingo Molnar <mingo@redhat.com> > --- > kernel/sched/topology.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c > index 10d1391e7416..c342c52b1f34 100644 > --- a/kernel/sched/topology.c > +++ b/kernel/sched/topology.c > @@ -1554,6 +1554,7 @@ static struct cpumask ***sched_domains_numa_masks; > * function: > * > * SD_SHARE_CPUCAPACITY - describes SMT topologies > + * SD_CLUSTER - describes Cluster topologies nit: would be better if - aligns. Some additional text in between. > * SD_SHARE_PKG_RESOURCES - describes shared caches > * SD_NUMA - describes NUMA topologies > * On Patch 3/6 and 6/6 agree with Ricardo. It is more difficult to understand when it is compressed. Some future change in this function would make it more difficult.
diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 10d1391e7416..c342c52b1f34 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -1554,6 +1554,7 @@ static struct cpumask ***sched_domains_numa_masks; * function: * * SD_SHARE_CPUCAPACITY - describes SMT topologies + * SD_CLUSTER - describes Cluster topologies * SD_SHARE_PKG_RESOURCES - describes shared caches * SD_NUMA - describes NUMA topologies *