* Re: [PATCH v2 1/1] PM / OPP: Fix get sharing cpus when hotplug is used
[not found] <20170721121403.31202-1-waldemarx.rymarkiewicz@intel.com>
@ 2017-07-24 8:47 ` Viresh Kumar
2017-07-24 21:04 ` Rafael J. Wysocki
0 siblings, 1 reply; 4+ messages in thread
From: Viresh Kumar @ 2017-07-24 8:47 UTC (permalink / raw)
To: Waldemar Rymarkiewicz
Cc: linux-pm, WaldemarRymarkiewiczwaldemar.rymarkiewicz, Viresh Kumar,
Nishanth Menon, Stephen Boyd
On 21-07-17, 14:13, Waldemar Rymarkiewicz wrote:
> We fail dev_pm_opp_of_get_sharing_cpus() when possible cpu device does not
> exist. This can happen on platforms where not all possible CPUs are
> available at start up ie. hotplugged out. Cpu device is not registered in
> the system so we are not able to check struct device to set the sharing
> CPUs bitmask properly.
>
> Example (real use case):
> 2 physical MIPS cores, 4 VPE, cpu0/2 run Linux and cpu1/3 are not available
> for Linux at boot up. cpufreq-dt driver + opp v2 fail to register opp_table
> due to the fact there is no struct device for cpu1 (remains offline at
> bootup).
>
> To solve the bug, stop using device struct to check device_node. Instead
> get cpu device_node directly from device tree with of_get_cpu_node().
>
> Signed-off-by: Waldemar Rymarkiewicz <waldemarx.rymarkiewicz@intel.com>
> ---
> drivers/base/power/opp/of.c | 28 +++++++++++++++++-----------
> 1 file changed, 17 insertions(+), 11 deletions(-)
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
--
viresh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/1] PM / OPP: Fix get sharing cpus when hotplug is used
2017-07-24 8:47 ` [PATCH v2 1/1] PM / OPP: Fix get sharing cpus when hotplug is used Viresh Kumar
@ 2017-07-24 21:04 ` Rafael J. Wysocki
2017-07-25 8:09 ` Waldemar Rymarkiewicz
0 siblings, 1 reply; 4+ messages in thread
From: Rafael J. Wysocki @ 2017-07-24 21:04 UTC (permalink / raw)
To: Viresh Kumar, Waldemar Rymarkiewicz,
WaldemarRymarkiewiczwaldemar.rymarkiewicz
Cc: linux-pm, Viresh Kumar, Nishanth Menon, Stephen Boyd
On Monday, July 24, 2017 02:17:13 PM Viresh Kumar wrote:
> On 21-07-17, 14:13, Waldemar Rymarkiewicz wrote:
> > We fail dev_pm_opp_of_get_sharing_cpus() when possible cpu device does not
> > exist. This can happen on platforms where not all possible CPUs are
> > available at start up ie. hotplugged out. Cpu device is not registered in
> > the system so we are not able to check struct device to set the sharing
> > CPUs bitmask properly.
> >
> > Example (real use case):
> > 2 physical MIPS cores, 4 VPE, cpu0/2 run Linux and cpu1/3 are not available
> > for Linux at boot up. cpufreq-dt driver + opp v2 fail to register opp_table
> > due to the fact there is no struct device for cpu1 (remains offline at
> > bootup).
> >
> > To solve the bug, stop using device struct to check device_node. Instead
> > get cpu device_node directly from device tree with of_get_cpu_node().
> >
> > Signed-off-by: Waldemar Rymarkiewicz <waldemarx.rymarkiewicz@intel.com>
> > ---
> > drivers/base/power/opp/of.c | 28 +++++++++++++++++-----------
> > 1 file changed, 17 insertions(+), 11 deletions(-)
>
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
I've lost track of this, care to resend?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/1] PM / OPP: Fix get sharing cpus when hotplug is used
2017-07-24 21:04 ` Rafael J. Wysocki
@ 2017-07-25 8:09 ` Waldemar Rymarkiewicz
2017-07-26 0:17 ` Rafael J. Wysocki
0 siblings, 1 reply; 4+ messages in thread
From: Waldemar Rymarkiewicz @ 2017-07-25 8:09 UTC (permalink / raw)
To: Rafael J. Wysocki
Cc: Viresh Kumar, Waldemar Rymarkiewicz,
WaldemarRymarkiewiczwaldemar.rymarkiewicz, linux-pm, Viresh Kumar,
Nishanth Menon, Stephen Boyd
On 24 July 2017 at 23:04, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> On Monday, July 24, 2017 02:17:13 PM Viresh Kumar wrote:
>> On 21-07-17, 14:13, Waldemar Rymarkiewicz wrote:
>> > We fail dev_pm_opp_of_get_sharing_cpus() when possible cpu device does not
>> > exist. This can happen on platforms where not all possible CPUs are
>> > available at start up ie. hotplugged out. Cpu device is not registered in
>> > the system so we are not able to check struct device to set the sharing
>> > CPUs bitmask properly.
>> >
>> > Example (real use case):
>> > 2 physical MIPS cores, 4 VPE, cpu0/2 run Linux and cpu1/3 are not available
>> > for Linux at boot up. cpufreq-dt driver + opp v2 fail to register opp_table
>> > due to the fact there is no struct device for cpu1 (remains offline at
>> > bootup).
>> >
>> > To solve the bug, stop using device struct to check device_node. Instead
>> > get cpu device_node directly from device tree with of_get_cpu_node().
>> >
>> > Signed-off-by: Waldemar Rymarkiewicz <waldemarx.rymarkiewicz@intel.com>
>> > ---
>> > drivers/base/power/opp/of.c | 28 +++++++++++++++++-----------
>> > 1 file changed, 17 insertions(+), 11 deletions(-)
>>
>> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
>
> I've lost track of this, care to resend?
I've resent v3.
/Waldek
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/1] PM / OPP: Fix get sharing cpus when hotplug is used
2017-07-25 8:09 ` Waldemar Rymarkiewicz
@ 2017-07-26 0:17 ` Rafael J. Wysocki
0 siblings, 0 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2017-07-26 0:17 UTC (permalink / raw)
Cc: Viresh Kumar, Waldemar Rymarkiewicz,
WaldemarRymarkiewiczwaldemar.rymarkiewicz, linux-pm, Viresh Kumar,
Nishanth Menon, Stephen Boyd
On Tuesday, July 25, 2017 10:09:42 AM Waldemar Rymarkiewicz wrote:
> On 24 July 2017 at 23:04, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> > On Monday, July 24, 2017 02:17:13 PM Viresh Kumar wrote:
> >> On 21-07-17, 14:13, Waldemar Rymarkiewicz wrote:
> >> > We fail dev_pm_opp_of_get_sharing_cpus() when possible cpu device does not
> >> > exist. This can happen on platforms where not all possible CPUs are
> >> > available at start up ie. hotplugged out. Cpu device is not registered in
> >> > the system so we are not able to check struct device to set the sharing
> >> > CPUs bitmask properly.
> >> >
> >> > Example (real use case):
> >> > 2 physical MIPS cores, 4 VPE, cpu0/2 run Linux and cpu1/3 are not available
> >> > for Linux at boot up. cpufreq-dt driver + opp v2 fail to register opp_table
> >> > due to the fact there is no struct device for cpu1 (remains offline at
> >> > bootup).
> >> >
> >> > To solve the bug, stop using device struct to check device_node. Instead
> >> > get cpu device_node directly from device tree with of_get_cpu_node().
> >> >
> >> > Signed-off-by: Waldemar Rymarkiewicz <waldemarx.rymarkiewicz@intel.com>
> >> > ---
> >> > drivers/base/power/opp/of.c | 28 +++++++++++++++++-----------
> >> > 1 file changed, 17 insertions(+), 11 deletions(-)
> >>
> >> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
> >
> > I've lost track of this, care to resend?
>
> I've resent v3.
Well, I'm not seeing it in any of my mailboxes.
Have you CCed it to the mailing lists?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-07-26 0:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20170721121403.31202-1-waldemarx.rymarkiewicz@intel.com>
2017-07-24 8:47 ` [PATCH v2 1/1] PM / OPP: Fix get sharing cpus when hotplug is used Viresh Kumar
2017-07-24 21:04 ` Rafael J. Wysocki
2017-07-25 8:09 ` Waldemar Rymarkiewicz
2017-07-26 0:17 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox