Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1621771
| From | Keerthy <j-keerthy@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism |
| Date | 2017-04-12 06:20 +0200 |
| Message-ID | <tvhV7-8fa-1@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <tv7M6-1zf-13@gated-at.bofh.it> <tvgFH-7hv-3@gated-at.bofh.it> <tvh8J-7Hj-1@gated-at.bofh.it> <tvhs5-7NV-1@gated-at.bofh.it> <tvhLr-8bH-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wednesday 12 April 2017 09:35 AM, Eduardo Valentin wrote: > Keerthy, > > On Wed, Apr 12, 2017 at 09:09:36AM +0530, Keerthy wrote: >> >> >> On Wednesday 12 April 2017 08:50 AM, Zhang Rui wrote: >>> On Wed, 2017-04-12 at 08:19 +0530, Keerthy wrote: >>>> >>>> On Tuesday 11 April 2017 10:59 PM, Eduardo Valentin wrote: >>>>> >>>>> Hey, >>>>> >>>>> On Fri, Mar 31, 2017 at 12:00:20PM +0530, Keerthy wrote: >>>>>> >>>>>> off). > > <cut> > >>>>> OK... This seams to me, still a corner case supposed to be fixed at >>>>> orderly_power_off, not at thermal. But.. >>>>> > > ^^^ Then again, this must be fixed not at thermal core. And re-reading > the history of this thread, this seams to be really something broken at > OMAP/DRA7, as mentioned in previous messages. That is probably why you > are pushing for pm_power_off(), which seams to be the one that works for > you, pulling the plug correctly (DRA7). > >>>>>> >>>>>> >>>>>> However, there is no clean way of detecting such failure of >>>>>> userspace >>>>>> powering off the system. In such scenarios, it is necessary for a >>>>>> backup >>>>>> workqueue to be able to force a shutdown of the system when >>>>>> orderly >>>>>> shutdown is not successful after a configurable time period. >>>>>> >>>>> Given that system running hot is a thermal issue, I guess we care >>>>> more >>>>> on this matter then.. >>>> Yes! >>>> >>> I just read this thread again https://patchwork.kernel.org/patch/802458 >>> 1/ to recall the previous discussion. >>> >>> https://patchwork.kernel.org/patch/8149891/ >>> https://patchwork.kernel.org/patch/8149861/ >>> should be the solution made based on Ingo' suggestion, right? >>> >>> And to me, this sounds like the right direction to go, thermal does not >>> need a back up shutdown solution, it just needs a kernel function call >>> which guarantees the system can be shutdown/reboot immediately. >>> >>> is there any reason that patch 1/2 is not accepted? >> >> Zhang, >> >> http://www.serverphorums.com/read.php?12,1400964 >> >> I got a NAK from Alan and was given this direction on a thermal_poweroff >> which is more or less what is done in this patch. >> > > > Actually, Alan's suggestion is more for you to define a > thermal_poweroff() that can be defined per architecture. > > Also, please, keep track of your patch versions and also do copy > everybody who has stated their opinion on previous discussions. These > patches must have Ingo, Alan, and RMK copied too. In this way we avoid > loosing track of what has been suggested and we also converge faster to > something everybody (or most of us) agree. Next version, please, fix > that. Sure. This was resurrected from last year. I will add the links to previous discussions. my bad. > > > To me, thermal core needs a function that simply powers off the system. > No timeouts, delayed works, backups, etc. Simple and straight. You mean replacing orderly_power_off during critical trip point cross over with a thermal specific thermal_poweroff function that ensures that hardware is indeed shut off? > > The idea of having a per architecture implementation, as per Alan's > suggestion, makes sense to me too. Having something different from > pm_power_off(), specific to thermal, might also give the opportunity to > save the power off reason. I did not get the 'save the power off reason' point. Care to explain more? > > BR, > > Eduardo Valentin >
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Eduardo Valentin <edubezval@gmail.com> - 2017-04-11 19:30 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Keerthy <j-keerthy@ti.com> - 2017-04-12 05:00 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Zhang Rui <rui.zhang@intel.com> - 2017-04-12 05:30 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Keerthy <j-keerthy@ti.com> - 2017-04-12 05:50 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Eduardo Valentin <edubezval@gmail.com> - 2017-04-12 06:10 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Keerthy <j-keerthy@ti.com> - 2017-04-12 06:20 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Keerthy <j-keerthy@ti.com> - 2017-04-12 10:00 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Zhang Rui <rui.zhang@intel.com> - 2017-04-12 10:30 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Keerthy <j-keerthy@ti.com> - 2017-04-12 10:40 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Zhang Rui <rui.zhang@intel.com> - 2017-04-12 10:50 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Eduardo Valentin <edubezval@gmail.com> - 2017-04-12 17:50 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Keerthy <j-keerthy@ti.com> - 2017-04-12 18:20 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Eduardo Valentin <edubezval@gmail.com> - 2017-04-12 19:00 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Grygorii Strashko <grygorii.strashko@ti.com> - 2017-04-12 18:40 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Eduardo Valentin <edubezval@gmail.com> - 2017-04-12 18:40 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Keerthy <j-keerthy@ti.com> - 2017-04-12 18:50 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Eduardo Valentin <edubezval@gmail.com> - 2017-04-12 19:00 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Keerthy <j-keerthy@ti.com> - 2017-04-12 19:10 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Grygorii Strashko <grygorii.strashko@ti.com> - 2017-04-12 19:10 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Keerthy <j-keerthy@ti.com> - 2017-04-12 19:20 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Eduardo Valentin <edubezval@gmail.com> - 2017-04-12 19:30 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Tero Kristo <t-kristo@ti.com> - 2017-04-12 20:50 +0200
Re: [PATCH] thermal: core: Add a back up thermal shutdown mechanism Keerthy <j-keerthy@ti.com> - 2017-04-13 06:00 +0200
csiph-web