drivers/hwmon/pmbus/ir38064.c:54:34: warning: unused variable 'ir38064_of_match'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e3a8b6a1e70c37702054ae3c7c07ed828435d8ee
commit: e65de225ef2f7eade2888b00970eec37aeca0044 hwmon/pmbus: (ir38064) Add of_match_table
date: 3 weeks ago
config: hexagon-randconfig-r041-20220116 (https://download.01.org/0day-ci/archive/20220118/202201181742.A2Dm08zD-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c10cbb243cafc0cf42c3e922cb29183279444432)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e65de225ef2f7eade2888b00970eec37aeca0044
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/hwmon/pmbus/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/hwmon/pmbus/ir38064.c:54:34: warning: unused variable 'ir38064_of_match' [-Wunused-const-variable]
static const struct of_device_id ir38064_of_match[] = {
^
1 warning generated.
vim +/ir38064_of_match +54 drivers/hwmon/pmbus/ir38064.c
53
> 54 static const struct of_device_id ir38064_of_match[] = {
55 { .compatible = "infineon,ir38060" },
56 { .compatible = "infineon,ir38064" },
57 { .compatible = "infineon,ir38164" },
58 { .compatible = "infineon,ir38263" },
59 {}
60 };
61
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
scripts/sorttable.h:380:6: warning: variable 'mcount_sort_thread' is used uninitialized whenever 'if' condition is true
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e3a8b6a1e70c37702054ae3c7c07ed828435d8ee
commit: 72b3942a173c387b27860ba1069636726e208777 scripts: ftrace - move the sort-processing in ftrace_init
date: 5 days ago
config: s390-randconfig-r044-20220116 (https://download.01.org/0day-ci/archive/20220118/202201181730.mj1jL8Vy-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c10cbb243cafc0cf42c3e922cb29183279444432)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 72b3942a173c387b27860ba1069636726e208777
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 prepare
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from scripts/sorttable.c:195:
>> scripts/sorttable.h:380:6: warning: variable 'mcount_sort_thread' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (!mstruct.init_data_sec || !_start_mcount_loc || !_stop_mcount_loc) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/sorttable.h:479:6: note: uninitialized use occurs here
if (mcount_sort_thread) {
^~~~~~~~~~~~~~~~~~
scripts/sorttable.h:380:2: note: remove the 'if' if its condition is always false
if (!mstruct.init_data_sec || !_start_mcount_loc || !_stop_mcount_loc) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> scripts/sorttable.h:380:6: warning: variable 'mcount_sort_thread' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized]
if (!mstruct.init_data_sec || !_start_mcount_loc || !_stop_mcount_loc) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/sorttable.h:479:6: note: uninitialized use occurs here
if (mcount_sort_thread) {
^~~~~~~~~~~~~~~~~~
scripts/sorttable.h:380:6: note: remove the '||' if its condition is always false
if (!mstruct.init_data_sec || !_start_mcount_loc || !_stop_mcount_loc) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> scripts/sorttable.h:380:6: warning: variable 'mcount_sort_thread' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized]
if (!mstruct.init_data_sec || !_start_mcount_loc || !_stop_mcount_loc) {
^~~~~~~~~~~~~~~~~~~~~~
scripts/sorttable.h:479:6: note: uninitialized use occurs here
if (mcount_sort_thread) {
^~~~~~~~~~~~~~~~~~
scripts/sorttable.h:380:6: note: remove the '||' if its condition is always false
if (!mstruct.init_data_sec || !_start_mcount_loc || !_stop_mcount_loc) {
^~~~~~~~~~~~~~~~~~~~~~~~~
scripts/sorttable.h:288:30: note: initialize the variable 'mcount_sort_thread' to silence this warning
pthread_t mcount_sort_thread;
^
= 0
In file included from scripts/sorttable.c:197:
>> scripts/sorttable.h:380:6: warning: variable 'mcount_sort_thread' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (!mstruct.init_data_sec || !_start_mcount_loc || !_stop_mcount_loc) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/sorttable.h:479:6: note: uninitialized use occurs here
if (mcount_sort_thread) {
^~~~~~~~~~~~~~~~~~
scripts/sorttable.h:380:2: note: remove the 'if' if its condition is always false
if (!mstruct.init_data_sec || !_start_mcount_loc || !_stop_mcount_loc) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> scripts/sorttable.h:380:6: warning: variable 'mcount_sort_thread' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized]
if (!mstruct.init_data_sec || !_start_mcount_loc || !_stop_mcount_loc) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/sorttable.h:479:6: note: uninitialized use occurs here
if (mcount_sort_thread) {
^~~~~~~~~~~~~~~~~~
scripts/sorttable.h:380:6: note: remove the '||' if its condition is always false
if (!mstruct.init_data_sec || !_start_mcount_loc || !_stop_mcount_loc) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> scripts/sorttable.h:380:6: warning: variable 'mcount_sort_thread' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized]
if (!mstruct.init_data_sec || !_start_mcount_loc || !_stop_mcount_loc) {
^~~~~~~~~~~~~~~~~~~~~~
scripts/sorttable.h:479:6: note: uninitialized use occurs here
if (mcount_sort_thread) {
^~~~~~~~~~~~~~~~~~
scripts/sorttable.h:380:6: note: remove the '||' if its condition is always false
if (!mstruct.init_data_sec || !_start_mcount_loc || !_stop_mcount_loc) {
^~~~~~~~~~~~~~~~~~~~~~~~~
scripts/sorttable.h:288:30: note: initialize the variable 'mcount_sort_thread' to silence this warning
pthread_t mcount_sort_thread;
^
= 0
6 warnings generated.
In file included from arch/s390/kernel/asm-offsets.c:11:
In file included from include/linux/kvm_host.h:35:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:37:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16'
#define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
^
In file included from arch/s390/kernel/asm-offsets.c:11:
In file included from include/linux/kvm_host.h:35:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:37:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32'
#define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
^
In file included from arch/s390/kernel/asm-offsets.c:11:
In file included from include/linux/kvm_host.h:35:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:37:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
12 warnings generated.
vim +380 scripts/sorttable.h
378
379 #ifdef MCOUNT_SORT_ENABLED
> 380 if (!mstruct.init_data_sec || !_start_mcount_loc || !_stop_mcount_loc) {
381 fprintf(stderr,
382 "incomplete mcount's sort in file: %s\n",
383 fname);
384 goto out;
385 }
386
387 /* create thread to sort mcount_loc concurrently */
388 if (pthread_create(&mcount_sort_thread, NULL, &sort_mcount_loc, &mstruct)) {
389 fprintf(stderr,
390 "pthread_create mcount_sort_thread failed '%s': %s\n",
391 strerror(errno), fname);
392 goto out;
393 }
394 #endif
395 if (!extab_sec) {
396 fprintf(stderr, "no __ex_table in file: %s\n", fname);
397 goto out;
398 }
399
400 if (!symtab_sec) {
401 fprintf(stderr, "no .symtab in file: %s\n", fname);
402 goto out;
403 }
404
405 if (!strtab_sec) {
406 fprintf(stderr, "no .strtab in file: %s\n", fname);
407 goto out;
408 }
409
410 extab_image = (void *)ehdr + _r(&extab_sec->sh_offset);
411 strtab = (const char *)ehdr + _r(&strtab_sec->sh_offset);
412 symtab = (const Elf_Sym *)((const char *)ehdr +
413 _r(&symtab_sec->sh_offset));
414
415 if (custom_sort) {
416 custom_sort(extab_image, _r(&extab_sec->sh_size));
417 } else {
418 int num_entries = _r(&extab_sec->sh_size) / extable_ent_size;
419 qsort(extab_image, num_entries,
420 extable_ent_size, compare_extable);
421 }
422
423 /* If there were relocations, we no longer need them. */
424 if (relocs)
425 memset(relocs, 0, relocs_size);
426
427 /* find the flag main_extable_sort_needed */
428 for (sym = (void *)ehdr + _r(&symtab_sec->sh_offset);
429 sym < sym + _r(&symtab_sec->sh_size) / sizeof(Elf_Sym);
430 sym++) {
431 if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT)
432 continue;
433 if (!strcmp(strtab + r(&sym->st_name),
434 "main_extable_sort_needed")) {
435 sort_needed_sym = sym;
436 break;
437 }
438 }
439
440 if (!sort_needed_sym) {
441 fprintf(stderr,
442 "no main_extable_sort_needed symbol in file: %s\n",
443 fname);
444 goto out;
445 }
446
447 sort_needed_sec = &shdr[get_secindex(r2(&sym->st_shndx),
448 sort_needed_sym - symtab,
449 symtab_shndx)];
450 sort_needed_loc = (void *)ehdr +
451 _r(&sort_needed_sec->sh_offset) +
452 _r(&sort_needed_sym->st_value) -
453 _r(&sort_needed_sec->sh_addr);
454
455 /* extable has been sorted, clear the flag */
456 w(0, sort_needed_loc);
457 rc = 0;
458
459 out:
460 #if defined(SORTTABLE_64) && defined(UNWINDER_ORC_ENABLED)
461 if (orc_sort_thread) {
462 void *retval = NULL;
463 /* wait for ORC tables sort done */
464 rc = pthread_join(orc_sort_thread, &retval);
465 if (rc) {
466 fprintf(stderr,
467 "pthread_join failed '%s': %s\n",
468 strerror(errno), fname);
469 } else if (retval) {
470 rc = -1;
471 fprintf(stderr,
472 "failed to sort ORC tables '%s': %s\n",
473 (char *)retval, fname);
474 }
475 }
476 #endif
477
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
fs/nfsd/nfs4proc.c:1219:17: warning: 'strncpy' specified bound 63 equals destination size
by kernel test robot
Hi Dai,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e3a8b6a1e70c37702054ae3c7c07ed828435d8ee
commit: f4e44b393389c77958f7c58bf4415032b4cda15b NFSD: delay unmount source's export after inter-server copy completed.
date: 8 months ago
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20220118/202201181657.6QL0fpaT-lk...)
compiler: hppa-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout f4e44b393389c77958f7c58bf4415032b4cda15b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc SHELL=/bin/bash drivers/net/ethernet/mellanox/mlx5/core/esw/ drivers/net/wireless/broadcom/brcm80211/brcmfmac/ drivers/net/wireless/broadcom/brcm80211/brcmsmac/ drivers/net/wireless/intel/iwlwifi/ fs/nfsd/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
fs/nfsd/nfs4proc.c: In function 'nfsd4_ssc_setup_dul.constprop':
>> fs/nfsd/nfs4proc.c:1219:17: warning: 'strncpy' specified bound 63 equals destination size [-Wstringop-truncation]
1219 | strncpy(work->nsui_ipaddr, ipaddr, sizeof(work->nsui_ipaddr));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/strncpy +1219 fs/nfsd/nfs4proc.c
1174
1175 /*
1176 * setup a work entry in the ssc delayed unmount list.
1177 */
1178 static int nfsd4_ssc_setup_dul(struct nfsd_net *nn, char *ipaddr,
1179 struct nfsd4_ssc_umount_item **retwork, struct vfsmount **ss_mnt)
1180 {
1181 struct nfsd4_ssc_umount_item *ni = 0;
1182 struct nfsd4_ssc_umount_item *work = NULL;
1183 struct nfsd4_ssc_umount_item *tmp;
1184 DEFINE_WAIT(wait);
1185
1186 *ss_mnt = NULL;
1187 *retwork = NULL;
1188 work = kzalloc(sizeof(*work), GFP_KERNEL);
1189 try_again:
1190 spin_lock(&nn->nfsd_ssc_lock);
1191 list_for_each_entry_safe(ni, tmp, &nn->nfsd_ssc_mount_list, nsui_list) {
1192 if (strncmp(ni->nsui_ipaddr, ipaddr, sizeof(ni->nsui_ipaddr)))
1193 continue;
1194 /* found a match */
1195 if (ni->nsui_busy) {
1196 /* wait - and try again */
1197 prepare_to_wait(&nn->nfsd_ssc_waitq, &wait,
1198 TASK_INTERRUPTIBLE);
1199 spin_unlock(&nn->nfsd_ssc_lock);
1200
1201 /* allow 20secs for mount/unmount for now - revisit */
1202 if (signal_pending(current) ||
1203 (schedule_timeout(20*HZ) == 0)) {
1204 kfree(work);
1205 return nfserr_eagain;
1206 }
1207 finish_wait(&nn->nfsd_ssc_waitq, &wait);
1208 goto try_again;
1209 }
1210 *ss_mnt = ni->nsui_vfsmount;
1211 refcount_inc(&ni->nsui_refcnt);
1212 spin_unlock(&nn->nfsd_ssc_lock);
1213 kfree(work);
1214
1215 /* return vfsmount in ss_mnt */
1216 return 0;
1217 }
1218 if (work) {
> 1219 strncpy(work->nsui_ipaddr, ipaddr, sizeof(work->nsui_ipaddr));
1220 refcount_set(&work->nsui_refcnt, 2);
1221 work->nsui_busy = true;
1222 list_add_tail(&work->nsui_list, &nn->nfsd_ssc_mount_list);
1223 *retwork = work;
1224 }
1225 spin_unlock(&nn->nfsd_ssc_lock);
1226 return 0;
1227 }
1228
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
[chrome-os:chromeos-5.10 9987/9999] drivers/gpu/arm/valhall/mali_kbase_jd_debugfs.c:78:46: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'u64' {aka 'long long unsigned int'}
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: d2945e83762685e27b20286924d8e59daa10233f
commit: 79b0a1f26446bb3026f29a6cc0cf40d82112ca85 [9987/9999] CHROMIUM: gpu: mali: Apply Valhall r32p0 EAC release
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220118/202201181459.lvZ4jovR-lk...)
compiler: aarch64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout 79b0a1f26446bb3026f29a6cc0cf40d82112ca85
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/gpu/arm/valhall/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
cc1: warning: kbuild/src/consumer/drivers/gpu/arm/valhall: No such file or directory [-Wmissing-include-dirs]
drivers/gpu/arm/valhall/mali_kbase_jd_debugfs.c: In function 'kbase_jd_debugfs_fence_info':
>> drivers/gpu/arm/valhall/mali_kbase_jd_debugfs.c:78:46: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'u64' {aka 'long long unsigned int'} [-Wformat=]
78 | "Sd(%llu#%u: %s) ",
| ~^
| |
| unsigned int
| %llu
79 | #endif
80 | fence->context, fence->seqno,
| ~~~~~~~~~~~~
| |
| u64 {aka long long unsigned int}
drivers/gpu/arm/valhall/mali_kbase_jd_debugfs.c:97:46: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'u64' {aka 'long long unsigned int'} [-Wformat=]
97 | "Wd(%llu#%u: %s) ",
| ~^
| |
| unsigned int
| %llu
98 | #endif
99 | fence->context, fence->seqno,
| ~~~~~~~~~~~~
| |
| u64 {aka long long unsigned int}
vim +78 drivers/gpu/arm/valhall/mali_kbase_jd_debugfs.c
73
74 seq_printf(sfile,
75 #if (KERNEL_VERSION(4, 8, 0) > LINUX_VERSION_CODE)
76 "Sd(%u#%u: %s) ",
77 #else
> 78 "Sd(%llu#%u: %s) ",
79 #endif
80 fence->context, fence->seqno,
81 dma_fence_is_signaled(fence) ? "signaled" :
82 "active");
83 }
84
85 list_for_each_entry(cb, &atom->dma_fence.callbacks,
86 node) {
87 #if (KERNEL_VERSION(4, 10, 0) > LINUX_VERSION_CODE)
88 struct fence *fence = cb->fence;
89 #else
90 struct dma_fence *fence = cb->fence;
91 #endif
92
93 seq_printf(sfile,
94 #if (KERNEL_VERSION(4, 8, 0) > LINUX_VERSION_CODE)
95 "Wd(%u#%u: %s) ",
96 #else
97 "Wd(%llu#%u: %s) ",
98 #endif
99 fence->context, fence->seqno,
100 dma_fence_is_signaled(fence) ? "signaled" :
101 "active");
102 }
103 }
104 #endif /* CONFIG_MALI_VALHALL_DMA_FENCE */
105
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
[chrome-os:chromeos-5.10 9987/9999] drivers/gpu/arm/valhall/backend/gpu/mali_kbase_irq_linux.c:182:13: warning: no previous prototype for function 'kbase_gpu_irq_test_handler'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: d2945e83762685e27b20286924d8e59daa10233f
commit: 79b0a1f26446bb3026f29a6cc0cf40d82112ca85 [9987/9999] CHROMIUM: gpu: mali: Apply Valhall r32p0 EAC release
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20220118/202201181455.oCI9OMRx-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c10cbb243cafc0cf42c3e922cb29183279444432)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout 79b0a1f26446bb3026f29a6cc0cf40d82112ca85
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/gpu/arm/valhall/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/arm/valhall/mali_kbase_jd_debugfs.c:80:24: warning: format specifies type 'unsigned int' but the argument has type 'u64' (aka 'unsigned long long') [-Wformat]
fence->context, fence->seqno,
^~~~~~~~~~~~
drivers/gpu/arm/valhall/mali_kbase_jd_debugfs.c:99:24: warning: format specifies type 'unsigned int' but the argument has type 'u64' (aka 'unsigned long long') [-Wformat]
fence->context, fence->seqno,
^~~~~~~~~~~~
2 warnings generated.
--
>> drivers/gpu/arm/valhall/backend/gpu/mali_kbase_irq_linux.c:182:13: warning: no previous prototype for function 'kbase_gpu_irq_test_handler' [-Wmissing-prototypes]
irqreturn_t kbase_gpu_irq_test_handler(int irq, void *data, u32 val)
^
drivers/gpu/arm/valhall/backend/gpu/mali_kbase_irq_linux.c:182:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
irqreturn_t kbase_gpu_irq_test_handler(int irq, void *data, u32 val)
^
static
drivers/gpu/arm/valhall/backend/gpu/mali_kbase_irq_linux.c:210:5: warning: no previous prototype for function 'kbase_set_custom_irq_handler' [-Wmissing-prototypes]
int kbase_set_custom_irq_handler(struct kbase_device *kbdev,
^
drivers/gpu/arm/valhall/backend/gpu/mali_kbase_irq_linux.c:210:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int kbase_set_custom_irq_handler(struct kbase_device *kbdev,
^
static
2 warnings generated.
vim +/kbase_gpu_irq_test_handler +182 drivers/gpu/arm/valhall/backend/gpu/mali_kbase_irq_linux.c
f38632197c49e6 Nicolas Boichat 2020-04-18 168
f38632197c49e6 Nicolas Boichat 2020-04-18 169 /**
f38632197c49e6 Nicolas Boichat 2020-04-18 170 * kbase_gpu_irq_test_handler - Variant (for test) of kbase_gpu_irq_handler()
f38632197c49e6 Nicolas Boichat 2020-04-18 171 * @irq: IRQ number
f38632197c49e6 Nicolas Boichat 2020-04-18 172 * @data: Data associated with this IRQ (i.e. kbdev)
f38632197c49e6 Nicolas Boichat 2020-04-18 173 * @val: Value of the GPU_CONTROL_REG(GPU_IRQ_STATUS)
f38632197c49e6 Nicolas Boichat 2020-04-18 174 *
f38632197c49e6 Nicolas Boichat 2020-04-18 175 * Handle the GPU device interrupt source requests reflected in the
f38632197c49e6 Nicolas Boichat 2020-04-18 176 * given source bit-pattern. The test code caller is responsible for
f38632197c49e6 Nicolas Boichat 2020-04-18 177 * undertaking the required device power maintenace.
f38632197c49e6 Nicolas Boichat 2020-04-18 178 *
f38632197c49e6 Nicolas Boichat 2020-04-18 179 * Return: IRQ_HANDLED if the requests are from the GPU device,
f38632197c49e6 Nicolas Boichat 2020-04-18 180 * IRQ_NONE otherwise
f38632197c49e6 Nicolas Boichat 2020-04-18 181 */
10cd017481f1fa Fei Shao 2021-06-17 @182 irqreturn_t kbase_gpu_irq_test_handler(int irq, void *data, u32 val)
f38632197c49e6 Nicolas Boichat 2020-04-18 183 {
f38632197c49e6 Nicolas Boichat 2020-04-18 184 struct kbase_device *kbdev = kbase_untag(data);
f38632197c49e6 Nicolas Boichat 2020-04-18 185
f38632197c49e6 Nicolas Boichat 2020-04-18 186 if (!val)
f38632197c49e6 Nicolas Boichat 2020-04-18 187 return IRQ_NONE;
f38632197c49e6 Nicolas Boichat 2020-04-18 188
f38632197c49e6 Nicolas Boichat 2020-04-18 189 dev_dbg(kbdev->dev, "%s: irq %d irqstatus 0x%x\n", __func__, irq, val);
f38632197c49e6 Nicolas Boichat 2020-04-18 190
f38632197c49e6 Nicolas Boichat 2020-04-18 191 kbase_gpu_interrupt(kbdev, val);
f38632197c49e6 Nicolas Boichat 2020-04-18 192
f38632197c49e6 Nicolas Boichat 2020-04-18 193 return IRQ_HANDLED;
f38632197c49e6 Nicolas Boichat 2020-04-18 194 }
f38632197c49e6 Nicolas Boichat 2020-04-18 195
:::::: The code at line 182 was first introduced by commit
:::::: 10cd017481f1fa5fd8308956be32117a4103519f CHROMIUM: MALI: Include kutf modules
:::::: TO: Fei Shao <fshao(a)chromium.org>
:::::: CC: Commit Bot <commit-bot(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
dtbs_check: arch/arm/boot/dts/socfpga_arria5_socdk.dt.yaml: soc: 'l3regs@0xff800000' does not match any of the regexes: '.*-names$', '.*-supply$', '^#.*-cells$', '^#[a-zA-Z0-9,+\-._]{0,63}$', '^[a-zA-Z0-9][a-zA-Z0-9,+\-._]{0,63}$', '^[a-zA-Z][a-zA-Z0-9,+\...
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 35ce8ae9ae2e471f92759f9d6880eab42cc1c3b6
commit: 4483397b03536506535d611b0cb28a81a69e8edf ARM: socfpga: drop ARCH_SOCFPGA
date: 10 months ago
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce: make ARCH=arm dtbs_check
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
dtcheck warnings: (new ones prefixed by >>)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
drivers/gpu/drm/ast/ast_mode.c:1232:3: warning: Use of memory after it is freed [clang-analyzer-unix.Malloc]
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fb3b0673b7d5b477ed104949450cd511337ba3c6
commit: 55dc449a7c60d3df5a8f0b71bbae9d5173c864f5 drm/ast: Handle failed I2C initialization gracefully
date: 4 weeks ago
config: riscv-randconfig-c006-20220113 (https://download.01.org/0day-ci/archive/20220114/202201141416.VfNXpsi5-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d1021978b8e7e35dcc30201ca1731d64b5a602a8)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 55dc449a7c60d3df5a8f0b71bbae9d5173c864f5
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv clang-analyzer
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
clang-analyzer warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/ast/ast_mode.c:1232:3: warning: Use of memory after it is freed [clang-analyzer-unix.Malloc]
drm_connector_update_edid_property(&ast_connector->base, edid);
^ ~~~~
drivers/gpu/drm/ast/ast_mode.c:1217:6: note: Assuming field 'tx_chip_type' is equal to AST_TX_DP501
if (ast->tx_chip_type == AST_TX_DP501) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/ast/ast_mode.c:1217:2: note: Taking true branch
if (ast->tx_chip_type == AST_TX_DP501) {
^
drivers/gpu/drm/ast/ast_mode.c:1220:7: note: Assuming 'edid' is non-null
if (!edid)
^~~~~
drivers/gpu/drm/ast/ast_mode.c:1220:3: note: Taking false branch
if (!edid)
^
drivers/gpu/drm/ast/ast_mode.c:1224:7: note: Assuming 'flags' is false
if (flags)
^~~~~
drivers/gpu/drm/ast/ast_mode.c:1224:3: note: Taking false branch
if (flags)
^
drivers/gpu/drm/ast/ast_mode.c:1227:4: note: Memory is released
kfree(edid);
^~~~~~~~~~~
drivers/gpu/drm/ast/ast_mode.c:1229:7: note: 'flags' is false
if (!flags && ast_connector->i2c)
^~~~~
drivers/gpu/drm/ast/ast_mode.c:1229:6: note: Left side of '&&' is true
if (!flags && ast_connector->i2c)
^
drivers/gpu/drm/ast/ast_mode.c:1229:16: note: Assuming field 'i2c' is null
if (!flags && ast_connector->i2c)
^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/ast/ast_mode.c:1229:2: note: Taking false branch
if (!flags && ast_connector->i2c)
^
drivers/gpu/drm/ast/ast_mode.c:1231:6: note: 'edid' is non-null
if (edid) {
^~~~
drivers/gpu/drm/ast/ast_mode.c:1231:2: note: Taking true branch
if (edid) {
^
drivers/gpu/drm/ast/ast_mode.c:1232:3: note: Use of memory after it is freed
drm_connector_update_edid_property(&ast_connector->base, edid);
^ ~~~~
vim +1232 drivers/gpu/drm/ast/ast_mode.c
312fec1405dd54 Dave Airlie 2012-02-29 1204
4961eb60f14553 Thomas Zimmermann 2019-11-07 1205 /*
4961eb60f14553 Thomas Zimmermann 2019-11-07 1206 * Connector
4961eb60f14553 Thomas Zimmermann 2019-11-07 1207 */
4961eb60f14553 Thomas Zimmermann 2019-11-07 1208
312fec1405dd54 Dave Airlie 2012-02-29 1209 static int ast_get_modes(struct drm_connector *connector)
312fec1405dd54 Dave Airlie 2012-02-29 1210 {
312fec1405dd54 Dave Airlie 2012-02-29 1211 struct ast_connector *ast_connector = to_ast_connector(connector);
fa7dbd7688849d Thomas Zimmermann 2020-06-17 1212 struct ast_private *ast = to_ast_private(connector->dev);
55dc449a7c60d3 Thomas Zimmermann 2021-12-06 1213 struct edid *edid = NULL;
83c6620bae3f14 Dave Airlie 2014-03-28 1214 bool flags = false;
55dc449a7c60d3 Thomas Zimmermann 2021-12-06 1215 int ret;
6c9bd4432b2527 Gregory Williams 2021-07-30 1216
83c6620bae3f14 Dave Airlie 2014-03-28 1217 if (ast->tx_chip_type == AST_TX_DP501) {
83c6620bae3f14 Dave Airlie 2014-03-28 1218 ast->dp501_maxclk = 0xff;
83c6620bae3f14 Dave Airlie 2014-03-28 1219 edid = kmalloc(128, GFP_KERNEL);
83c6620bae3f14 Dave Airlie 2014-03-28 1220 if (!edid)
83c6620bae3f14 Dave Airlie 2014-03-28 1221 return -ENOMEM;
312fec1405dd54 Dave Airlie 2012-02-29 1222
83c6620bae3f14 Dave Airlie 2014-03-28 1223 flags = ast_dp501_read_edid(connector->dev, (u8 *)edid);
83c6620bae3f14 Dave Airlie 2014-03-28 1224 if (flags)
83c6620bae3f14 Dave Airlie 2014-03-28 1225 ast->dp501_maxclk = ast_get_dp501_max_clk(connector->dev);
83c6620bae3f14 Dave Airlie 2014-03-28 1226 else
83c6620bae3f14 Dave Airlie 2014-03-28 1227 kfree(edid);
83c6620bae3f14 Dave Airlie 2014-03-28 1228 }
55dc449a7c60d3 Thomas Zimmermann 2021-12-06 1229 if (!flags && ast_connector->i2c)
312fec1405dd54 Dave Airlie 2012-02-29 1230 edid = drm_get_edid(connector, &ast_connector->i2c->adapter);
312fec1405dd54 Dave Airlie 2012-02-29 1231 if (edid) {
c555f02371c338 Daniel Vetter 2018-07-09 @1232 drm_connector_update_edid_property(&ast_connector->base, edid);
312fec1405dd54 Dave Airlie 2012-02-29 1233 ret = drm_add_edid_modes(connector, edid);
993dcb05e47e35 Jani Nikula 2012-08-15 1234 kfree(edid);
312fec1405dd54 Dave Airlie 2012-02-29 1235 return ret;
6c9bd4432b2527 Gregory Williams 2021-07-30 1236 }
c555f02371c338 Daniel Vetter 2018-07-09 1237 drm_connector_update_edid_property(&ast_connector->base, NULL);
312fec1405dd54 Dave Airlie 2012-02-29 1238 return 0;
312fec1405dd54 Dave Airlie 2012-02-29 1239 }
312fec1405dd54 Dave Airlie 2012-02-29 1240
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
{standard input}:1381: Error: Insn slot not set in unwind record.
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a33f5c380c4bd3fa5278d690421b72052456d9fe
commit: bf67014d6bda16a72deea11dbbff2a97c705ca92 drm/amdgpu: introduce new amdgpu_fence object to indicate the job embedded fence
date: 4 weeks ago
config: ia64-randconfig-r033-20220114 (https://download.01.org/0day-ci/archive/20220115/202201151944.siKQX7w9-lk...)
compiler: ia64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout bf67014d6bda16a72deea11dbbff2a97c705ca92
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/ia64/include/asm/pgtable.h:153,
from include/linux/pgtable.h:6,
from arch/ia64/include/asm/uaccess.h:40,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/seq_file.h:12,
from drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:31:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
arch/ia64/include/asm/mmu_context.h:127:48: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
{standard input}: Assembler messages:
>> {standard input}:1381: Error: Insn slot not set in unwind record.
{standard input}:1381: Fatal error: Section switching in code is not supported.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
Re: [RFC v2] perf: Rewrite core context handling
by kernel test robot
Hi Ravi,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on tip/perf/core]
[also build test WARNING on powerpc/next tip/sched/core v5.16 next-20220114]
[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/Ravi-Bangoria/perf-Rewrite-core-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git a9f4a6e92b3b319296fb078da2615f618f6cd80c
config: arm-randconfig-c002-20220113 (https://download.01.org/0day-ci/archive/20220115/202201150516.CCZxTJTq-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d1021978b8e7e35dcc30201ca1731d64b5a602a8)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/0day-ci/linux/commit/f7cf7134e405062bf0f22c3ba5637241c...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ravi-Bangoria/perf-Rewrite-core-context-handling/20220113-215022
git checkout f7cf7134e405062bf0f22c3ba5637241c4c4d06a
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm clang-analyzer
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
clang-analyzer warnings: (new ones prefixed by >>)
>> kernel/events/core.c:4277:2: warning: Value stored to 'task_ctx' is never read [clang-analyzer-deadcode.DeadStores]
task_ctx = cpuctx->task_ctx;
^ ~~~~~~~~~~~~~~~~
vim +/task_ctx +4277 kernel/events/core.c
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4257
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4258 static bool perf_rotate_context(struct perf_cpu_pmu_context *cpc)
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4259 {
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4260 struct perf_cpu_context *cpuctx = this_cpu_ptr(&cpu_context);
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4261 struct perf_event_pmu_context *cpu_epc, *task_epc = NULL;
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4262 struct perf_event *cpu_event = NULL, *task_event = NULL;
fd7d55172d1e2e kernel/events/core.c Ian Rogers 2019-06-01 4263 struct perf_event_context *task_ctx = NULL;
fd7d55172d1e2e kernel/events/core.c Ian Rogers 2019-06-01 4264 int cpu_rotate, task_rotate;
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4265 struct pmu *pmu;
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4266
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4267 /*
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4268 * Since we run this from IRQ context, nobody can install new
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4269 * events, thus the event count values are stable.
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4270 */
7fc23a53807970 kernel/perf_counter.c Peter Zijlstra 2009-05-08 4271
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4272 cpu_epc = &cpc->epc;
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4273 pmu = cpu_epc->pmu;
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4274 task_epc = cpc->task_epc;
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4275
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4276 cpu_rotate = cpu_epc->rotate_necessary;
fd7d55172d1e2e kernel/events/core.c Ian Rogers 2019-06-01 @4277 task_ctx = cpuctx->task_ctx;
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4278 task_rotate = task_epc ? task_epc->rotate_necessary : 0;
9717e6cd3db22e kernel/perf_event.c Peter Zijlstra 2010-01-28 4279
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4280 if (!(cpu_rotate || task_rotate))
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4281 return false;
0f5a2601284237 kernel/events/core.c Peter Zijlstra 2011-11-16 4282
facc43071cc0d4 kernel/events/core.c Peter Zijlstra 2011-04-09 4283 perf_ctx_lock(cpuctx, cpuctx->task_ctx);
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4284 perf_pmu_disable(pmu);
0f5a2601284237 kernel/events/core.c Peter Zijlstra 2011-11-16 4285
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4286 if (task_rotate)
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4287 task_event = ctx_event_to_rotate(task_epc);
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4288 if (cpu_rotate)
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4289 cpu_event = ctx_event_to_rotate(cpu_epc);
8703a7cfe148f7 kernel/events/core.c Peter Zijlstra 2017-11-13 4290
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4291 /*
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4292 * As per the order given at ctx_resched() first 'pop' task flexible
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4293 * and then, if needed CPU flexible.
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4294 */
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4295 if (task_event || (task_epc && cpu_event)) {
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4296 update_context_time(task_epc->ctx);
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4297 __pmu_ctx_sched_out(task_epc, EVENT_FLEXIBLE);
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4298 }
235c7fc7c500e4 kernel/perf_counter.c Ingo Molnar 2008-12-21 4299
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4300 if (cpu_event) {
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4301 update_context_time(&cpuctx->ctx);
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4302 __pmu_ctx_sched_out(cpu_epc, EVENT_FLEXIBLE);
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4303 rotate_ctx(&cpuctx->ctx, cpu_event);
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4304 __pmu_ctx_sched_in(&cpuctx->ctx, pmu);
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4305 }
0793a61d4df8da kernel/perf_counter.c Thomas Gleixner 2008-12-04 4306
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4307 if (task_event)
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4308 rotate_ctx(task_epc->ctx, task_event);
0f5a2601284237 kernel/events/core.c Peter Zijlstra 2011-11-16 4309
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4310 if (task_event || (task_epc && cpu_event))
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4311 __pmu_ctx_sched_in(task_epc->ctx, pmu);
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4312
f7cf7134e40506 kernel/events/core.c Peter Zijlstra 2022-01-13 4313 perf_pmu_enable(pmu);
0f5a2601284237 kernel/events/core.c Peter Zijlstra 2011-11-16 4314 perf_ctx_unlock(cpuctx, cpuctx->task_ctx);
9e6302056f8029 kernel/events/core.c Stephane Eranian 2013-04-03 4315
8d5bce0c37fa10 kernel/events/core.c Peter Zijlstra 2018-03-09 4316 return true;
e9d2b064149ff7 kernel/perf_event.c Peter Zijlstra 2010-09-17 4317 }
e9d2b064149ff7 kernel/perf_event.c Peter Zijlstra 2010-09-17 4318
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months