arch/s390/kvm/../../../virt/kvm/kvm_main.c:4326:17: sparse: struct kvm_vcpu Documentation Kbuild Makefile crypto include sound usr <asn:3> kvm_get_running_vcpus( ... )
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a5dc8300df75e8b8384b4c82225f1e4a0b4d9b55
commit: 7495e22bb165e7030bae4d9c6e84addb5ea17b29 KVM: Move running VCPU from ARM to common code
date: 5 months ago
config: s390-randconfig-s032-20200615 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-rc1-3-g55607964-dirty
git checkout 7495e22bb165e7030bae4d9c6e84addb5ea17b29
# save the attached .config to linux build tree
make W=1 C=1 ARCH=s390 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
arch/s390/kvm/../../../virt/kvm/kvm_main.c:4326:17: sparse: sparse: symbol 'kvm_get_running_vcpus' redeclared with different type (different address spaces):
>> arch/s390/kvm/../../../virt/kvm/kvm_main.c:4326:17: sparse: struct kvm_vcpu *[noderef] <asn:3> *extern [addressable] [toplevel] kvm_get_running_vcpus( ... )
include/linux/kvm_host.h:1339:26: sparse: note: previously declared as:
include/linux/kvm_host.h:1339:26: sparse: struct kvm_vcpu [noderef] <asn:3> **extern [addressable] [toplevel] kvm_get_running_vcpus( ... )
vim +4326 arch/s390/kvm/../../../virt/kvm/kvm_main.c
4322
4323 /**
4324 * kvm_get_running_vcpus - get the per-CPU array of currently running vcpus.
4325 */
> 4326 struct kvm_vcpu * __percpu *kvm_get_running_vcpus(void)
4327 {
4328 return &kvm_running_vcpu;
4329 }
4330
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [RFC PATCH 2/3] futex, sched: add wake_up_swap, use in FUTEX_SWAP
by kernel test robot
Hi Peter,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on tip/locking/core]
[cannot apply to tip/sched/core kselftest/next tip/auto-latest v5.8-rc1 next-20200615]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Peter-Oskolkov/futex-sched-intro...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 19f545b6e07f753c4dc639c2f0ab52345733b6a8
config: microblaze-randconfig-c022-20200616 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
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 >>, old ones prefixed by <<):
microblaze-linux-ld: kernel/futex.o: in function `futex_wait_queue_me':
>> kernel/futex.c:2649: undefined reference to `wake_up_process_prefer_current_cpu'
vim +2649 kernel/futex.c
2611
2612 /**
2613 * futex_wait_queue_me() - queue_me() and wait for wakeup, timeout, or signal
2614 * @hb: the futex hash bucket, must be locked by the caller
2615 * @q: the futex_q to queue up on
2616 * @timeout: the prepared hrtimer_sleeper, or null for no timeout
2617 * @next: if present, wake next and hint to the scheduler that we'd
2618 * prefer to execute it locally.
2619 */
2620 static void futex_wait_queue_me(struct futex_hash_bucket *hb, struct futex_q *q,
2621 struct hrtimer_sleeper *timeout,
2622 struct task_struct *next)
2623 {
2624 /*
2625 * The task state is guaranteed to be set before another task can
2626 * wake it. set_current_state() is implemented using smp_store_mb() and
2627 * queue_me() calls spin_unlock() upon completion, both serializing
2628 * access to the hash list and forcing another memory barrier.
2629 */
2630 set_current_state(TASK_INTERRUPTIBLE);
2631 queue_me(q, hb);
2632
2633 /* Arm the timer */
2634 if (timeout)
2635 hrtimer_sleeper_start_expires(timeout, HRTIMER_MODE_ABS);
2636
2637 /*
2638 * If we have been removed from the hash list, then another task
2639 * has tried to wake us, and we can skip the call to schedule().
2640 */
2641 if (likely(!plist_node_empty(&q->list))) {
2642 /*
2643 * If the timer has already expired, current will already be
2644 * flagged for rescheduling. Only call schedule if there
2645 * is no timeout, or if it has yet to expire.
2646 */
2647 if (!timeout || timeout->task) {
2648 if (next) {
> 2649 wake_up_process_prefer_current_cpu(next);
2650 put_task_struct(next);
2651 next = NULL;
2652 }
2653 freezable_schedule();
2654 }
2655 }
2656 __set_current_state(TASK_RUNNING);
2657
2658 if (next) {
2659 /* Maybe call wake_up_process_prefer_current_cpu()? */
2660 wake_up_process(next);
2661 put_task_struct(next);
2662 }
2663 }
2664
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[alexshi:nextlru 12/16] arch/nios2/include/asm/irqflags.h:12:9: sparse: sparse: context imbalance in '__munlock_pagevec' - unexpected unlock
by kernel test robot
tree: https://github.com/alexshi/linux.git nextlru
head: 0d4c905a1c996a4c3bea82f12c1045818b260281
commit: 7dc8620793a6c75573953cfc3ad82adec0d010f3 [12/16] mm/lru: replace pgdat lru_lock with lruvec lock
config: nios2-randconfig-s032-20200615 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-rc1-3-g55607964-dirty
git checkout 7dc8620793a6c75573953cfc3ad82adec0d010f3
# save the attached .config to linux build tree
make W=1 C=1 ARCH=nios2 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> arch/nios2/include/asm/irqflags.h:12:9: sparse: sparse: context imbalance in '__munlock_pagevec' - unexpected unlock
include/linux/mm.h:1972:21: sparse: sparse: context imbalance in '__munlock_pagevec_fill' - different lock contexts for basic block
vim +/__munlock_pagevec +12 arch/nios2/include/asm/irqflags.h
f27ffc751ca5d2 Ley Foon Tan 2014-11-06 9
f27ffc751ca5d2 Ley Foon Tan 2014-11-06 10 static inline unsigned long arch_local_save_flags(void)
f27ffc751ca5d2 Ley Foon Tan 2014-11-06 11 {
f27ffc751ca5d2 Ley Foon Tan 2014-11-06 @12 return RDCTL(CTL_STATUS);
f27ffc751ca5d2 Ley Foon Tan 2014-11-06 13 }
f27ffc751ca5d2 Ley Foon Tan 2014-11-06 14
:::::: The code at line 12 was first introduced by commit
:::::: f27ffc751ca5d216a347084996c70452a4e185a4 nios2: Interrupt handling
:::::: TO: Ley Foon Tan <lftan(a)altera.com>
:::::: CC: Ley Foon Tan <lftan(a)altera.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[chrome-os:chromeos-4.14 29993/30000] drivers/base/cpu.c:556:16: error: no previous prototype for 'cpu_show_srbds'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.14
head: 8f2a6784b462f026ff627cc3d58ffd9310c4d9e5
commit: d05f1e1c98a8d866bbc252dc69e236890a87a122 [29993/30000] CHROMIUM: Merge 'v4.14.184' into chromeos-4.14
config: arm64-chromiumos-qualcomm-customedconfig-chrome-os:chromeos-4.14:8f2a6784b462f026ff627cc3d58ffd9310c4d9e5 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.5.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 checkout d05f1e1c98a8d866bbc252dc69e236890a87a122
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=arm64
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 >>, old ones prefixed by <<):
drivers/base/cpu.c: In function '__cpu_device_create':
drivers/base/cpu.c:420:2: error: function '__cpu_device_create' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
retval = kobject_set_name_vargs(&dev->kobj, fmt, args);
^~~~~~
drivers/base/cpu.c: At top level:
>> drivers/base/cpu.c:556:16: error: no previous prototype for 'cpu_show_srbds' [-Werror=missing-prototypes]
ssize_t __weak cpu_show_srbds(struct device *dev,
^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git remote update chrome-os
git checkout d05f1e1c98a8d866bbc252dc69e236890a87a122
vim +/cpu_show_srbds +556 drivers/base/cpu.c
3d52943b3a5149 Sudeep Holla 2014-09-30 398
3d52943b3a5149 Sudeep Holla 2014-09-30 399 static struct device *
3d52943b3a5149 Sudeep Holla 2014-09-30 400 __cpu_device_create(struct device *parent, void *drvdata,
3d52943b3a5149 Sudeep Holla 2014-09-30 401 const struct attribute_group **groups,
3d52943b3a5149 Sudeep Holla 2014-09-30 402 const char *fmt, va_list args)
3d52943b3a5149 Sudeep Holla 2014-09-30 403 {
3d52943b3a5149 Sudeep Holla 2014-09-30 404 struct device *dev = NULL;
3d52943b3a5149 Sudeep Holla 2014-09-30 405 int retval = -ENODEV;
3d52943b3a5149 Sudeep Holla 2014-09-30 406
3d52943b3a5149 Sudeep Holla 2014-09-30 407 dev = kzalloc(sizeof(*dev), GFP_KERNEL);
3d52943b3a5149 Sudeep Holla 2014-09-30 408 if (!dev) {
3d52943b3a5149 Sudeep Holla 2014-09-30 409 retval = -ENOMEM;
3d52943b3a5149 Sudeep Holla 2014-09-30 410 goto error;
3d52943b3a5149 Sudeep Holla 2014-09-30 411 }
3d52943b3a5149 Sudeep Holla 2014-09-30 412
3d52943b3a5149 Sudeep Holla 2014-09-30 413 device_initialize(dev);
3d52943b3a5149 Sudeep Holla 2014-09-30 414 dev->parent = parent;
3d52943b3a5149 Sudeep Holla 2014-09-30 415 dev->groups = groups;
3d52943b3a5149 Sudeep Holla 2014-09-30 416 dev->release = device_create_release;
7fff20613e14f4 Sudeep Holla 2019-02-14 417 device_set_pm_not_required(dev);
3d52943b3a5149 Sudeep Holla 2014-09-30 418 dev_set_drvdata(dev, drvdata);
3d52943b3a5149 Sudeep Holla 2014-09-30 419
3d52943b3a5149 Sudeep Holla 2014-09-30 @420 retval = kobject_set_name_vargs(&dev->kobj, fmt, args);
3d52943b3a5149 Sudeep Holla 2014-09-30 421 if (retval)
3d52943b3a5149 Sudeep Holla 2014-09-30 422 goto error;
3d52943b3a5149 Sudeep Holla 2014-09-30 423
3d52943b3a5149 Sudeep Holla 2014-09-30 424 retval = device_add(dev);
3d52943b3a5149 Sudeep Holla 2014-09-30 425 if (retval)
3d52943b3a5149 Sudeep Holla 2014-09-30 426 goto error;
3d52943b3a5149 Sudeep Holla 2014-09-30 427
3d52943b3a5149 Sudeep Holla 2014-09-30 428 return dev;
3d52943b3a5149 Sudeep Holla 2014-09-30 429
3d52943b3a5149 Sudeep Holla 2014-09-30 430 error:
3d52943b3a5149 Sudeep Holla 2014-09-30 431 put_device(dev);
3d52943b3a5149 Sudeep Holla 2014-09-30 432 return ERR_PTR(retval);
3d52943b3a5149 Sudeep Holla 2014-09-30 433 }
3d52943b3a5149 Sudeep Holla 2014-09-30 434
3d52943b3a5149 Sudeep Holla 2014-09-30 435 struct device *cpu_device_create(struct device *parent, void *drvdata,
3d52943b3a5149 Sudeep Holla 2014-09-30 436 const struct attribute_group **groups,
3d52943b3a5149 Sudeep Holla 2014-09-30 437 const char *fmt, ...)
3d52943b3a5149 Sudeep Holla 2014-09-30 438 {
3d52943b3a5149 Sudeep Holla 2014-09-30 439 va_list vargs;
3d52943b3a5149 Sudeep Holla 2014-09-30 440 struct device *dev;
3d52943b3a5149 Sudeep Holla 2014-09-30 441
3d52943b3a5149 Sudeep Holla 2014-09-30 442 va_start(vargs, fmt);
3d52943b3a5149 Sudeep Holla 2014-09-30 443 dev = __cpu_device_create(parent, drvdata, groups, fmt, vargs);
3d52943b3a5149 Sudeep Holla 2014-09-30 444 va_end(vargs);
3d52943b3a5149 Sudeep Holla 2014-09-30 445 return dev;
3d52943b3a5149 Sudeep Holla 2014-09-30 446 }
3d52943b3a5149 Sudeep Holla 2014-09-30 447 EXPORT_SYMBOL_GPL(cpu_device_create);
3d52943b3a5149 Sudeep Holla 2014-09-30 448
2b9c1f03278ab7 Ard Biesheuvel 2014-02-08 449 #ifdef CONFIG_GENERIC_CPU_AUTOPROBE
67bad2fdb754db Ard Biesheuvel 2014-02-08 450 static DEVICE_ATTR(modalias, 0444, print_cpu_modalias, NULL);
fad12ac8c8c259 Thomas Renninger 2012-01-26 451 #endif
fad12ac8c8c259 Thomas Renninger 2012-01-26 452
8a25a2fd126c62 Kay Sievers 2011-12-21 453 static struct attribute *cpu_root_attrs[] = {
8a25a2fd126c62 Kay Sievers 2011-12-21 454 #ifdef CONFIG_ARCH_CPU_PROBE_RELEASE
8a25a2fd126c62 Kay Sievers 2011-12-21 455 &dev_attr_probe.attr,
8a25a2fd126c62 Kay Sievers 2011-12-21 456 &dev_attr_release.attr,
8a25a2fd126c62 Kay Sievers 2011-12-21 457 #endif
8a25a2fd126c62 Kay Sievers 2011-12-21 458 &cpu_attrs[0].attr.attr,
8a25a2fd126c62 Kay Sievers 2011-12-21 459 &cpu_attrs[1].attr.attr,
8a25a2fd126c62 Kay Sievers 2011-12-21 460 &cpu_attrs[2].attr.attr,
8a25a2fd126c62 Kay Sievers 2011-12-21 461 &dev_attr_kernel_max.attr,
8a25a2fd126c62 Kay Sievers 2011-12-21 462 &dev_attr_offline.attr,
59f30abe94bff5 Rik van Riel 2015-04-24 463 &dev_attr_isolated.attr,
6570a9a1ce3a1d Rik van Riel 2015-04-24 464 #ifdef CONFIG_NO_HZ_FULL
6570a9a1ce3a1d Rik van Riel 2015-04-24 465 &dev_attr_nohz_full.attr,
6570a9a1ce3a1d Rik van Riel 2015-04-24 466 #endif
2b9c1f03278ab7 Ard Biesheuvel 2014-02-08 467 #ifdef CONFIG_GENERIC_CPU_AUTOPROBE
fad12ac8c8c259 Thomas Renninger 2012-01-26 468 &dev_attr_modalias.attr,
fad12ac8c8c259 Thomas Renninger 2012-01-26 469 #endif
8a25a2fd126c62 Kay Sievers 2011-12-21 470 NULL
8a25a2fd126c62 Kay Sievers 2011-12-21 471 };
8a25a2fd126c62 Kay Sievers 2011-12-21 472
8a25a2fd126c62 Kay Sievers 2011-12-21 473 static struct attribute_group cpu_root_attr_group = {
8a25a2fd126c62 Kay Sievers 2011-12-21 474 .attrs = cpu_root_attrs,
8a25a2fd126c62 Kay Sievers 2011-12-21 475 };
8a25a2fd126c62 Kay Sievers 2011-12-21 476
8a25a2fd126c62 Kay Sievers 2011-12-21 477 static const struct attribute_group *cpu_root_attr_groups[] = {
8a25a2fd126c62 Kay Sievers 2011-12-21 478 &cpu_root_attr_group,
8a25a2fd126c62 Kay Sievers 2011-12-21 479 NULL,
8a25a2fd126c62 Kay Sievers 2011-12-21 480 };
^1da177e4c3f41 Linus Torvalds 2005-04-16 481
2987557f52b97f Josh Triplett 2011-12-03 482 bool cpu_is_hotpluggable(unsigned cpu)
2987557f52b97f Josh Triplett 2011-12-03 483 {
7affca3537d743 Linus Torvalds 2012-01-07 484 struct device *dev = get_cpu_device(cpu);
7affca3537d743 Linus Torvalds 2012-01-07 485 return dev && container_of(dev, struct cpu, dev)->hotpluggable;
2987557f52b97f Josh Triplett 2011-12-03 486 }
2987557f52b97f Josh Triplett 2011-12-03 487 EXPORT_SYMBOL_GPL(cpu_is_hotpluggable);
2987557f52b97f Josh Triplett 2011-12-03 488
9f13a1fd452f11 Ben Hutchings 2012-01-10 489 #ifdef CONFIG_GENERIC_CPU_DEVICES
9f13a1fd452f11 Ben Hutchings 2012-01-10 490 static DEFINE_PER_CPU(struct cpu, cpu_devices);
9f13a1fd452f11 Ben Hutchings 2012-01-10 491 #endif
9f13a1fd452f11 Ben Hutchings 2012-01-10 492
9f13a1fd452f11 Ben Hutchings 2012-01-10 493 static void __init cpu_dev_register_generic(void)
9f13a1fd452f11 Ben Hutchings 2012-01-10 494 {
9f13a1fd452f11 Ben Hutchings 2012-01-10 495 #ifdef CONFIG_GENERIC_CPU_DEVICES
9f13a1fd452f11 Ben Hutchings 2012-01-10 496 int i;
9f13a1fd452f11 Ben Hutchings 2012-01-10 497
9f13a1fd452f11 Ben Hutchings 2012-01-10 498 for_each_possible_cpu(i) {
9f13a1fd452f11 Ben Hutchings 2012-01-10 499 if (register_cpu(&per_cpu(cpu_devices, i), i))
9f13a1fd452f11 Ben Hutchings 2012-01-10 500 panic("Failed to register CPU device");
9f13a1fd452f11 Ben Hutchings 2012-01-10 501 }
9f13a1fd452f11 Ben Hutchings 2012-01-10 502 #endif
9f13a1fd452f11 Ben Hutchings 2012-01-10 503 }
9f13a1fd452f11 Ben Hutchings 2012-01-10 504
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 505 #ifdef CONFIG_GENERIC_CPU_VULNERABILITIES
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 506
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 507 ssize_t __weak cpu_show_meltdown(struct device *dev,
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 508 struct device_attribute *attr, char *buf)
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 509 {
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 510 return sprintf(buf, "Not affected\n");
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 511 }
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 512
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 513 ssize_t __weak cpu_show_spectre_v1(struct device *dev,
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 514 struct device_attribute *attr, char *buf)
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 515 {
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 516 return sprintf(buf, "Not affected\n");
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 517 }
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 518
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 519 ssize_t __weak cpu_show_spectre_v2(struct device *dev,
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 520 struct device_attribute *attr, char *buf)
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 521 {
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 522 return sprintf(buf, "Not affected\n");
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 523 }
5a3e4b399ebc99 Thomas Gleixner 2018-01-07 524
c6dc89dd04e3ad Konrad Rzeszutek Wilk 2018-04-25 525 ssize_t __weak cpu_show_spec_store_bypass(struct device *dev,
c6dc89dd04e3ad Konrad Rzeszutek Wilk 2018-04-25 526 struct device_attribute *attr, char *buf)
c6dc89dd04e3ad Konrad Rzeszutek Wilk 2018-04-25 527 {
c6dc89dd04e3ad Konrad Rzeszutek Wilk 2018-04-25 528 return sprintf(buf, "Not affected\n");
c6dc89dd04e3ad Konrad Rzeszutek Wilk 2018-04-25 529 }
c6dc89dd04e3ad Konrad Rzeszutek Wilk 2018-04-25 530
3d98de691c013e Andi Kleen 2018-06-13 531 ssize_t __weak cpu_show_l1tf(struct device *dev,
3d98de691c013e Andi Kleen 2018-06-13 532 struct device_attribute *attr, char *buf)
3d98de691c013e Andi Kleen 2018-06-13 533 {
3d98de691c013e Andi Kleen 2018-06-13 534 return sprintf(buf, "Not affected\n");
3d98de691c013e Andi Kleen 2018-06-13 535 }
3d98de691c013e Andi Kleen 2018-06-13 536
644386d19f4beb Thomas Gleixner 2019-02-18 537 ssize_t __weak cpu_show_mds(struct device *dev,
644386d19f4beb Thomas Gleixner 2019-02-18 538 struct device_attribute *attr, char *buf)
644386d19f4beb Thomas Gleixner 2019-02-18 539 {
644386d19f4beb Thomas Gleixner 2019-02-18 540 return sprintf(buf, "Not affected\n");
644386d19f4beb Thomas Gleixner 2019-02-18 541 }
644386d19f4beb Thomas Gleixner 2019-02-18 542
79373f485f7be0 Pawan Gupta 2019-10-23 543 ssize_t __weak cpu_show_tsx_async_abort(struct device *dev,
79373f485f7be0 Pawan Gupta 2019-10-23 544 struct device_attribute *attr,
79373f485f7be0 Pawan Gupta 2019-10-23 545 char *buf)
79373f485f7be0 Pawan Gupta 2019-10-23 546 {
79373f485f7be0 Pawan Gupta 2019-10-23 547 return sprintf(buf, "Not affected\n");
79373f485f7be0 Pawan Gupta 2019-10-23 548 }
79373f485f7be0 Pawan Gupta 2019-10-23 549
56a0f3867c1bc4 Vineela Tummalapalli 2019-11-04 550 ssize_t __weak cpu_show_itlb_multihit(struct device *dev,
56a0f3867c1bc4 Vineela Tummalapalli 2019-11-04 551 struct device_attribute *attr, char *buf)
56a0f3867c1bc4 Vineela Tummalapalli 2019-11-04 552 {
56a0f3867c1bc4 Vineela Tummalapalli 2019-11-04 553 return sprintf(buf, "Not affected\n");
56a0f3867c1bc4 Vineela Tummalapalli 2019-11-04 554 }
56a0f3867c1bc4 Vineela Tummalapalli 2019-11-04 555
9ecf57e4aaca71 Mark Gross 2020-04-16 @556 ssize_t __weak cpu_show_srbds(struct device *dev,
9ecf57e4aaca71 Mark Gross 2020-04-16 557 struct device_attribute *attr, char *buf)
9ecf57e4aaca71 Mark Gross 2020-04-16 558 {
9ecf57e4aaca71 Mark Gross 2020-04-16 559 return sprintf(buf, "Not affected\n");
9ecf57e4aaca71 Mark Gross 2020-04-16 560 }
9ecf57e4aaca71 Mark Gross 2020-04-16 561
:::::: The code at line 556 was first introduced by commit
:::::: 9ecf57e4aaca7197ab0f196e8a7b74d57e974ad9 x86/speculation: Add Special Register Buffer Data Sampling (SRBDS) mitigation
:::::: TO: Mark Gross <mgross(a)linux.intel.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org
2 years, 3 months
[linux-review:Marek-Vasut/dmaengine-xilinx-Add-empty-device_config-function/20200613-230018 9559/10032] drivers/fpga/fpga-mgr.c:828:2: error: implicit declaration of function 'set_dma_ops'
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/Marek-Vasut/dmaengine-xilinx-Add...
head: f88c4c2d8ab10fec078f00a89e51181e8823c49b
commit: ed71785e2c3c3495e89c7b6c3a38699b59bf83d8 [9559/10032] fpga: support loading from a pre-allocated buffer
config: um-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout ed71785e2c3c3495e89c7b6c3a38699b59bf83d8
# save the attached .config to linux build tree
make W=1 ARCH=um
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 >>, old ones prefixed by <<):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
In file included from include/linux/file.h:9,
from include/linux/dma-buf.h:16,
from drivers/fpga/fpga-mgr.c:11:
include/asm-generic/fixmap.h: In function 'fix_to_virt':
include/asm-generic/fixmap.h:32:19: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
32 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
include/asm-generic/fixmap.h:32:2: note: in expansion of macro 'BUILD_BUG_ON'
32 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~~~~~~~~~~~
In file included from include/linux/uaccess.h:11,
from include/linux/highmem.h:9,
from drivers/fpga/fpga-mgr.c:21:
arch/um/include/asm/uaccess.h: In function '__access_ok':
arch/um/include/asm/uaccess.h:17:29: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
17 | (((unsigned long) (addr) >= FIXADDR_USER_START) && | ^~
arch/um/include/asm/uaccess.h:45:3: note: in expansion of macro '__access_ok_vsyscall'
45 | __access_ok_vsyscall(addr, size) ||
| ^~~~~~~~~~~~~~~~~~~~
drivers/fpga/fpga-mgr.c: In function 'fpga_mgr_create':
>> drivers/fpga/fpga-mgr.c:828:2: error: implicit declaration of function 'set_dma_ops' [-Werror=implicit-function-declaration]
828 | set_dma_ops(&mgr->dev, get_dma_ops(dev));
| ^~~~~~~~~~~
>> drivers/fpga/fpga-mgr.c:828:25: error: implicit declaration of function 'get_dma_ops'; did you mean 'get_dma_buf'? [-Werror=implicit-function-declaration]
828 | set_dma_ops(&mgr->dev, get_dma_ops(dev));
| ^~~~~~~~~~~
| get_dma_buf
cc1: some warnings being treated as errors
# https://github.com/0day-ci/linux/commit/ed71785e2c3c3495e89c7b6c3a38699b5...
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout ed71785e2c3c3495e89c7b6c3a38699b59bf83d8
vim +/set_dma_ops +828 drivers/fpga/fpga-mgr.c
ebf877a51ad7b6 Alan Tull 2017-11-15 773
6a8c3be7ec8eb3 Alan Tull 2015-10-07 774 /**
7085e2a94f7df5 Alan Tull 2018-05-16 775 * fpga_mgr_create - create and initialize a FPGA manager struct
6a8c3be7ec8eb3 Alan Tull 2015-10-07 776 * @dev: fpga manager device from pdev
6a8c3be7ec8eb3 Alan Tull 2015-10-07 777 * @name: fpga manager name
6a8c3be7ec8eb3 Alan Tull 2015-10-07 778 * @mops: pointer to structure of fpga manager ops
6a8c3be7ec8eb3 Alan Tull 2015-10-07 779 * @priv: fpga manager private data
6a8c3be7ec8eb3 Alan Tull 2015-10-07 780 *
084181fe8cc747 Alan Tull 2018-10-15 781 * The caller of this function is responsible for freeing the struct with
084181fe8cc747 Alan Tull 2018-10-15 782 * fpga_mgr_free(). Using devm_fpga_mgr_create() instead is recommended.
084181fe8cc747 Alan Tull 2018-10-15 783 *
7085e2a94f7df5 Alan Tull 2018-05-16 784 * Return: pointer to struct fpga_manager or NULL
6a8c3be7ec8eb3 Alan Tull 2015-10-07 785 */
7085e2a94f7df5 Alan Tull 2018-05-16 786 struct fpga_manager *fpga_mgr_create(struct device *dev, const char *name,
6a8c3be7ec8eb3 Alan Tull 2015-10-07 787 const struct fpga_manager_ops *mops,
6a8c3be7ec8eb3 Alan Tull 2015-10-07 788 void *priv)
6a8c3be7ec8eb3 Alan Tull 2015-10-07 789 {
6a8c3be7ec8eb3 Alan Tull 2015-10-07 790 struct fpga_manager *mgr;
6a8c3be7ec8eb3 Alan Tull 2015-10-07 791 int id, ret;
6a8c3be7ec8eb3 Alan Tull 2015-10-07 792
baa6d396635129 Jason Gunthorpe 2017-02-01 793 if (!mops || !mops->write_complete || !mops->state ||
ed71785e2c3c34 Nava kishore Manne 2020-01-21 794 !mops->write_init || (!mops->write && !mops->write_sg)) {
6a8c3be7ec8eb3 Alan Tull 2015-10-07 795 dev_err(dev, "Attempt to register without fpga_manager_ops\n");
7085e2a94f7df5 Alan Tull 2018-05-16 796 return NULL;
6a8c3be7ec8eb3 Alan Tull 2015-10-07 797 }
6a8c3be7ec8eb3 Alan Tull 2015-10-07 798
6a8c3be7ec8eb3 Alan Tull 2015-10-07 799 if (!name || !strlen(name)) {
6a8c3be7ec8eb3 Alan Tull 2015-10-07 800 dev_err(dev, "Attempt to register with no name!\n");
7085e2a94f7df5 Alan Tull 2018-05-16 801 return NULL;
6a8c3be7ec8eb3 Alan Tull 2015-10-07 802 }
6a8c3be7ec8eb3 Alan Tull 2015-10-07 803
6a8c3be7ec8eb3 Alan Tull 2015-10-07 804 mgr = kzalloc(sizeof(*mgr), GFP_KERNEL);
6a8c3be7ec8eb3 Alan Tull 2015-10-07 805 if (!mgr)
7085e2a94f7df5 Alan Tull 2018-05-16 806 return NULL;
6a8c3be7ec8eb3 Alan Tull 2015-10-07 807
6a8c3be7ec8eb3 Alan Tull 2015-10-07 808 id = ida_simple_get(&fpga_mgr_ida, 0, 0, GFP_KERNEL);
6a8c3be7ec8eb3 Alan Tull 2015-10-07 809 if (id < 0) {
6a8c3be7ec8eb3 Alan Tull 2015-10-07 810 ret = id;
6a8c3be7ec8eb3 Alan Tull 2015-10-07 811 goto error_kfree;
6a8c3be7ec8eb3 Alan Tull 2015-10-07 812 }
6a8c3be7ec8eb3 Alan Tull 2015-10-07 813
6a8c3be7ec8eb3 Alan Tull 2015-10-07 814 mutex_init(&mgr->ref_mutex);
6a8c3be7ec8eb3 Alan Tull 2015-10-07 815
6a8c3be7ec8eb3 Alan Tull 2015-10-07 816 mgr->name = name;
6a8c3be7ec8eb3 Alan Tull 2015-10-07 817 mgr->mops = mops;
6a8c3be7ec8eb3 Alan Tull 2015-10-07 818 mgr->priv = priv;
6a8c3be7ec8eb3 Alan Tull 2015-10-07 819
6a8c3be7ec8eb3 Alan Tull 2015-10-07 820 device_initialize(&mgr->dev);
6a8c3be7ec8eb3 Alan Tull 2015-10-07 821 mgr->dev.class = fpga_mgr_class;
845089bbf589be Alan Tull 2017-11-15 822 mgr->dev.groups = mops->groups;
6a8c3be7ec8eb3 Alan Tull 2015-10-07 823 mgr->dev.parent = dev;
6a8c3be7ec8eb3 Alan Tull 2015-10-07 824 mgr->dev.of_node = dev->of_node;
6a8c3be7ec8eb3 Alan Tull 2015-10-07 825 mgr->dev.id = id;
6a8c3be7ec8eb3 Alan Tull 2015-10-07 826
ed71785e2c3c34 Nava kishore Manne 2020-01-21 827 /* Make device dma capable by inheriting from parent's */
ed71785e2c3c34 Nava kishore Manne 2020-01-21 @828 set_dma_ops(&mgr->dev, get_dma_ops(dev));
ed71785e2c3c34 Nava kishore Manne 2020-01-21 829 ret = dma_coerce_mask_and_coherent(&mgr->dev, dma_get_mask(dev));
ed71785e2c3c34 Nava kishore Manne 2020-01-21 830 if (ret) {
ed71785e2c3c34 Nava kishore Manne 2020-01-21 831 dev_warn(dev,
ed71785e2c3c34 Nava kishore Manne 2020-01-21 832 "Failed to set DMA mask %llx. Trying to continue... %x\n",
ed71785e2c3c34 Nava kishore Manne 2020-01-21 833 dma_get_mask(dev), ret);
ed71785e2c3c34 Nava kishore Manne 2020-01-21 834 }
ed71785e2c3c34 Nava kishore Manne 2020-01-21 835
6a8c3be7ec8eb3 Alan Tull 2015-10-07 836 ret = dev_set_name(&mgr->dev, "fpga%d", id);
07687c031d14a1 Alan Tull 2015-10-29 837 if (ret)
07687c031d14a1 Alan Tull 2015-10-29 838 goto error_device;
6a8c3be7ec8eb3 Alan Tull 2015-10-07 839
ed71785e2c3c34 Nava kishore Manne 2020-01-21 840 mgr->miscdev.minor = MISC_DYNAMIC_MINOR;
ed71785e2c3c34 Nava kishore Manne 2020-01-21 841 mgr->miscdev.name = kobject_name(&mgr->dev.kobj);
ed71785e2c3c34 Nava kishore Manne 2020-01-21 842 mgr->miscdev.fops = &fpga_fops;
ed71785e2c3c34 Nava kishore Manne 2020-01-21 843 ret = misc_register(&mgr->miscdev);
ed71785e2c3c34 Nava kishore Manne 2020-01-21 844 if (ret) {
ed71785e2c3c34 Nava kishore Manne 2020-01-21 845 pr_err("fpga: failed to register misc device.\n");
ed71785e2c3c34 Nava kishore Manne 2020-01-21 846 goto error_device;
ed71785e2c3c34 Nava kishore Manne 2020-01-21 847 }
ed71785e2c3c34 Nava kishore Manne 2020-01-21 848
7085e2a94f7df5 Alan Tull 2018-05-16 849 return mgr;
7085e2a94f7df5 Alan Tull 2018-05-16 850
7085e2a94f7df5 Alan Tull 2018-05-16 851 error_device:
7085e2a94f7df5 Alan Tull 2018-05-16 852 ida_simple_remove(&fpga_mgr_ida, id);
7085e2a94f7df5 Alan Tull 2018-05-16 853 error_kfree:
7085e2a94f7df5 Alan Tull 2018-05-16 854 kfree(mgr);
7085e2a94f7df5 Alan Tull 2018-05-16 855
7085e2a94f7df5 Alan Tull 2018-05-16 856 return NULL;
7085e2a94f7df5 Alan Tull 2018-05-16 857 }
7085e2a94f7df5 Alan Tull 2018-05-16 858 EXPORT_SYMBOL_GPL(fpga_mgr_create);
7085e2a94f7df5 Alan Tull 2018-05-16 859
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org
2 years, 3 months
[ti:ti-rt-linux-5.4.y 4426/7496] drivers/misc/sram-dma-heap.c:126:22: error: implicit declaration of function 'pgprot_writecombine'
by kernel test robot
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.4.y
head: 4de1fa76539c49f87a9281232dcdfd25f21f1476
commit: 481b3c3bfdc83b10aedb9819d7c9f1dbc122a5da [4426/7496] misc: sram: Add dma-heap-export reserved SRAM area type
config: m68k-randconfig-r032-20200614 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.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 checkout 481b3c3bfdc83b10aedb9819d7c9f1dbc122a5da
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
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 >>, old ones prefixed by <<):
In file included from include/linux/string.h:6,
from include/linux/dma-mapping.h:6,
from drivers/misc/sram-dma-heap.c:9:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_no.h:33:50: warning: ordered comparison of pointer with null pointer [-Wextra]
33 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && | ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/misc/sram-dma-heap.c: In function 'dma_heap_mmap':
>> drivers/misc/sram-dma-heap.c:126:22: error: implicit declaration of function 'pgprot_writecombine' [-Werror=implicit-function-declaration]
126 | vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
| ^~~~~~~~~~~~~~~~~~~
>> drivers/misc/sram-dma-heap.c:126:22: error: incompatible types when assigning to type 'pgprot_t' {aka 'struct <anonymous>'} from type 'int'
cc1: some warnings being treated as errors
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git remote update ti
git checkout 481b3c3bfdc83b10aedb9819d7c9f1dbc122a5da
vim +/pgprot_writecombine +126 drivers/misc/sram-dma-heap.c
481b3c3bfdc83b Andrew F. Davis 2020-02-19 119
481b3c3bfdc83b Andrew F. Davis 2020-02-19 120 static int dma_heap_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma)
481b3c3bfdc83b Andrew F. Davis 2020-02-19 121 {
481b3c3bfdc83b Andrew F. Davis 2020-02-19 122 struct sram_dma_heap_buffer *buffer = dmabuf->priv;
481b3c3bfdc83b Andrew F. Davis 2020-02-19 123 int ret;
481b3c3bfdc83b Andrew F. Davis 2020-02-19 124
481b3c3bfdc83b Andrew F. Davis 2020-02-19 125 /* SRAM mappings are not cached */
481b3c3bfdc83b Andrew F. Davis 2020-02-19 @126 vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
481b3c3bfdc83b Andrew F. Davis 2020-02-19 127
481b3c3bfdc83b Andrew F. Davis 2020-02-19 128 ret = vm_iomap_memory(vma, buffer->paddr, buffer->len);
481b3c3bfdc83b Andrew F. Davis 2020-02-19 129 if (ret)
481b3c3bfdc83b Andrew F. Davis 2020-02-19 130 pr_err("Could not map buffer to userspace\n");
481b3c3bfdc83b Andrew F. Davis 2020-02-19 131
481b3c3bfdc83b Andrew F. Davis 2020-02-19 132 return ret;
481b3c3bfdc83b Andrew F. Davis 2020-02-19 133 }
481b3c3bfdc83b Andrew F. Davis 2020-02-19 134
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org
2 years, 3 months
net/sched/sch_fq.c:966:12: warning: stack frame size of 1400 bytes in function 'fq_dump'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 96144c58abe7ff767e754b5b80995f7b8846d49b
commit: 39d010504e6b4485d7ceee167743620dd33f4417 net_sched: sch_fq: add horizon attribute
date: 6 weeks ago
:::::: branch date: 3 hours ago
:::::: commit date: 6 weeks ago
config: arm-randconfig-r006-20200614 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project c669a1ed6386d57a75a602b53266466dae1e1d84)
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
git checkout 39d010504e6b4485d7ceee167743620dd33f4417
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
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 >>, old ones prefixed by <<):
>> net/sched/sch_fq.c:966:12: warning: stack frame size of 1400 bytes in function 'fq_dump' [-Wframe-larger-than=]
static int fq_dump(struct Qdisc *sch, struct sk_buff *skb)
^
1 warning generated.
# 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 remote update linus
git checkout 39d010504e6b4485d7ceee167743620dd33f4417
vim +/fq_dump +966 net/sched/sch_fq.c
afe4fd062416b1 Eric Dumazet 2013-08-29 965
afe4fd062416b1 Eric Dumazet 2013-08-29 @966 static int fq_dump(struct Qdisc *sch, struct sk_buff *skb)
afe4fd062416b1 Eric Dumazet 2013-08-29 967 {
afe4fd062416b1 Eric Dumazet 2013-08-29 968 struct fq_sched_data *q = qdisc_priv(sch);
48872c11b77271 Eric Dumazet 2018-11-11 969 u64 ce_threshold = q->ce_threshold;
39d010504e6b44 Eric Dumazet 2020-05-01 970 u64 horizon = q->horizon;
afe4fd062416b1 Eric Dumazet 2013-08-29 971 struct nlattr *opts;
afe4fd062416b1 Eric Dumazet 2013-08-29 972
ae0be8de9a53cd Michal Kubecek 2019-04-26 973 opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
afe4fd062416b1 Eric Dumazet 2013-08-29 974 if (opts == NULL)
afe4fd062416b1 Eric Dumazet 2013-08-29 975 goto nla_put_failure;
afe4fd062416b1 Eric Dumazet 2013-08-29 976
65c5189a2b57b9 Eric Dumazet 2013-11-15 977 /* TCA_FQ_FLOW_DEFAULT_RATE is not used anymore */
65c5189a2b57b9 Eric Dumazet 2013-11-15 978
48872c11b77271 Eric Dumazet 2018-11-11 979 do_div(ce_threshold, NSEC_PER_USEC);
39d010504e6b44 Eric Dumazet 2020-05-01 980 do_div(horizon, NSEC_PER_USEC);
48872c11b77271 Eric Dumazet 2018-11-11 981
afe4fd062416b1 Eric Dumazet 2013-08-29 982 if (nla_put_u32(skb, TCA_FQ_PLIMIT, sch->limit) ||
afe4fd062416b1 Eric Dumazet 2013-08-29 983 nla_put_u32(skb, TCA_FQ_FLOW_PLIMIT, q->flow_plimit) ||
afe4fd062416b1 Eric Dumazet 2013-08-29 984 nla_put_u32(skb, TCA_FQ_QUANTUM, q->quantum) ||
afe4fd062416b1 Eric Dumazet 2013-08-29 985 nla_put_u32(skb, TCA_FQ_INITIAL_QUANTUM, q->initial_quantum) ||
afe4fd062416b1 Eric Dumazet 2013-08-29 986 nla_put_u32(skb, TCA_FQ_RATE_ENABLE, q->rate_enable) ||
76a9ebe811fb3d Eric Dumazet 2018-10-15 987 nla_put_u32(skb, TCA_FQ_FLOW_MAX_RATE,
76a9ebe811fb3d Eric Dumazet 2018-10-15 988 min_t(unsigned long, q->flow_max_rate, ~0U)) ||
f52ed89971adbe Eric Dumazet 2013-11-15 989 nla_put_u32(skb, TCA_FQ_FLOW_REFILL_DELAY,
f52ed89971adbe Eric Dumazet 2013-11-15 990 jiffies_to_usecs(q->flow_refill_delay)) ||
06eb395fa9856b Eric Dumazet 2015-02-04 991 nla_put_u32(skb, TCA_FQ_ORPHAN_MASK, q->orphan_mask) ||
77879147a3481b Eric Dumazet 2016-09-19 992 nla_put_u32(skb, TCA_FQ_LOW_RATE_THRESHOLD,
77879147a3481b Eric Dumazet 2016-09-19 993 q->low_rate_threshold) ||
48872c11b77271 Eric Dumazet 2018-11-11 994 nla_put_u32(skb, TCA_FQ_CE_THRESHOLD, (u32)ce_threshold) ||
583396f4ca4d6e Eric Dumazet 2020-03-16 995 nla_put_u32(skb, TCA_FQ_BUCKETS_LOG, q->fq_trees_log) ||
39d010504e6b44 Eric Dumazet 2020-05-01 996 nla_put_u32(skb, TCA_FQ_TIMER_SLACK, q->timer_slack) ||
39d010504e6b44 Eric Dumazet 2020-05-01 997 nla_put_u32(skb, TCA_FQ_HORIZON, (u32)horizon) ||
39d010504e6b44 Eric Dumazet 2020-05-01 998 nla_put_u8(skb, TCA_FQ_HORIZON_DROP, q->horizon_drop))
afe4fd062416b1 Eric Dumazet 2013-08-29 999 goto nla_put_failure;
afe4fd062416b1 Eric Dumazet 2013-08-29 1000
d59b7d8059ddc4 Yang Yingliang 2014-03-12 1001 return nla_nest_end(skb, opts);
afe4fd062416b1 Eric Dumazet 2013-08-29 1002
afe4fd062416b1 Eric Dumazet 2013-08-29 1003 nla_put_failure:
afe4fd062416b1 Eric Dumazet 2013-08-29 1004 return -1;
afe4fd062416b1 Eric Dumazet 2013-08-29 1005 }
afe4fd062416b1 Eric Dumazet 2013-08-29 1006
:::::: The code at line 966 was first introduced by commit
:::::: afe4fd062416b158a8a8538b23adc1930a9b88dc pkt_sched: fq: Fair Queue packet scheduler
:::::: TO: Eric Dumazet <edumazet(a)google.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org
2 years, 3 months
Re: [RFC PATCH] sched_pair_cpu: Introduce scheduler task pairing system call
by kernel test robot
Hi Mathieu,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on tip/x86/asm]
[also build test ERROR on tip/sched/core]
[cannot apply to linus/master linux/master v5.8-rc1 next-20200615]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Mathieu-Desnoyers/sched_pair_cpu...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 2ce0d7f9766f0e49bb54f149c77bae89464932fb
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
kernel/sched/core.c:2246:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
2246 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/printk.h:6,
from include/linux/kernel.h:15,
from include/asm-generic/bug.h:19,
from arch/alpha/include/asm/bug.h:23,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/current.h:5,
from ./arch/alpha/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from kernel/sched/sched.h:5,
from kernel/sched/core.c:9:
>> kernel/sched/core.c:8218:15: error: initialization of 'initcall_t' {aka 'int (*)(void)'} from incompatible pointer type 'void (*)(void)' [-Werror=incompatible-pointer-types]
8218 | late_initcall(pair_cpu_spawn_workers);
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/init.h:197:50: note: in definition of macro '___define_initcall'
197 | __attribute__((__section__(#__sec ".init"))) = fn;
| ^~
include/linux/init.h:231:28: note: in expansion of macro '__define_initcall'
231 | #define late_initcall(fn) __define_initcall(fn, 7)
| ^~~~~~~~~~~~~~~~~
>> kernel/sched/core.c:8218:1: note: in expansion of macro 'late_initcall'
8218 | late_initcall(pair_cpu_spawn_workers);
| ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
<stdin>:1511:2: warning: #warning syscall clone3 not implemented [-Wcpp]
>> <stdin>:1520:2: warning: #warning syscall sched_pair_cpu not implemented [-Wcpp]
--
<stdin>:1511:2: warning: #warning syscall clone3 not implemented [-Wcpp]
>> <stdin>:1520:2: warning: #warning syscall sched_pair_cpu not implemented [-Wcpp]
--
arch/alpha/kernel/asm-offsets.c:15:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
15 | void foo(void)
| ^~~
<stdin>:1511:2: warning: #warning syscall clone3 not implemented [-Wcpp]
>> <stdin>:1520:2: warning: #warning syscall sched_pair_cpu not implemented [-Wcpp]
vim +8218 kernel/sched/core.c
8217
> 8218 late_initcall(pair_cpu_spawn_workers);
8219
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[drm-intel:for-linux-next-fixes 4/16] drivers/gpu/drm/i915/gt/selftest_lrc.c:1333:34: error: too few arguments to function call, expected 2, have 1
by kernel test robot
tree: git://anongit.freedesktop.org/drm-intel for-linux-next-fixes
head: add78d27d388520cbed6a7bf01d1e0afa183314d
commit: 04dc41776145f539ab6da442cb633e45539bed9a [4/16] drm/i915/gt: Prevent timeslicing into unpreemptable requests
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3d8149c2a1228609fd7d7c91a04681304a2f0ca9)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 04dc41776145f539ab6da442cb633e45539bed9a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 >>, old ones prefixed by <<):
In file included from drivers/gpu/drm/i915/gt/intel_lrc.c:5953:
>> drivers/gpu/drm/i915/gt/selftest_lrc.c:1333:34: error: too few arguments to function call, expected 2, have 1
engine_heartbeat_disable(engine);
~~~~~~~~~~~~~~~~~~~~~~~~ ^
drivers/gpu/drm/i915/gt/selftest_lrc.c:54:13: note: 'engine_heartbeat_disable' declared here
static void engine_heartbeat_disable(struct intel_engine_cs *engine,
^
drivers/gpu/drm/i915/gt/selftest_lrc.c:1402:33: error: too few arguments to function call, expected 2, have 1
engine_heartbeat_enable(engine);
~~~~~~~~~~~~~~~~~~~~~~~ ^
drivers/gpu/drm/i915/gt/selftest_lrc.c:64:13: note: 'engine_heartbeat_enable' declared here
static void engine_heartbeat_enable(struct intel_engine_cs *engine,
^
2 errors generated.
vim +1333 drivers/gpu/drm/i915/gt/selftest_lrc.c
1300
1301 static int live_timeslice_nopreempt(void *arg)
1302 {
1303 struct intel_gt *gt = arg;
1304 struct intel_engine_cs *engine;
1305 enum intel_engine_id id;
1306 struct igt_spinner spin;
1307 int err = 0;
1308
1309 /*
1310 * We should not timeslice into a request that is marked with
1311 * I915_REQUEST_NOPREEMPT.
1312 */
1313 if (!IS_ACTIVE(CONFIG_DRM_I915_TIMESLICE_DURATION))
1314 return 0;
1315
1316 if (igt_spinner_init(&spin, gt))
1317 return -ENOMEM;
1318
1319 for_each_engine(engine, gt, id) {
1320 struct intel_context *ce;
1321 struct i915_request *rq;
1322 unsigned long timeslice;
1323
1324 if (!intel_engine_has_preemption(engine))
1325 continue;
1326
1327 ce = intel_context_create(engine);
1328 if (IS_ERR(ce)) {
1329 err = PTR_ERR(ce);
1330 break;
1331 }
1332
> 1333 engine_heartbeat_disable(engine);
1334 timeslice = xchg(&engine->props.timeslice_duration_ms, 1);
1335
1336 /* Create an unpreemptible spinner */
1337
1338 rq = igt_spinner_create_request(&spin, ce, MI_ARB_CHECK);
1339 intel_context_put(ce);
1340 if (IS_ERR(rq)) {
1341 err = PTR_ERR(rq);
1342 goto out_heartbeat;
1343 }
1344
1345 i915_request_get(rq);
1346 i915_request_add(rq);
1347
1348 if (!igt_wait_for_spinner(&spin, rq)) {
1349 i915_request_put(rq);
1350 err = -ETIME;
1351 goto out_spin;
1352 }
1353
1354 set_bit(I915_FENCE_FLAG_NOPREEMPT, &rq->fence.flags);
1355 i915_request_put(rq);
1356
1357 /* Followed by a maximum priority barrier (heartbeat) */
1358
1359 ce = intel_context_create(engine);
1360 if (IS_ERR(ce)) {
1361 err = PTR_ERR(rq);
1362 goto out_spin;
1363 }
1364
1365 rq = intel_context_create_request(ce);
1366 intel_context_put(ce);
1367 if (IS_ERR(rq)) {
1368 err = PTR_ERR(rq);
1369 goto out_spin;
1370 }
1371
1372 rq->sched.attr.priority = I915_PRIORITY_BARRIER;
1373 i915_request_get(rq);
1374 i915_request_add(rq);
1375
1376 /*
1377 * Wait until the barrier is in ELSP, and we know timeslicing
1378 * will have been activated.
1379 */
1380 if (wait_for_submit(engine, rq, HZ / 2)) {
1381 i915_request_put(rq);
1382 err = -ETIME;
1383 goto out_spin;
1384 }
1385
1386 /*
1387 * Since the ELSP[0] request is unpreemptible, it should not
1388 * allow the maximum priority barrier through. Wait long
1389 * enough to see if it is timesliced in by mistake.
1390 */
1391 if (i915_request_wait(rq, 0, timeslice_threshold(engine)) >= 0) {
1392 pr_err("%s: I915_PRIORITY_BARRIER request completed, bypassing no-preempt request\n",
1393 engine->name);
1394 err = -EINVAL;
1395 }
1396 i915_request_put(rq);
1397
1398 out_spin:
1399 igt_spinner_end(&spin);
1400 out_heartbeat:
1401 xchg(&engine->props.timeslice_duration_ms, timeslice);
1402 engine_heartbeat_enable(engine);
1403 if (err)
1404 break;
1405
1406 if (igt_flush_test(gt->i915)) {
1407 err = -EIO;
1408 break;
1409 }
1410 }
1411
1412 igt_spinner_fini(&spin);
1413 return err;
1414 }
1415
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months