All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] sched/topology: Get rid of overlapping groups
@ 2021-02-03 15:54 Valentin Schneider
  2021-02-03 15:54 ` [RFC PATCH 1/2] sched/topology: Get rid of NUMA " Valentin Schneider
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Valentin Schneider @ 2021-02-03 15:54 UTC (permalink / raw)
  To: linux-kernel
  Cc: vincent.guittot, mgorman, mingo, peterz, dietmar.eggemann,
	morten.rasmussen, linuxarm, xuwei5, liguozhu, tiantao6,
	wanghuiqiang, prime.zeng, jonathan.cameron, guodong.xu,
	Barry Song, Meelis Roos

Hi folks,

My keyboard still hasn't been taken away from me, so I went down and did what I
was rambling about in [1].

The preemptive degeneration check is the worst wart, but I think I'll have to
sleep on it before I can figure out a better way.

Something tells me the increase in group numbers isn't going to make me any
friends, so I've included 3/2 which is Barry's approach (with the subset check
condensed in a single spot).

Cheers,
Valentin

[1]: http://lore.kernel.org/r/jhj4kiu4hz8.mognet@arm.com

Valentin Schneider (2):
  sched/topology: Get rid of NUMA overlapping groups
  Revert "sched/topology: Warn when NUMA diameter > 2"

 kernel/sched/topology.c | 77 +++++++++++++++++++++++------------------
 1 file changed, 43 insertions(+), 34 deletions(-)

--
2.27.0


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [RFC PATCH 1/2] sched/topology: Get rid of NUMA overlapping groups
@ 2021-02-03 18:31 kernel test robot
  0 siblings, 0 replies; 13+ messages in thread
From: kernel test robot @ 2021-02-03 18:31 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 4446 bytes --]

CC: kbuild-all(a)lists.01.org
In-Reply-To: <20210203155432.10293-2-valentin.schneider@arm.com>
References: <20210203155432.10293-2-valentin.schneider@arm.com>
TO: Valentin Schneider <valentin.schneider@arm.com>

Hi Valentin,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on tip/sched/core]
[also build test WARNING on tip/master linux/master linus/master v5.11-rc6 next-20210125]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Valentin-Schneider/sched-topology-Get-rid-of-overlapping-groups/20210204-000142
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 075a28439d0c8eb6d3c799e1eed24bb9bc7750cd
:::::: branch date: 3 hours ago
:::::: commit date: 3 hours ago
config: s390-randconfig-m031-20210204 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
kernel/sched/topology.c:1012 find_node_domain() error: uninitialized symbol 'parent'.

vim +/parent +1012 kernel/sched/topology.c

8c0334697dc37e Lauro Ramos Venancio 2017-04-13   984  
02d81c8f49452e Valentin Schneider   2021-02-03   985  static struct sched_domain *find_node_domain(struct sched_domain *sd)
02d81c8f49452e Valentin Schneider   2021-02-03   986  {
02d81c8f49452e Valentin Schneider   2021-02-03   987  	struct sched_domain *parent;
02d81c8f49452e Valentin Schneider   2021-02-03   988  
02d81c8f49452e Valentin Schneider   2021-02-03   989  	BUG_ON(!(sd->flags & SD_NUMA));
02d81c8f49452e Valentin Schneider   2021-02-03   990  
02d81c8f49452e Valentin Schneider   2021-02-03   991  	/* Get to the level above NODE */
02d81c8f49452e Valentin Schneider   2021-02-03   992  	while (sd && sd->child) {
02d81c8f49452e Valentin Schneider   2021-02-03   993  		parent = sd;
02d81c8f49452e Valentin Schneider   2021-02-03   994  		sd = sd->child;
02d81c8f49452e Valentin Schneider   2021-02-03   995  
02d81c8f49452e Valentin Schneider   2021-02-03   996  		if (!(sd->flags & SD_NUMA))
02d81c8f49452e Valentin Schneider   2021-02-03   997  			break;
02d81c8f49452e Valentin Schneider   2021-02-03   998  	}
02d81c8f49452e Valentin Schneider   2021-02-03   999  	/*
02d81c8f49452e Valentin Schneider   2021-02-03  1000  	 * We're going to create cross topology level sched_group_capacity
02d81c8f49452e Valentin Schneider   2021-02-03  1001  	 * references. This can only work if the domains resulting from said
02d81c8f49452e Valentin Schneider   2021-02-03  1002  	 * levels won't be degenerated, as we need said sgc to be periodically
02d81c8f49452e Valentin Schneider   2021-02-03  1003  	 * updated: it needs to be attached to the local group of a domain
02d81c8f49452e Valentin Schneider   2021-02-03  1004  	 * that didn't get degenerated.
02d81c8f49452e Valentin Schneider   2021-02-03  1005  	 *
02d81c8f49452e Valentin Schneider   2021-02-03  1006  	 * Of course, groups aren't available yet, so we can't call the usual
02d81c8f49452e Valentin Schneider   2021-02-03  1007  	 * sd_degenerate(). Checking domain spans is the closest we get.
02d81c8f49452e Valentin Schneider   2021-02-03  1008  	 * Start from NODE's parent, and keep going up until we get a domain
02d81c8f49452e Valentin Schneider   2021-02-03  1009  	 * we're sure won't be degenerated.
02d81c8f49452e Valentin Schneider   2021-02-03  1010  	 */
02d81c8f49452e Valentin Schneider   2021-02-03  1011  	while (sd->parent &&
02d81c8f49452e Valentin Schneider   2021-02-03 @1012  	       cpumask_equal(sched_domain_span(sd), sched_domain_span(parent))) {
02d81c8f49452e Valentin Schneider   2021-02-03  1013  		sd = parent;
02d81c8f49452e Valentin Schneider   2021-02-03  1014  		parent = sd->parent;
02d81c8f49452e Valentin Schneider   2021-02-03  1015  	}
02d81c8f49452e Valentin Schneider   2021-02-03  1016  
02d81c8f49452e Valentin Schneider   2021-02-03  1017  	return parent;
02d81c8f49452e Valentin Schneider   2021-02-03  1018  }
02d81c8f49452e Valentin Schneider   2021-02-03  1019  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 22621 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-02-09 10:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-03 15:54 [RFC PATCH 0/2] sched/topology: Get rid of overlapping groups Valentin Schneider
2021-02-03 15:54 ` [RFC PATCH 1/2] sched/topology: Get rid of NUMA " Valentin Schneider
2021-02-03 18:38   ` Dan Carpenter
2021-02-03 18:38     ` Dan Carpenter
2021-02-03 19:26     ` Valentin Schneider
2021-02-08 10:04   ` Song Bao Hua (Barry Song)
2021-02-08 11:47     ` Valentin Schneider
2021-02-09  0:12       ` Song Bao Hua (Barry Song)
2021-02-09 10:41         ` Valentin Schneider
2021-02-03 15:54 ` [RFC PATCH 2/2] Revert "sched/topology: Warn when NUMA diameter > 2" Valentin Schneider
2021-02-08 10:27   ` Song Bao Hua (Barry Song)
2021-02-03 15:54 ` [RFC PATCH 3/2] sched/topology: Alternative diameter >= 2 fixup Valentin Schneider
  -- strict thread matches above, loose matches on Subject: below --
2021-02-03 18:31 [RFC PATCH 1/2] sched/topology: Get rid of NUMA overlapping groups kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.