CC: [email protected]
CC: [email protected]
TO: Nicholas Piggin <[email protected]>
CC: Michael Ellerman <[email protected]>

tree:   https://github.com/linuxppc/linux next-test
head:   5d12a44d97850aacfc86a4817ca304fc33876476
commit: 30c7c7c78275e6054e1f8db8d6ce05743ecfd119 [7/41] powerpc/64s: introduce 
CONFIG_MAXSMP to test very large SMP
:::::: branch date: 3 days ago
:::::: commit date: 6 days ago
config: powerpc-randconfig-s031-20211118 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.0
reproduce:
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # 
https://github.com/linuxppc/linux/commit/30c7c7c78275e6054e1f8db8d6ce05743ecfd119
        git remote add linuxppc https://github.com/linuxppc/linux
        git fetch --no-tags linuxppc next-test
        git checkout 30c7c7c78275e6054e1f8db8d6ce05743ecfd119
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

   arch/powerpc/kernel/smp.c: In function 'add_cpu_to_masks':
>> arch/powerpc/kernel/smp.c:1569:1: warning: the frame size of 2064 bytes is 
>> larger than 2048 bytes [-Wframe-larger-than=]
    1569 | }
         | ^
--
   kernel/workqueue.c: In function 'workqueue_set_unbound_cpumask':
>> kernel/workqueue.c:5441:1: warning: the frame size of 2064 bytes is larger 
>> than 2048 bytes [-Wframe-larger-than=]
    5441 | }
         | ^
   kernel/workqueue.c: In function 'wq_unbound_cpumask_store':
   kernel/workqueue.c:5702:1: warning: the frame size of 2064 bytes is larger 
than 2048 bytes [-Wframe-larger-than=]
    5702 | }
         | ^
--
   kernel/padata.c: In function 'store_cpumask':
>> kernel/padata.c:898:1: warning: the frame size of 2064 bytes is larger than 
>> 2048 bytes [-Wframe-larger-than=]
     898 | }
         | ^
--
   drivers/base/cpu.c: In function 'print_cpus_isolated':
>> drivers/base/cpu.c:284:1: warning: the frame size of 2064 bytes is larger 
>> than 2048 bytes [-Wframe-larger-than=]
     284 | }
         | ^
   drivers/base/cpu.c: In function 'print_cpus_offline':
   drivers/base/cpu.c:265:1: warning: the frame size of 2064 bytes is larger 
than 2048 bytes [-Wframe-larger-than=]
     265 | }
         | ^
--
   kernel/sched/membarrier.c: In function 'membarrier_global_expedited':
>> kernel/sched/membarrier.c:307:1: warning: the frame size of 2064 bytes is 
>> larger than 2048 bytes [-Wframe-larger-than=]
     307 | }
         | ^
   kernel/sched/membarrier.c: In function 'sync_runqueues_membarrier_state':
   kernel/sched/membarrier.c:480:1: warning: the frame size of 2064 bytes is 
larger than 2048 bytes [-Wframe-larger-than=]
     480 | }
         | ^
   kernel/sched/membarrier.c: In function 'membarrier_private_expedited':
   kernel/sched/membarrier.c:423:1: warning: the frame size of 2064 bytes is 
larger than 2048 bytes [-Wframe-larger-than=]
     423 | }
         | ^
--
   kernel/sched/isolation.c: In function 'housekeeping_setup':
>> kernel/sched/isolation.c:135:1: warning: the frame size of 4112 bytes is 
>> larger than 2048 bytes [-Wframe-larger-than=]
     135 | }
         | ^
--
   kernel/sched/core.c:3439:6: warning: no previous prototype for 
'sched_set_stop_task' [-Wmissing-prototypes]
    3439 | void sched_set_stop_task(int cpu, struct task_struct *stop)
         |      ^~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c: In function 'force_compatible_cpus_allowed_ptr':
>> kernel/sched/core.c:2979:1: warning: the frame size of 2072 bytes is larger 
>> than 2048 bytes [-Wframe-larger-than=]
    2979 | }
         | ^
   kernel/sched/core.c: In function '__sched_setaffinity':
   kernel/sched/core.c:7954:1: warning: the frame size of 4112 bytes is larger 
than 2048 bytes [-Wframe-larger-than=]
    7954 | }
         | ^
   kernel/sched/core.c: In function '__do_sys_sched_setaffinity':
   kernel/sched/core.c:8031:1: warning: the frame size of 2064 bytes is larger 
than 2048 bytes [-Wframe-larger-than=]
    8031 | }
         | ^
   kernel/sched/core.c: In function '__do_sys_sched_getaffinity':
   kernel/sched/core.c:8095:1: warning: the frame size of 2064 bytes is larger 
than 2048 bytes [-Wframe-larger-than=]
    8095 | }
         | ^
--
   net/core/net-sysfs.c: In function 'store_rps_map':
>> net/core/net-sysfs.c:894:1: warning: the frame size of 2064 bytes is larger 
>> than 2048 bytes [-Wframe-larger-than=]
     894 | }
         | ^
   net/core/net-sysfs.c: In function 'show_rps_map':
   net/core/net-sysfs.c:827:1: warning: the frame size of 2064 bytes is larger 
than 2048 bytes [-Wframe-larger-than=]
     827 | }
         | ^
   net/core/net-sysfs.c: In function 'xps_cpus_store':
   net/core/net-sysfs.c:1538:1: warning: the frame size of 2064 bytes is larger 
than 2048 bytes [-Wframe-larger-than=]
    1538 | }
         | ^
--
   lib/cpu_rmap.c: In function 'cpu_rmap_update':
>> lib/cpu_rmap.c:208:1: warning: the frame size of 2064 bytes is larger than 
>> 2048 bytes [-Wframe-larger-than=]
     208 | }
         | ^
--
   kernel/irq/manage.c: In function 'irq_thread_check_affinity':
>> kernel/irq/manage.c:1157:1: warning: the frame size of 2064 bytes is larger 
>> than 2048 bytes [-Wframe-larger-than=]
    1157 | }
         | ^
   kernel/irq/manage.c: In function 'irq_affinity_notify':
   kernel/irq/manage.c:528:1: warning: the frame size of 2064 bytes is larger 
than 2048 bytes [-Wframe-larger-than=]
     528 | }
         | ^
--
   kernel/irq/affinity.c: In function 'irq_build_affinity_masks':
>> kernel/irq/affinity.c:400:1: warning: the frame size of 4112 bytes is larger 
>> than 2048 bytes [-Wframe-larger-than=]
     400 | }
         | ^
..


vim +1569 arch/powerpc/kernel/smp.c

b8a97cb4599cda Srikar Dronamraju 2020-09-21  1512  
df52f6714071c4 Oliver O'Halloran 2017-06-29  1513  static void 
add_cpu_to_masks(int cpu)
df52f6714071c4 Oliver O'Halloran 2017-06-29  1514  {
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1515       struct cpumask 
*(*submask_fn)(int) = cpu_sibling_mask;
df52f6714071c4 Oliver O'Halloran 2017-06-29  1516       int first_thread = 
cpu_first_thread_sibling(cpu);
84dbf66c634720 Srikar Dronamraju 2020-10-19  1517       cpumask_var_t mask;
c1e53367dab15e Srikar Dronamraju 2021-04-15  1518       int chip_id = -1;
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1519       bool ret;
df52f6714071c4 Oliver O'Halloran 2017-06-29  1520       int i;
df52f6714071c4 Oliver O'Halloran 2017-06-29  1521  
df52f6714071c4 Oliver O'Halloran 2017-06-29  1522       /*
df52f6714071c4 Oliver O'Halloran 2017-06-29  1523        * This CPU will not be 
in the online mask yet so we need to manually
df52f6714071c4 Oliver O'Halloran 2017-06-29  1524        * add it to it's own 
thread sibling mask.
df52f6714071c4 Oliver O'Halloran 2017-06-29  1525        */
9a245d0e1f006b Srikar Dronamraju 2021-08-26  1526       map_cpu_to_node(cpu, 
cpu_to_node(cpu));
df52f6714071c4 Oliver O'Halloran 2017-06-29  1527       cpumask_set_cpu(cpu, 
cpu_sibling_mask(cpu));
b8b928030332a0 Srikar Dronamraju 2021-08-26  1528       cpumask_set_cpu(cpu, 
cpu_core_mask(cpu));
df52f6714071c4 Oliver O'Halloran 2017-06-29  1529  
df52f6714071c4 Oliver O'Halloran 2017-06-29  1530       for (i = first_thread; 
i < first_thread + threads_per_core; i++)
df52f6714071c4 Oliver O'Halloran 2017-06-29  1531               if 
(cpu_online(i))
df52f6714071c4 Oliver O'Halloran 2017-06-29  1532                       
set_cpus_related(i, cpu, cpu_sibling_mask);
df52f6714071c4 Oliver O'Halloran 2017-06-29  1533  
425752c63b6f3f Gautham R. Shenoy 2018-10-11  1534       
add_cpu_to_smallcore_masks(cpu);
84dbf66c634720 Srikar Dronamraju 2020-10-19  1535  
84dbf66c634720 Srikar Dronamraju 2020-10-19  1536       /* In CPU-hotplug path, 
hence use GFP_ATOMIC */
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1537       ret = 
alloc_cpumask_var_node(&mask, GFP_ATOMIC, cpu_to_node(cpu));
84dbf66c634720 Srikar Dronamraju 2020-10-19  1538       update_mask_by_l2(cpu, 
&mask);
2a636a56d2d396 Oliver O'Halloran 2017-06-29  1539  
b8a97cb4599cda Srikar Dronamraju 2020-09-21  1540       if 
(has_coregroup_support())
84dbf66c634720 Srikar Dronamraju 2020-10-19  1541               
update_coregroup_mask(cpu, &mask);
84dbf66c634720 Srikar Dronamraju 2020-10-19  1542  
c1e53367dab15e Srikar Dronamraju 2021-04-15  1543       if 
(chip_id_lookup_table && ret)
c1e53367dab15e Srikar Dronamraju 2021-04-15  1544               chip_id = 
cpu_to_chip_id(cpu);
c1e53367dab15e Srikar Dronamraju 2021-04-15  1545  
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1546       if (shared_caches)
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1547               submask_fn = 
cpu_l2_cache_mask;
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1548  
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1549       /* Update core_mask 
with all the CPUs that are part of submask */
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1550       
or_cpumasks_related(cpu, cpu, submask_fn, cpu_core_mask);
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1551  
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1552       /* Skip all CPUs 
already part of current CPU core mask */
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1553       cpumask_andnot(mask, 
cpu_online_mask, cpu_core_mask(cpu));
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1554  
b8b928030332a0 Srikar Dronamraju 2021-08-26  1555       /* If chip_id is -1; 
limit the cpu_core_mask to within DIE*/
b8b928030332a0 Srikar Dronamraju 2021-08-26  1556       if (chip_id == -1)
b8b928030332a0 Srikar Dronamraju 2021-08-26  1557               
cpumask_and(mask, mask, cpu_cpu_mask(cpu));
b8b928030332a0 Srikar Dronamraju 2021-08-26  1558  
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1559       for_each_cpu(i, mask) {
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1560               if (chip_id == 
cpu_to_chip_id(i)) {
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1561                       
or_cpumasks_related(cpu, i, submask_fn, cpu_core_mask);
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1562                       
cpumask_andnot(mask, mask, submask_fn(i));
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1563               } else {
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1564                       
cpumask_andnot(mask, mask, cpu_core_mask(i));
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1565               }
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1566       }
c47f892d7aa627 Srikar Dronamraju 2021-04-15  1567  
84dbf66c634720 Srikar Dronamraju 2020-10-19  1568       free_cpumask_var(mask);
a8a5356cd511db Paul Mackerras    2013-08-12 @1569  }
a8a5356cd511db Paul Mackerras    2013-08-12  1570  

:::::: The code at line 1569 was first introduced by commit
:::::: a8a5356cd511db229aeaad636dc0f83d8c4d0a15 powerpc: Pull out cpu_core_mask 
updates into a separate function

:::::: TO: Paul Mackerras <[email protected]>
:::::: CC: Benjamin Herrenschmidt <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to