* acerhdf thermal question
@ 2023-02-16 8:57 Daniel Lezcano
2023-02-16 9:08 ` Hans de Goede
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Lezcano @ 2023-02-16 8:57 UTC (permalink / raw)
To: Peter Kaestle, Hans de Goede, Mark Gross
Cc: open list:ACER ASPIRE ONE TEMPERATURE AND FAN DRIVER,
Linux Kernel Mailing List
Hi,
the polling interval is specified and modified via a kernel module
parameter [1]
The value is used to change the polling interval of the thermal zone,
implying that is accessing the thermal zone device structure internals
directly [2]
In real use case, is the interval changed at runtime? Or just when the
module is loaded? If the latter, the interval can be passed to the
thermal zone at init time without doing a polling change rate after the
thermal zone started. In this case, we can remove the
polling_delay_jiffies change in the code and fix the structure leakage
in this driver.
Otherwise, I can add accessors to this field but I would like to prevent
adding them if they are not really necessary.
Thanks
-- D.
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git/tree/drivers/platform/x86/acerhdf.c?h=thermal/bleeding-edge#n792
[2]
https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git/tree/drivers/platform/x86/acerhdf.c?h=thermal/bleeding-edge#n359
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: acerhdf thermal question
2023-02-16 8:57 acerhdf thermal question Daniel Lezcano
@ 2023-02-16 9:08 ` Hans de Goede
2023-02-16 9:11 ` Hans de Goede
2023-02-16 11:45 ` Paul Gortmaker
0 siblings, 2 replies; 5+ messages in thread
From: Hans de Goede @ 2023-02-16 9:08 UTC (permalink / raw)
To: Daniel Lezcano, Peter Kaestle, Mark Gross, Paul Gortmaker
Cc: open list:ACER ASPIRE ONE TEMPERATURE AND FAN DRIVER,
Linux Kernel Mailing List
Hi Daniel,
On 2/16/23 09:57, Daniel Lezcano wrote:
>
> Hi,
>
> the polling interval is specified and modified via a kernel module parameter [1]
>
> The value is used to change the polling interval of the thermal zone, implying that is accessing the thermal zone device structure internals directly [2]
>
> In real use case, is the interval changed at runtime? Or just when the module is loaded? If the latter, the interval can be passed to the thermal zone at init time without doing a polling change rate after the thermal zone started. In this case, we can remove the polling_delay_jiffies change in the code and fix the structure leakage in this driver.
I believe this very likely only is used at module load-time.
So the changes you suggest are fine with me.
I have added Paul Gortmaker to the Cc, Paul is the last person
to have done any real (*) work on acerhfd AFAICT.
Paul any objections against making the acerhdf.interval parameter
something which only works when set at boot / module load time
and removing the ability to change it at runtime ?
Regards,
Hans
*) Real as in not related to keeping it aligned with the thermal
framework/core
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: acerhdf thermal question
2023-02-16 9:08 ` Hans de Goede
@ 2023-02-16 9:11 ` Hans de Goede
2023-02-16 11:45 ` Paul Gortmaker
1 sibling, 0 replies; 5+ messages in thread
From: Hans de Goede @ 2023-02-16 9:11 UTC (permalink / raw)
To: Daniel Lezcano, Peter Kaestle, Mark Gross, Paul Gortmaker
Cc: open list:ACER ASPIRE ONE TEMPERATURE AND FAN DRIVER,
Linux Kernel Mailing List
Hi,
On 2/16/23 10:08, Hans de Goede wrote:
> Hi Daniel,
>
> On 2/16/23 09:57, Daniel Lezcano wrote:
>>
>> Hi,
>>
>> the polling interval is specified and modified via a kernel module parameter [1]
>>
>> The value is used to change the polling interval of the thermal zone, implying that is accessing the thermal zone device structure internals directly [2]
>>
>> In real use case, is the interval changed at runtime? Or just when the module is loaded? If the latter, the interval can be passed to the thermal zone at init time without doing a polling change rate after the thermal zone started. In this case, we can remove the polling_delay_jiffies change in the code and fix the structure leakage in this driver.
>
> I believe this very likely only is used at module load-time.
> So the changes you suggest are fine with me.
>
> I have added Paul Gortmaker to the Cc, Paul is the last person
> to have done any real (*) work on acerhfd AFAICT.
>
> Paul any objections against making the acerhdf.interval parameter
> something which only works when set at boot / module load time
> and removing the ability to change it at runtime ?
p.s.
I see now that Peter Kaestle is also still active in acking / reviewing
acerhfd changes. So lets wait for Peter's input on this too.
Regards,
Hans
> *) Real as in not related to keeping it aligned with the thermal
> framework/core
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: acerhdf thermal question
2023-02-16 9:08 ` Hans de Goede
2023-02-16 9:11 ` Hans de Goede
@ 2023-02-16 11:45 ` Paul Gortmaker
2023-02-18 0:18 ` Peter Kästle
1 sibling, 1 reply; 5+ messages in thread
From: Paul Gortmaker @ 2023-02-16 11:45 UTC (permalink / raw)
To: Hans de Goede
Cc: Daniel Lezcano, Peter Kaestle, Mark Gross,
open list:ACER ASPIRE ONE TEMPERATURE AND FAN DRIVER,
Linux Kernel Mailing List
[Re: acerhdf thermal question] On 16/02/2023 (Thu 10:08) Hans de Goede wrote:
> Hi Daniel,
>
> On 2/16/23 09:57, Daniel Lezcano wrote:
> >
> > Hi,
> >
> > the polling interval is specified and modified via a kernel module parameter [1]
> >
> > The value is used to change the polling interval of the thermal zone, implying that is accessing the thermal zone device structure internals directly [2]
> >
> > In real use case, is the interval changed at runtime? Or just when the module is loaded? If the latter, the interval can be passed to the thermal zone at init time without doing a polling change rate after the thermal zone started. In this case, we can remove the polling_delay_jiffies change in the code and fix the structure leakage in this driver.
>
> I believe this very likely only is used at module load-time.
> So the changes you suggest are fine with me.
>
> I have added Paul Gortmaker to the Cc, Paul is the last person
> to have done any real (*) work on acerhfd AFAICT.
>
> Paul any objections against making the acerhdf.interval parameter
> something which only works when set at boot / module load time
> and removing the ability to change it at runtime ?
Not that I have any real authority, beyond "touched it last", but
that aside, I'd say that if it is blocking other subsystem cleanups,
then by all means make it load-time only.
It was already obsolete hardware when I was tinkering with it, and
to my surprise -- that was already five years ago! There can't be a
large user base out there - and even less tinkering with poll delay.
Paul.
--
>
> Regards,
>
> Hans
>
>
> *) Real as in not related to keeping it aligned with the thermal
> framework/core
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: acerhdf thermal question
2023-02-16 11:45 ` Paul Gortmaker
@ 2023-02-18 0:18 ` Peter Kästle
0 siblings, 0 replies; 5+ messages in thread
From: Peter Kästle @ 2023-02-18 0:18 UTC (permalink / raw)
To: Paul Gortmaker, Hans de Goede, Daniel Lezcano
Cc: Mark Gross, open list:ACER ASPIRE ONE TEMPERATURE AND FAN DRIVER,
Linux Kernel Mailing List
Hello,
16. Februar 2023 12:46, "Paul Gortmaker" <paul.gortmaker@windriver.com> schrieb:
> [Re: acerhdf thermal question] On 16/02/2023 (Thu 10:08) Hans de Goede wrote:
>
>> Hi Daniel,
>>
>> On 2/16/23 09:57, Daniel Lezcano wrote:
>>
>> Hi,
>>
>> the polling interval is specified and modified via a kernel module parameter [1]
>>
>> The value is used to change the polling interval of the thermal zone, implying that is accessing
>> the thermal zone device structure internals directly [2]
>>
>> In real use case, is the interval changed at runtime? Or just when the module is loaded? If the
>> latter, the interval can be passed to the thermal zone at init time without doing a polling change
>> rate after the thermal zone started. In this case, we can remove the polling_delay_jiffies change
>> in the code and fix the structure leakage in this driver.
>>
>> I believe this very likely only is used at module load-time.
>> So the changes you suggest are fine with me.
>>
>> I have added Paul Gortmaker to the Cc, Paul is the last person
>> to have done any real (*) work on acerhfd AFAICT.
>>
>> Paul any objections against making the acerhdf.interval parameter
>> something which only works when set at boot / module load time
>> and removing the ability to change it at runtime ?
>
> Not that I have any real authority, beyond "touched it last", but
> that aside, I'd say that if it is blocking other subsystem cleanups,
> then by all means make it load-time only.
>
> It was already obsolete hardware when I was tinkering with it, and
> to my surprise -- that was already five years ago! There can't be a
> large user base out there - and even less tinkering with poll delay.
At least I'm still using it :) Setting the interval at module load-time is good enough.
--
Thanks,
--peter;
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-02-18 0:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-16 8:57 acerhdf thermal question Daniel Lezcano
2023-02-16 9:08 ` Hans de Goede
2023-02-16 9:11 ` Hans de Goede
2023-02-16 11:45 ` Paul Gortmaker
2023-02-18 0:18 ` Peter Kästle
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.