Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777522 - sys-kernel/gentoo-sources-5.11.8[experimental] fails to build when using alternative Alternative CPU Schedulers (SCHED_ALT)
Summary: sys-kernel/gentoo-sources-5.11.8[experimental] fails to build when using alte...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-21 13:50 UTC by ernsteiswuerfel
Modified: 2021-03-21 22:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kernel .config (kernel 5.11.8, Talos II) (config_5118_p9,105.48 KB, text/plain)
2021-03-21 13:50 UTC, ernsteiswuerfel
Details
emerge --info (file_777522.txt,6.16 KB, text/plain)
2021-03-21 13:52 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2021-03-21 13:50:48 UTC
Created attachment 692724 [details]
kernel .config (kernel 5.11.8, Talos II)

This happens when I choose SCHED_ALT, BMQ on my Talos II on kernel 5.11.8. Building without SCHED_ALT selected works fine.

[...]
 # make
  CALL    scripts/checksyscalls.sh
  CALL    scripts/atomic/check-atomics.sh
  CHK     include/generated/compile.h
  CC      kernel/sched/alt_core.o
kernel/sched/alt_core.c: In function ‘sched_init_topology_cpumask’:
kernel/sched/alt_core.c:6358:43: error: implicit declaration of function ‘cpu_coregroup_mask’ [-Werror=implicit-function-declaration]
 6358 |   per_cpu(sd_llc_id, cpu) = cpumask_first(cpu_coregroup_mask(cpu));
      |                                           ^~~~~~~~~~~~~~~~~~
kernel/sched/alt_core.c:6358:43: warning: passing argument 1 of ‘cpumask_first’ makes pointer from integer without a cast [-Wint-conversion]
 6358 |   per_cpu(sd_llc_id, cpu) = cpumask_first(cpu_coregroup_mask(cpu));
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~
      |                                           |
      |                                           int
In file included from ./include/linux/smp.h:13,
                 from ./include/linux/lockdep.h:14,
                 from ./include/linux/rcupdate.h:29,
                 from ./include/linux/rculist.h:11,
                 from ./include/linux/pid.h:5,
                 from ./include/linux/sched.h:14,
                 from ./include/linux/kthread.h:6,
                 from ./include/trace/events/sched.h:8,
                 from kernel/sched/alt_core.c:15:
./include/linux/cpumask.h:222:64: note: expected ‘const struct cpumask *’ but argument is of type ‘int’
  222 | static inline unsigned int cpumask_first(const struct cpumask *srcp)
      |                                          ~~~~~~~~~~~~~~~~~~~~~~^~~~
kernel/sched/alt_core.c:6360:31: warning: passing argument 3 of ‘cpumask_and’ makes pointer from integer without a cast [-Wint-conversion]
 6360 |   TOPOLOGY_CPUMASK(coregroup, cpu_coregroup_mask(cpu), false);
      |                               ^~~~~~~~~~~~~~~~~~~~~~~
      |                               |
      |                               int
kernel/sched/alt_core.c:6334:28: note: in definition of macro ‘TOPOLOGY_CPUMASK’
 6334 |  if (cpumask_and(chk, chk, mask)) {     \
      |                            ^~~~
In file included from ./include/linux/smp.h:13,
                 from ./include/linux/lockdep.h:14,
                 from ./include/linux/rcupdate.h:29,
                 from ./include/linux/rculist.h:11,
                 from ./include/linux/pid.h:5,
                 from ./include/linux/sched.h:14,
                 from ./include/linux/kthread.h:6,
                 from ./include/trace/events/sched.h:8,
                 from kernel/sched/alt_core.c:15:
./include/linux/cpumask.h:432:33: note: expected ‘const struct cpumask *’ but argument is of type ‘int’
  432 |           const struct cpumask *src2p)
      |           ~~~~~~~~~~~~~~~~~~~~~~^~~~~
kernel/sched/alt_core.c:6360:31: warning: passing argument 2 of ‘cpumask_copy’ makes pointer from integer without a cast [-Wint-conversion]
 6360 |   TOPOLOGY_CPUMASK(coregroup, cpu_coregroup_mask(cpu), false);
      |                               ^~~~~~~~~~~~~~~~~~~~~~~
      |                               |
      |                               int
kernel/sched/alt_core.c:6335:22: note: in definition of macro ‘TOPOLOGY_CPUMASK’
 6335 |   cpumask_copy(topo, mask);     \
      |                      ^~~~
In file included from ./include/linux/smp.h:13,
                 from ./include/linux/lockdep.h:14,
                 from ./include/linux/rcupdate.h:29,
                 from ./include/linux/rculist.h:11,
                 from ./include/linux/pid.h:5,
                 from ./include/linux/sched.h:14,
                 from ./include/linux/kthread.h:6,
                 from ./include/trace/events/sched.h:8,
                 from kernel/sched/alt_core.c:15:
./include/linux/cpumask.h:604:27: note: expected ‘const struct cpumask *’ but argument is of type ‘int’
  604 |     const struct cpumask *srcp)
      |     ~~~~~~~~~~~~~~~~~~~~~~^~~~
kernel/sched/alt_core.c:6360:31: warning: passing argument 2 of ‘cpumask_complement’ makes pointer from integer without a cast [-Wint-conversion]
 6360 |   TOPOLOGY_CPUMASK(coregroup, cpu_coregroup_mask(cpu), false);
      |                               ^~~~~~~~~~~~~~~~~~~~~~~
      |                               |
      |                               int
kernel/sched/alt_core.c:6340:27: note: in definition of macro ‘TOPOLOGY_CPUMASK’
 6340 |   cpumask_complement(chk, mask)
      |                           ^~~~
In file included from ./include/linux/smp.h:13,
                 from ./include/linux/lockdep.h:14,
                 from ./include/linux/rcupdate.h:29,
                 from ./include/linux/rculist.h:11,
                 from ./include/linux/pid.h:5,
                 from ./include/linux/sched.h:14,
                 from ./include/linux/kthread.h:6,
                 from ./include/trace/events/sched.h:8,
                 from kernel/sched/alt_core.c:15:
./include/linux/cpumask.h:487:33: note: expected ‘const struct cpumask *’ but argument is of type ‘int’
  487 |           const struct cpumask *srcp)
      |           ~~~~~~~~~~~~~~~~~~~~~~^~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:279: kernel/sched/alt_core.o] Error 1
make[1]: *** [scripts/Makefile.build:496: kernel/sched] Error 2
make: *** [Makefile:1806: kernel] Error 2


 # inxi -b 
System:    Kernel: 5.11.7-gentoo-TalosII ppc64 bits: 64 Console: tty 0 
           Distro: Gentoo Base System release 2.7 
Machine:   Type: PowerPC Device System: T2P9D01 REV 1.01 details: PowerNV T2P9D01 REV 1.01 
           rev: 2.2 (pvr 004e 1202) 
CPU:       Info: 32-Core POWER9 altivec supported [MCP] speed: 2154 MHz min/max: 2154/3800 MHz 
Graphics:  Device-1: AMD Turks XT [Radeon HD 6670/7670] driver: radeon v: kernel 
           Device-2: ASPEED Graphics Family driver: N/A 
           Display: server: X.org 1.20.10 driver: ati,radeon unloaded: fbdev,modesetting tty: 104x53 
           Message: Advanced graphics data unavailable in console for root. 
Network:   Device-1: Broadcom and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe driver: tg3 
           Device-2: Broadcom and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe driver: tg3
Comment 1 ernsteiswuerfel archtester 2021-03-21 13:52:42 UTC
Created attachment 692727 [details]
emerge --info
Comment 2 Mike Pagano gentoo-dev 2021-03-21 19:51:47 UTC
This is not support for your arch. I'll send this upstream.
Comment 3 Larry the Git Cow gentoo-dev 2021-03-21 22:22:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cdafa85ce965e3986528cb17230e82e0bb91890

commit 9cdafa85ce965e3986528cb17230e82e0bb91890
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2021-03-21 22:22:49 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2021-03-21 22:22:49 +0000

    sys-kernel/gentoo-sources: Update to BMQ Patch for >= 5.11.8-r1
    
    Set defaults for BMQ. Add archs as people test and report success
    and set the SCHED_ALT default to N
    
    Closes: https://bugs.gentoo.org/777522
    Package-Manager: Portage-3.0.13, Repoman-3.0.2
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 sys-kernel/gentoo-sources/Manifest                 |  3 +++
 .../gentoo-sources/gentoo-sources-5.11.8-r1.ebuild | 28 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)