From: Jacob Pan <jacob.jun.pan@linux.intel.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Petr Mladek <pmladek@suse.com>, Zhang Rui <rui.zhang@intel.com>,
Thomas Gleixner <tglx@linutronix.de>,
Eduardo Valentin <edubezval@gmail.com>, Tejun Heo <tj@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
jacob.jun.pan@linux.intel.com
Subject: Re: [PATCH 3/3] thermal/intel_powerclamp: Convert to CPU hotplug state
Date: Thu, 27 Oct 2016 13:27:36 -0700 [thread overview]
Message-ID: <20161027132736.2a74c0b6@jacob-builder> (raw)
In-Reply-To: <20161027151726.s2uavcnnbtjvmboq@linutronix.de>
On Thu, 27 Oct 2016 17:17:26 +0200
Sebastian Andrzej Siewior <bigeasy@linutronix.de> wrote:
> On 2016-10-27 16:53:48 [+0200], Petr Mladek wrote:
> >
> > In each case, I wonder if the problem is caused by the conversion
> > to the kthread worker or by the CPU hotplug state conversion.
>
> drop the hotplug patch and you will see.
>
Petr,
I dropped hp patch no long see the hang during suspend to s3. However,
the problem seems to be this line,
diff --git a/drivers/thermal/intel_powerclamp.c
b/drivers/thermal/intel_powerclamp.c index 390e50b..b61da57 100644
--- a/drivers/thermal/intel_powerclamp.c
+++ b/drivers/thermal/intel_powerclamp.c
@@ -574,7 +574,7 @@ static void stop_power_clamp_worker(unsigned long
cpu) */
del_timer_sync(&w_data->wakeup_timer);
clear_bit(w_data->cpu, cpu_clamping_mask);
- kthread_destroy_worker(w_data->worker);
+// kthread_destroy_worker(w_data->worker);
w_data->worker = NULL;
}
If I do the above, everything works with S3 and CPU HP patch.
Inside kthread_destroy_worker()
kthread_flush_worker(worker);
never completes then blocks s3 entry!
I will be at LPC next week also, we can chat about that.
Thanks,
Jacob
> > Best Regards,
> > Petr
>
> Sebastian
[Jacob Pan]
next prev parent reply other threads:[~2016-10-27 20:25 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-17 12:32 [PATCH 0/3] thermal/intel_powerclamp: Conversion to kthread worker API and new CPU hotplug state Petr Mladek
2016-10-17 12:32 ` [PATCH 1/3] thermal/intel_powerclamp: Remove duplicated code that starts the kthread Petr Mladek
2016-10-17 12:32 ` [PATCH 2/3] thermal/intel_powerclamp: Convert the kthread to kthread worker API Petr Mladek
2016-10-17 12:32 ` [PATCH 3/3] thermal/intel_powerclamp: Convert to CPU hotplug state Petr Mladek
2016-10-21 20:21 ` Jacob Pan
2016-10-24 15:48 ` Petr Mladek
2016-10-24 16:55 ` Jacob Pan
2016-10-27 14:53 ` Petr Mladek
2016-10-27 15:17 ` Sebastian Andrzej Siewior
2016-10-27 20:27 ` Jacob Pan [this message]
2016-11-11 9:33 ` Petr Mladek
2016-11-11 10:07 ` Petr Mladek
2016-11-11 17:34 ` Petr Mladek
2016-11-14 19:12 ` Jacob Pan
2016-11-15 11:36 ` Zhang Rui
2016-11-15 16:40 ` Jacob Pan
2016-11-21 11:57 ` Petr Mladek
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=20161027132736.2a74c0b6@jacob-builder \
--to=jacob.jun.pan@linux.intel.com \
--cc=bigeasy@linutronix.de \
--cc=edubezval@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=pmladek@suse.com \
--cc=rui.zhang@intel.com \
--cc=tglx@linutronix.de \
--cc=tj@kernel.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;
as well as URLs for NNTP newsgroup(s).