From: kbuild test robot <lkp@intel.com>
To: "Bálint Czobor" <czoborbalint@gmail.com>
Cc: kbuild-all@01.org, "Rafael J. Wysocki" <rjw@rjwysocki.net>,
"Viresh Kumar" <viresh.kumar@linaro.org>,
linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
"Mike Chan" <mike@android.com>,
"Todd Poynor" <toddpoynor@google.com>,
"Bálint Czobor" <czoborbalint@gmail.com>
Subject: Re: [PATCH 01/70] cpufreq: interactive: New 'interactive' governor
Date: Wed, 28 Oct 2015 04:44:49 +0800 [thread overview]
Message-ID: <201510280431.P8oexxcv%fengguang.wu@intel.com> (raw)
In-Reply-To: <1445967059-6897-1-git-send-email-czoborbalint@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 9606 bytes --]
Hi Mike,
[auto build test ERROR on pm/linux-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
url: https://github.com/0day-ci/linux/commits/B-lint-Czobor/cpufreq-interactive-New-interactive-governor/20151028-020715
config: sparc64-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sparc64
All errors (new ones prefixed by >>):
drivers/cpufreq/cpufreq_interactive.c: In function 'store_hispeed_freq':
drivers/cpufreq/cpufreq_interactive.c:446:2: error: implicit declaration of function 'strict_strtoull' [-Werror=implicit-function-declaration]
ret = strict_strtoull(buf, 0, &val);
^
drivers/cpufreq/cpufreq_interactive.c: In function 'store_go_hispeed_load':
drivers/cpufreq/cpufreq_interactive.c:469:2: error: implicit declaration of function 'strict_strtoul' [-Werror=implicit-function-declaration]
ret = strict_strtoul(buf, 0, &val);
^
drivers/cpufreq/cpufreq_interactive.c: In function 'cpufreq_interactive_idle_notifier':
>> drivers/cpufreq/cpufreq_interactive.c:623:7: error: 'IDLE_START' undeclared (first use in this function)
case IDLE_START:
^
drivers/cpufreq/cpufreq_interactive.c:623:7: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/cpufreq/cpufreq_interactive.c:626:7: error: 'IDLE_END' undeclared (first use in this function)
case IDLE_END:
^
drivers/cpufreq/cpufreq_interactive.c: In function 'cpufreq_interactive_init':
>> drivers/cpufreq/cpufreq_interactive.c:678:2: error: implicit declaration of function 'idle_notifier_register' [-Werror=implicit-function-declaration]
idle_notifier_register(&cpufreq_interactive_idle_nb);
^
cc1: some warnings being treated as errors
vim +/IDLE_START +623 drivers/cpufreq/cpufreq_interactive.c
440 struct attribute *attr, const char *buf,
441 size_t count)
442 {
443 int ret;
444 u64 val;
445
> 446 ret = strict_strtoull(buf, 0, &val);
447 if (ret < 0)
448 return ret;
449 hispeed_freq = val;
450 return count;
451 }
452
453 static struct global_attr hispeed_freq_attr = __ATTR(hispeed_freq, 0644,
454 show_hispeed_freq, store_hispeed_freq);
455
456
457 static ssize_t show_go_hispeed_load(struct kobject *kobj,
458 struct attribute *attr, char *buf)
459 {
460 return sprintf(buf, "%lu\n", go_hispeed_load);
461 }
462
463 static ssize_t store_go_hispeed_load(struct kobject *kobj,
464 struct attribute *attr, const char *buf, size_t count)
465 {
466 int ret;
467 unsigned long val;
468
> 469 ret = strict_strtoul(buf, 0, &val);
470 if (ret < 0)
471 return ret;
472 go_hispeed_load = val;
473 return count;
474 }
475
476 static struct global_attr go_hispeed_load_attr = __ATTR(go_hispeed_load, 0644,
477 show_go_hispeed_load, store_go_hispeed_load);
478
479 static ssize_t show_min_sample_time(struct kobject *kobj,
480 struct attribute *attr, char *buf)
481 {
482 return sprintf(buf, "%lu\n", min_sample_time);
483 }
484
485 static ssize_t store_min_sample_time(struct kobject *kobj,
486 struct attribute *attr, const char *buf, size_t count)
487 {
488 int ret;
489 unsigned long val;
490
491 ret = strict_strtoul(buf, 0, &val);
492 if (ret < 0)
493 return ret;
494 min_sample_time = val;
495 return count;
496 }
497
498 static struct global_attr min_sample_time_attr = __ATTR(min_sample_time, 0644,
499 show_min_sample_time, store_min_sample_time);
500
501 static ssize_t show_timer_rate(struct kobject *kobj,
502 struct attribute *attr, char *buf)
503 {
504 return sprintf(buf, "%lu\n", timer_rate);
505 }
506
507 static ssize_t store_timer_rate(struct kobject *kobj,
508 struct attribute *attr, const char *buf, size_t count)
509 {
510 int ret;
511 unsigned long val;
512
513 ret = strict_strtoul(buf, 0, &val);
514 if (ret < 0)
515 return ret;
516 timer_rate = val;
517 return count;
518 }
519
520 static struct global_attr timer_rate_attr = __ATTR(timer_rate, 0644,
521 show_timer_rate, store_timer_rate);
522
523 static struct attribute *interactive_attributes[] = {
524 &hispeed_freq_attr.attr,
525 &go_hispeed_load_attr.attr,
526 &min_sample_time_attr.attr,
527 &timer_rate_attr.attr,
528 NULL,
529 };
530
531 static struct attribute_group interactive_attr_group = {
532 .attrs = interactive_attributes,
533 .name = "interactive",
534 };
535
536 static int cpufreq_governor_interactive(struct cpufreq_policy *policy,
537 unsigned int event)
538 {
539 int rc;
540 unsigned int j;
541 struct cpufreq_interactive_cpuinfo *pcpu;
542 struct cpufreq_frequency_table *freq_table;
543
544 switch (event) {
545 case CPUFREQ_GOV_START:
546 if (!cpu_online(policy->cpu))
547 return -EINVAL;
548
549 freq_table =
550 cpufreq_frequency_get_table(policy->cpu);
551
552 for_each_cpu(j, policy->cpus) {
553 pcpu = &per_cpu(cpuinfo, j);
554 pcpu->policy = policy;
555 pcpu->target_freq = policy->cur;
556 pcpu->freq_table = freq_table;
557 pcpu->freq_change_time_in_idle =
558 get_cpu_idle_time_us(j,
559 &pcpu->freq_change_time);
560 pcpu->governor_enabled = 1;
561 smp_wmb();
562 }
563
564 if (!hispeed_freq)
565 hispeed_freq = policy->max;
566
567 /*
568 * Do not register the idle hook and create sysfs
569 * entries if we have already done so.
570 */
571 if (atomic_inc_return(&active_count) > 1)
572 return 0;
573
574 rc = sysfs_create_group(cpufreq_global_kobject,
575 &interactive_attr_group);
576 if (rc)
577 return rc;
578
579 break;
580
581 case CPUFREQ_GOV_STOP:
582 for_each_cpu(j, policy->cpus) {
583 pcpu = &per_cpu(cpuinfo, j);
584 pcpu->governor_enabled = 0;
585 smp_wmb();
586 del_timer_sync(&pcpu->cpu_timer);
587
588 /*
589 * Reset idle exit time since we may cancel the timer
590 * before it can run after the last idle exit time,
591 * to avoid tripping the check in idle exit for a timer
592 * that is trying to run.
593 */
594 pcpu->idle_exit_time = 0;
595 }
596
597 flush_work(&freq_scale_down_work);
598 if (atomic_dec_return(&active_count) > 0)
599 return 0;
600
601 sysfs_remove_group(cpufreq_global_kobject,
602 &interactive_attr_group);
603
604 break;
605
606 case CPUFREQ_GOV_LIMITS:
607 if (policy->max < policy->cur)
608 __cpufreq_driver_target(policy,
609 policy->max, CPUFREQ_RELATION_H);
610 else if (policy->min > policy->cur)
611 __cpufreq_driver_target(policy,
612 policy->min, CPUFREQ_RELATION_L);
613 break;
614 }
615 return 0;
616 }
617
618 static int cpufreq_interactive_idle_notifier(struct notifier_block *nb,
619 unsigned long val,
620 void *data)
621 {
622 switch (val) {
> 623 case IDLE_START:
624 cpufreq_interactive_idle_start();
625 break;
> 626 case IDLE_END:
627 cpufreq_interactive_idle_end();
628 break;
629 }
630
631 return 0;
632 }
633
634 static struct notifier_block cpufreq_interactive_idle_nb = {
635 .notifier_call = cpufreq_interactive_idle_notifier,
636 };
637
638 static int __init cpufreq_interactive_init(void)
639 {
640 unsigned int i;
641 struct cpufreq_interactive_cpuinfo *pcpu;
642 struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 };
643
644 go_hispeed_load = DEFAULT_GO_HISPEED_LOAD;
645 min_sample_time = DEFAULT_MIN_SAMPLE_TIME;
646 timer_rate = DEFAULT_TIMER_RATE;
647
648 /* Initalize per-cpu timers */
649 for_each_possible_cpu(i) {
650 pcpu = &per_cpu(cpuinfo, i);
651 init_timer(&pcpu->cpu_timer);
652 pcpu->cpu_timer.function = cpufreq_interactive_timer;
653 pcpu->cpu_timer.data = i;
654 }
655
656 up_task = kthread_create(cpufreq_interactive_up_task, NULL,
657 "kinteractiveup");
658 if (IS_ERR(up_task))
659 return PTR_ERR(up_task);
660
661 sched_setscheduler_nocheck(up_task, SCHED_FIFO, ¶m);
662 get_task_struct(up_task);
663
664 /* No rescuer thread, bind to CPU queuing the work for possibly
665 warm cache (probably doesn't matter much). */
666 down_wq = alloc_workqueue("knteractive_down", 0, 1);
667
668 if (!down_wq)
669 goto err_freeuptask;
670
671 INIT_WORK(&freq_scale_down_work,
672 cpufreq_interactive_freq_down);
673
674 spin_lock_init(&up_cpumask_lock);
675 spin_lock_init(&down_cpumask_lock);
676 mutex_init(&set_speed_lock);
677
> 678 idle_notifier_register(&cpufreq_interactive_idle_nb);
679
680 return cpufreq_register_governor(&cpufreq_gov_interactive);
681
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 43764 bytes --]
next prev parent reply other threads:[~2015-10-27 20:46 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-27 17:29 Bálint Czobor
2015-10-27 17:29 ` [PATCH 02/70] cpufreq interactive governor: event tracing Bálint Czobor
2015-10-27 17:29 ` [PATCH 03/70] cpufreq: interactive: apply intermediate load to max speed not current Bálint Czobor
2015-10-27 17:29 ` [PATCH 04/70] cpufreq: interactive: set at least hispeed when above hispeed load Bálint Czobor
2015-10-27 17:29 ` [PATCH 05/70] cpufreq: interactive: don't drop speed if recently at higher load Bálint Czobor
2015-10-27 17:29 ` [PATCH 06/70] cpufreq: interactive: configurable delay before raising above hispeed Bálint Czobor
2015-10-27 17:29 ` [PATCH 07/70] cpufreq: interactive: adjust code and documentation to match Bálint Czobor
2015-10-27 17:29 ` [PATCH 08/70] cpufreq: interactive: base hispeed bump on target freq, not actual Bálint Czobor
2015-10-27 17:29 ` [PATCH 09/70] cpufreq: interactive: Separate speed target revalidate time and initial set time Bálint Czobor
2015-10-27 17:29 ` [PATCH 10/70] cpufreq: interactive: Boost frequency on touchscreen input Bálint Czobor
2015-10-27 17:29 ` [PATCH 11/70] cpufreq: interactive: remove unused target_validate_time_in_idle Bálint Czobor
2015-10-27 17:30 ` [PATCH 12/70] cpufreq: interactive: Add sysfs boost interface for hints from userspace Bálint Czobor
2015-10-27 17:30 ` [PATCH 13/70] cpufreq: interactive: set floor for boosted speed Bálint Czobor
2015-10-27 17:30 ` [PATCH 14/70] cpufreq: interactive: add boost pulse interface Bálint Czobor
2015-10-27 17:30 ` [PATCH 15/70] cpufreq-interactive: Compile fixup Bálint Czobor
2015-10-27 17:30 ` [PATCH 16/70] cpufreq: interactive: restart above_hispeed_delay at each hispeed load Bálint Czobor
2015-10-27 17:30 ` [PATCH 17/70] cpufreq: interactive: take idle notifications only when active Bálint Czobor
2015-10-27 20:56 ` kbuild test robot
2015-10-27 17:30 ` [PATCH 18/70] cpufreq: interactive: keep freezer happy when not current governor Bálint Czobor
2015-10-27 17:30 ` [PATCH 19/70] cpufreq: interactive: handle speed up and down in the realtime task Bálint Czobor
2015-10-27 17:30 ` [PATCH 20/70] cpufreq: interactive: remove input_boost handling Bálint Czobor
2015-10-27 17:30 ` [PATCH 21/70] cpufreq: interactive: always limit initial speed bump to hispeed Bálint Czobor
2015-10-27 17:30 ` [PATCH 22/70] cpufreq: interactive: run at fraction of hispeed_freq when load is low Bálint Czobor
2015-10-27 17:30 ` [PATCH 23/70] cpufreq: interactive: pin timers to associated CPU Bálint Czobor
2015-10-27 17:30 ` [PATCH 24/70] cpufreq: interactive: use deferrable timer by default Bálint Czobor
2015-10-27 17:30 ` [PATCH 25/70] cpufreq: interactive: kick timer on idle exit past expiry Bálint Czobor
2015-10-27 17:30 ` [PATCH 26/70] cpufreq: interactive: trace actual speed in target speed decisions Bálint Czobor
2015-10-27 17:30 ` [PATCH 27/70] cpufreq: interactive: change speed according to current speed and target load Bálint Czobor
2015-10-27 17:30 ` [PATCH 28/70] cpufreq: interactive: apply above_hispeed_delay to each step above hispeed Bálint Czobor
2015-10-27 17:30 ` [PATCH 29/70] cpufreq: interactive: allow arbitrary speed / target load mappings Bálint Czobor
2015-10-27 17:30 ` [PATCH 30/70] cpufreq: interactive: remove load since last speed change Bálint Czobor
2015-10-27 17:30 ` [PATCH 31/70] cpufreq: interactive: adjust load for changes in speed Bálint Czobor
2015-10-27 17:30 ` [PATCH 32/70] cpufreq: interactive: specify duration of CPU speed boost pulse Bálint Czobor
2015-10-27 17:30 ` [PATCH 33/70] cpufreq: interactive: add timer slack to limit idle at speed > min Bálint Czobor
2015-10-27 17:30 ` [PATCH 34/70] cpufreq: interactive: fix boosting logic Bálint Czobor
2015-10-27 17:30 ` [PATCH 35/70] cpufreq: interactive: fix racy timer stopping Bálint Czobor
2015-10-27 17:30 ` [PATCH 36/70] cpufreq: interactive: fix race on timer restart on governor start Bálint Czobor
2015-10-27 17:30 ` [PATCH 37/70] cpufreq: interactive: default go_hispeed_load 99%, doc updates Bálint Czobor
2015-10-27 17:30 ` [PATCH 38/70] cpufreq: interactive: init default values at compile time Bálint Czobor
2015-10-27 17:30 ` [PATCH 39/70] cpufreq: interactive: don't handle transition notification if not enabled Bálint Czobor
2015-10-27 17:30 ` [PATCH 40/70] cpufreq: interactive: fix deadlock on spinlock in timer Bálint Czobor
2015-10-27 17:30 ` [PATCH 41/70] cpufreq: interactive: fix race on governor start/stop Bálint Czobor
2015-10-27 17:30 ` [PATCH 42/70] cpufreq: interactive: allow arbitrary speed / delay mappings Bálint Czobor
2015-10-27 17:30 ` [PATCH 43/70] cpufreq: interactive: add io_is_busy interface Bálint Czobor
2015-10-27 17:30 ` [PATCH 44/70] cpufreq: interactive: fix crash on error paths in get_tokenized_data Bálint Czobor
2015-10-27 17:30 ` [PATCH 45/70] cpufreq: interactive: base above_hispeed_delay on target freq, not current Bálint Czobor
2015-10-27 17:30 ` [PATCH 46/70] cpufreq: interactive: fix uninitialized spinlock Bálint Czobor
2015-10-27 17:30 ` [PATCH 47/70] cpufreq: interactive: handle errors from cpufreq_frequency_table_target Bálint Czobor
2015-10-27 17:30 ` [PATCH 48/70] cpufreq: interactive: reduce chance of zero time delta on load eval Bálint Czobor
2015-10-27 17:30 ` [PATCH 49/70] cpufreq: interactive: avoid underflow on active time calculation Bálint Czobor
2015-10-27 17:30 ` [PATCH 50/70] cpufreq: interactive: fix race on cpufreq TRANSITION notifier Bálint Czobor
2015-10-27 17:30 ` [PATCH 51/70] cpufreq: interactive: resched timer if max freq raised Bálint Czobor
2015-10-27 17:30 ` [PATCH 52/70] cpufreq: interactive: fix show_target_loads and show_above_hispeed_delay Bálint Czobor
2015-10-27 17:30 ` [PATCH 53/70] cpufreq: interactive: Remove unnecessary cpu_online() check Bálint Czobor
2015-10-27 17:30 ` [PATCH 54/70] cpufreq: interactive: Move definition of cpufreq_gov_interactive downwards Bálint Czobor
2015-10-27 17:30 ` [PATCH 55/70] cpufreq: Interactive: Implement per policy instances of governor Bálint Czobor
2015-10-27 17:30 ` [PATCH 56/70] cpufreq: interactive: delete timers for GOV_START Bálint Czobor
2015-10-27 17:30 ` [PATCH 57/70] cpufreq: interactive: fix compiling warnings Bálint Czobor
2015-10-27 17:30 ` [PATCH 58/70] cpufreq: interactive: fix NULL pointer dereference at sysfs ops Bálint Czobor
2015-10-27 17:30 ` [PATCH 59/70] cpufreq: interactive: Use generic get_cpu_idle_time() from cpufreq.c Bálint Czobor
2015-10-27 17:30 ` [PATCH 60/70] cpufreq: interactive: hold reference on global cpufreq kobject if needed Bálint Czobor
2015-10-27 17:30 ` [PATCH 61/70] cpufreq: interactive: restructure CPUFREQ_GOV_LIMITS Bálint Czobor
2015-10-27 17:30 ` [PATCH 62/70] cpufreq: interactive: turn boost_pulse off on boost off Bálint Czobor
2015-10-27 17:30 ` [PATCH 63/70] cpufreq: interactive: remove compilation error from commit 49cc72365fb7ee87762a7ccc6a32ef68627216c5 Bálint Czobor
2015-10-27 17:30 ` [PATCH 64/70] cpufreq: interactive: prevents the frequency to directly raise above the hispeed_freq from a lower frequency Bálint Czobor
2015-10-27 17:30 ` [PATCH 65/70] cpufreq: interactive: make common_tunables static Bálint Czobor
2015-10-27 17:30 ` [PATCH 66/70] cpufreq: interactive: Fix compile errors in accordance with changes from 3.14 to 3.18 Bálint Czobor
2015-10-28 2:15 ` kbuild test robot
2015-10-27 17:30 ` [PATCH 67/70] cpufreq: interactive: Put global cpufreq kobject on failure Bálint Czobor
2015-10-27 17:30 ` [PATCH 68/70] subsystem: CPU FREQUENCY DRIVERS- Set cpu_load calculation on current frequency Bálint Czobor
2015-10-27 17:30 ` [PATCH 69/70] cpufreq: interactive: Don't set floor_validate_time during boost Bálint Czobor
2015-10-27 17:30 ` [PATCH 70/70] cpufreq: interactive: Round up timer_rate to match jiffy Bálint Czobor
2015-10-27 20:44 ` kbuild test robot [this message]
2015-10-28 0:59 ` [PATCH 01/70] cpufreq: interactive: New 'interactive' governor Rafael J. Wysocki
2015-10-28 3:00 ` Viresh Kumar
[not found] ` <CAL6DFdfsDTtkkpLJ7kg9L9rFh+Ho6DC7x9a+F3x9DydvXHfbPQ@mail.gmail.com>
[not found] ` <CAL6DFdeSbzM5go==i8Z_CJ19VrAMWVVWF5NuD+VNMONaPK5zLA@mail.gmail.com>
2015-10-29 1:42 ` Viresh Kumar
2015-11-02 14:02 ` Peter Zijlstra
2015-11-02 18:06 ` Steve Muckle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201510280431.P8oexxcv%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=czoborbalint@gmail.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mike@android.com \
--cc=rjw@rjwysocki.net \
--cc=toddpoynor@google.com \
--cc=viresh.kumar@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome