Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-12 Thread Rafael J. Wysocki
On Thu, Jun 11, 2020 at 3:52 AM Xiongfeng Wang wrote: > > Hi Ionela, > > Thanks for your reply ! > > On 2020/6/10 17:40, Ionela Voinescu wrote: > > Hi guys, > > > > Sorry for showing up late to the party, I was on holiday last week. > > > > On Thursday 04 Jun 2020 at 13:58:22 (+0100), Sudeep

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-10 Thread Xiongfeng Wang
Hi Ionela, Thanks for your reply ! On 2020/6/10 17:40, Ionela Voinescu wrote: > Hi guys, > > Sorry for showing up late to the party, I was on holiday last week. > > On Thursday 04 Jun 2020 at 13:58:22 (+0100), Sudeep Holla wrote: >> On Thu, Jun 04, 2020 at 12:42:06PM +0200, Rafael J. Wysocki

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-10 Thread Ionela Voinescu
Hi guys, Sorry for showing up late to the party, I was on holiday last week. On Thursday 04 Jun 2020 at 13:58:22 (+0100), Sudeep Holla wrote: > On Thu, Jun 04, 2020 at 12:42:06PM +0200, Rafael J. Wysocki wrote: > > On Thu, Jun 4, 2020 at 6:41 AM Viresh Kumar wrote: > > > > > > On 04-06-20,

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-04 Thread Sudeep Holla
On Thu, Jun 04, 2020 at 12:42:06PM +0200, Rafael J. Wysocki wrote: > On Thu, Jun 4, 2020 at 6:41 AM Viresh Kumar wrote: > > > > On 04-06-20, 09:32, Xiongfeng Wang wrote: > > > On 2020/6/3 21:39, Rafael J. Wysocki wrote: > > > > The frequency value obtained by kicking the CPU out of idle > > > >

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-04 Thread Rafael J. Wysocki
On Thu, Jun 4, 2020 at 6:41 AM Viresh Kumar wrote: > > On 04-06-20, 09:32, Xiongfeng Wang wrote: > > On 2020/6/3 21:39, Rafael J. Wysocki wrote: > > > The frequency value obtained by kicking the CPU out of idle > > > artificially is bogus, though. You may as well return a random number > > >

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-03 Thread Viresh Kumar
On 04-06-20, 09:32, Xiongfeng Wang wrote: > On 2020/6/3 21:39, Rafael J. Wysocki wrote: > > The frequency value obtained by kicking the CPU out of idle > > artificially is bogus, though. You may as well return a random number > > instead. > > Yes, it may return a randowm number as well. > > >

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-03 Thread Xiongfeng Wang
Hi Rafael, Thanks for your reply ! On 2020/6/3 21:39, Rafael J. Wysocki wrote: > On Wed, Jun 3, 2020 at 9:52 AM Viresh Kumar wrote: >> >> On 02-06-20, 11:34, Xiongfeng Wang wrote: >>> Hi Viresh, >>> >>> Sorry to disturb you about another problem as follows. >>> >>> CPPC use the increment of

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-03 Thread Rafael J. Wysocki
On Wed, Jun 3, 2020 at 9:52 AM Viresh Kumar wrote: > > On 02-06-20, 11:34, Xiongfeng Wang wrote: > > Hi Viresh, > > > > Sorry to disturb you about another problem as follows. > > > > CPPC use the increment of Desired Performance counter and Reference > > Performance > > counter to get the CPU

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-03 Thread Sudeep Holla
On Wed, Jun 03, 2020 at 03:51:59PM +0530, Viresh Kumar wrote: > On 03-06-20, 11:17, Sudeep Holla wrote: > > On Wed, Jun 03, 2020 at 03:40:10PM +0530, Viresh Kumar wrote: > > > On 03-06-20, 11:07, Sudeep Holla wrote: > > > > But I have another question. If we can detect that CPPC on some > > > >

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-03 Thread Viresh Kumar
On 03-06-20, 11:17, Sudeep Holla wrote: > On Wed, Jun 03, 2020 at 03:40:10PM +0530, Viresh Kumar wrote: > > On 03-06-20, 11:07, Sudeep Holla wrote: > > > But I have another question. If we can detect that CPPC on some platforms > > > rely on CPU registers(I assume FFH registers here and not

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-03 Thread Sudeep Holla
On Wed, Jun 03, 2020 at 03:40:10PM +0530, Viresh Kumar wrote: > On 03-06-20, 11:07, Sudeep Holla wrote: > > But I have another question. If we can detect that CPPC on some platforms > > rely on CPU registers(I assume FFH registers here and not system/io/... > > type of GAS registers), can we set

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-03 Thread Viresh Kumar
On 03-06-20, 11:07, Sudeep Holla wrote: > But I have another question. If we can detect that CPPC on some platforms > rely on CPU registers(I assume FFH registers here and not system/io/... > type of GAS registers), can we set dvfs_on_any_cpu(can't recall exact > flag name) to false if not already

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-03 Thread Sudeep Holla
On Wed, Jun 03, 2020 at 01:22:00PM +0530, Viresh Kumar wrote: > On 02-06-20, 11:34, Xiongfeng Wang wrote: > > Hi Viresh, > > > > Sorry to disturb you about another problem as follows. > > > > CPPC use the increment of Desired Performance counter and Reference > > Performance > > counter to get

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-03 Thread Viresh Kumar
On 02-06-20, 11:34, Xiongfeng Wang wrote: > Hi Viresh, > > Sorry to disturb you about another problem as follows. > > CPPC use the increment of Desired Performance counter and Reference > Performance > counter to get the CPU frequency and show it in sysfs through > 'cpuinfo_cur_freq'. But ACPI

Re: [Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-02 Thread Hanjun Guo
On 2020/6/2 11:34, Xiongfeng Wang wrote: Hi Viresh, Sorry to disturb you about another problem as follows. CPPC use the increment of Desired Performance counter and Reference Performance counter to get the CPU frequency and show it in sysfs through 'cpuinfo_cur_freq'. But ACPI CPPC doesn't

[Question]: about 'cpuinfo_cur_freq' shown in sysfs when the CPU is in idle state

2020-06-01 Thread Xiongfeng Wang
Hi Viresh, Sorry to disturb you about another problem as follows. CPPC use the increment of Desired Performance counter and Reference Performance counter to get the CPU frequency and show it in sysfs through 'cpuinfo_cur_freq'. But ACPI CPPC doesn't specifically define the behavior of these two