All of lore.kernel.org
 help / color / mirror / Atom feed
From: <gregkh@linuxfoundation.org>
To: jdelvare@suse.de, bpetkov@suse.de, eduardo.valentin@ti.com,
	peter@piie.net, rui.zhang@intel.com, shawn.guo@linaro.org,
	stable@vger.kernel.org
Cc: <stable@vger.kernel.org>, <stable-commits@vger.kernel.org>
Subject: Patch "thermal: step_wise: Revert optimization" has been added to the 3.14-stable tree
Date: Wed, 03 Jun 2015 14:27:52 +0900	[thread overview]
Message-ID: <143330927210749@kroah.com> (raw)
In-Reply-To: <1429521673.4305.12.camel@chaos.site>


This is a note to let you know that I've just added the patch titled

    thermal: step_wise: Revert optimization

to the 3.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     thermal-step_wise-revert-optimization.patch
and it can be found in the queue-3.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From jdelvare@suse.de  Wed Jun  3 14:21:51 2015
From: Jean Delvare <jdelvare@suse.de>
Date: Mon, 20 Apr 2015 11:21:13 +0200
Subject: thermal: step_wise: Revert optimization
To: stable <stable@vger.kernel.org>
Cc: Shawn Guo <shawn.guo@linaro.org>, Eduardo Valentin <eduardo.valentin@ti.com>, Zhang Rui <rui.zhang@intel.com>, Borislav Petkov <bpetkov@suse.de>
Message-ID: <1429521673.4305.12.camel@chaos.site>

From: Jean Delvare <jdelvare@suse.de>

Commit 178c2490b99f898efc06d1ad75cadc84f13021a6 ("thermal: step_wise:
cdev only needs update on a new target state") broke driver acerhdf.
That driver abused the step_wise thermal governor until the bang_bang
governor was available, and the optimization broke this usage model.

Kernels v3.12 to v3.18 are affected. In v3.19 the acerhdf driver was
switched to the bang_bang governor and that solved the problem.

For kernels v3.12 to v3.17, the bang_bang governor isn't available
yet so the easiest fix is to revert the optimization.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reported-by: Dieter Jurzitza (https://bugzilla.opensuse.org/show_bug.cgi?id=925961)
Tested-by: Peter Feuerer <peter@piie.net>
Tested-by: Dieter Jurzitza
---
Please consider this patch for stable kernel branches from v3.12 to v3.17.

If anyone cares about v3.18, I think a better fix would be to backport
commit 48c8dd64345ba2a8c41556095c7adacb1c8af7c1 ("acerhdf: Use bang-bang
thermal governor") but it's too big for stable, so it's left to
distributions. So maybe this fix should make it into v3.18 stable as
well - I'll let whoever maintains that branch decide.

 drivers/thermal/step_wise.c |    3 ---
 1 file changed, 3 deletions(-)

--- a/drivers/thermal/step_wise.c
+++ b/drivers/thermal/step_wise.c
@@ -146,9 +146,6 @@ static void thermal_zone_trip_update(str
 		dev_dbg(&instance->cdev->device, "old_target=%d, target=%d\n",
 					old_target, (int)instance->target);
 
-		if (old_target == instance->target)
-			continue;
-
 		/* Activate a passive thermal instance */
 		if (old_target == THERMAL_NO_TARGET &&
 			instance->target != THERMAL_NO_TARGET)


Patches currently in stable-queue which might be from jdelvare@suse.de are

queue-3.14/thermal-step_wise-revert-optimization.patch
queue-3.14/hwmon-nct6775-add-missing-sysfs-attribute-initialization.patch

           reply	other threads:[~2015-06-03  5:27 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1429521673.4305.12.camel@chaos.site>]

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=143330927210749@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=bpetkov@suse.de \
    --cc=eduardo.valentin@ti.com \
    --cc=jdelvare@suse.de \
    --cc=peter@piie.net \
    --cc=rui.zhang@intel.com \
    --cc=shawn.guo@linaro.org \
    --cc=stable-commits@vger.kernel.org \
    --cc=stable@vger.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 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.