All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Shi <alex.shi@intel.com>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Linux PM list <linux-pm@vger.kernel.org>,
	"Brown, Len" <len.brown@intel.com>,
	"Wysocki, Rafael J" <rafael.j.wysocki@intel.com>,
	Arjan van de Ven <arjan@linux.intel.com>,
	LKP ML <lkp@linux.intel.com>
Subject: Re: bltk-game regressions on snb laptop
Date: Thu, 18 Apr 2013 13:16:45 +0800	[thread overview]
Message-ID: <516F81BD.3030306@intel.com> (raw)
In-Reply-To: <CAKohpokju79Fx7TXTD1hKoG0JUmCsRm8Us381bhHeUrBvyOv6w@mail.gmail.com>

On 04/18/2013 12:26 PM, Viresh Kumar wrote:
> On 18 April 2013 06:18, Alex Shi <alex.shi@intel.com> wrote:
>> On 04/18/2013 12:46 AM, Viresh Kumar wrote:
>>> On 16 April 2013 12:44, Alex Shi <alex.shi@intel.com> wrote:
> 
>> Hi, Viresh, correct me if I am wrong. :)
>>
>> the affected_cpus value changed from 3.9-rc1, then we get the good performance,
>> and dropped after this commit. I have reverted this patch, then the performance recovered.
> 
> 
> What's the fps value you got with v3.8? Current values should be
> similar to that.

Yes. current value is similar to 3.8: 18fps, compare to 3.9-rc1, that is
also bad.
I mean the good performance started from 3.9-rc1 kernel.

> About your system: Can you give output of cpufreq-info for v3.8 and
> v3.9-latestrc?
> Your cpus share a clock line or not?

Yes our cpu shares a clock line. So the cpufreq-info is same. SNB CPU
p-state is per cpu package, and hardware will coordinate the software
asking, then decide which cpufreq should be.
> 
>> this patch remove the unconditionally related_cpus set:
>> @@ -730,7 +730,6 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
>>             policy->shared_type == CPUFREQ_SHARED_TYPE_ANY) {
>>                 cpumask_copy(policy->cpus, perf->shared_cpu_map);
>>         }
>> -       cpumask_copy(policy->related_cpus, perf->shared_cpu_map);
> 
> Because setting related cpus now didn't had a meaning and people were
> facing regressions due to it.

I know. So, I reported this issue without asking for revert. :)
> 
>>
> 
>> Our p-state should be hardware coordinate, so affected_cpus is right on your patch.
> 
> Didn't get that.. Your cpus share clock line? If so, they should be set in
> policy->cpus by your driver and same would be reflected in related_cpus
> by cpufreq core.

That's sth I am also confused. Yes, that cpu share a clock line. But
Arjan and Len both said affected_cpus should only include the cpu self,
because cpu will do hardware coordination for them.
> 


-- 
Thanks Alex

  parent reply	other threads:[~2013-04-18  5:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-16  7:14 bltk-game regressions on snb laptop Alex Shi
2013-04-17 16:34 ` Rafael J. Wysocki
2013-04-18  0:23   ` Alex Shi
2013-04-17 16:46 ` Viresh Kumar
2013-04-18  0:48   ` Alex Shi
2013-04-18  4:26     ` Viresh Kumar
2013-04-18  4:36       ` Viresh Kumar
2013-04-18  5:24         ` Alex Shi
2013-04-18  5:16       ` Alex Shi [this message]
2013-04-18  5:37         ` Viresh Kumar
2013-04-18  6:16           ` Alex Shi
2013-04-18  8:54           ` Alex Shi
2013-04-18 10:01             ` Viresh Kumar
2013-04-19 10:00               ` Alex Shi
2013-04-19 12:23                 ` Viresh Kumar
2013-04-19 14:43                   ` Alex Shi
2013-04-19 15:44                   ` Arjan van de Ven

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=516F81BD.3030306@intel.com \
    --to=alex.shi@intel.com \
    --cc=arjan@linux.intel.com \
    --cc=len.brown@intel.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=lkp@linux.intel.com \
    --cc=rafael.j.wysocki@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.