From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Zhang Rui <rui.zhang@intel.com>,
Amit Kucheria <amit.kucheria@linaro.org>,
Andrzej Pietrasiewicz <andrzej.p@collabora.com>,
Colin King <colin.king@canonical.com>,
Shawn Guo <shawn.guo@linaro.org>,
Lukasz Luba <Lukasz.Luba@arm.com>,
Sumeet Pawnikar <sumeet.r.pawnikar@intel.com>,
Henry Yen <henry.yen@mediatek.com>,
Thierry Reding <thierry.reding@gmail.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux PM mailing list <linux-pm@vger.kernel.org>,
Marian-Cristian Rotariu
<marian-cristian.rotariu.rb@bp.renesas.com>
Subject: Re: [GIT PULL] RESEND: thermal for v5.9-rc1
Date: Fri, 7 Aug 2020 11:40:02 +0200 [thread overview]
Message-ID: <b903cdd8-cbb5-1a6a-3943-9bb019f1eed7@linaro.org> (raw)
In-Reply-To: <CAHk-=wgLt61owJ_eKwy43bBujxy3-s=xQXwsSi6VHME7SiAgiA@mail.gmail.com>
Hi Linus,
On 07/08/2020 04:43, Linus Torvalds wrote:
> On Thu, Aug 6, 2020 at 1:19 PM Daniel Lezcano <daniel.lezcano@linaro.org> wrote:
>>
>>
>> - Add generic netlink support for userspace notifications: events,
>> temperature
>> and discovery commands (Daniel Lezcano)
>
> This is "default y".
>
> Why?
>
> The help text doesn't explain either.
>
> Please explain, or remove the default y. We don't add new features and
> then try to force people to use them by enabling them by default.
>
> "default y" is mainly for when something unconditional gets split up
> and becomes conditional (so now "default y" means that you don't break
> peoples setups when they don't even know what it is).
>
> Alternatively, "default y" is for things that are make peoples lives
> immeasurably better somehow, and it would be a crime to not enable it
> because it's _so_ wonderful.
Well, I won't argue the netlink notification is so that fantastic but it
is a feature that was needed since a long time. A previous partial
implementation was directly compiled-in and then removed [1] because
there were no user as it is and we wanted to introduce a clean new
notification framework based in our previous discussion at Linux
Plumbers Conference [2] but that needed some cleanups of the thermal
core code before.
This netlink framework fulfills the needs of the thermal daemons for
Intel, Android HAL and SoC vendors which are hacking the thermal
framework or constantly polling the temperature.
Because the compilation failed if CONFIG_NET=n, the Kconfig option was
introduced afterwards [3]. It could have been directly handled in the
code with a 'ifdef' directive without option but it sounded more
convenient to at least give the opportunity to opt-out the notification.
It defaults to 'y' because the previous (but unused) implementation was
unconditionally compiled-in and because of the thermal users needs.
Is default=y wrong given this history?
-- Daniel
[1] https://patchwork.kernel.org/patch/11202093/
[2]
https://www.linuxplumbersconf.org/event/2/contributions/185/attachments/39/46/LPC_2018_Thermal-Srinivas-Rui.pdf
[3]
https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git/commit/?h=thermal/next&id=5b8583d3bd7fc10cea07e4a5bfa59465758a39dc
> So far, I'm not convinced we've ever hit that second case.
>
> Convince me that the thermal layer is so magical that it really
> warrants it. Tell me why and how my life is improved by enabling it.
>
> Linus
>
--
<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
next prev parent reply other threads:[~2020-08-07 9:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-06 20:18 Daniel Lezcano
2020-08-07 1:55 ` pr-tracker-bot
2020-08-07 2:43 ` Linus Torvalds
2020-08-07 9:40 ` Daniel Lezcano [this message]
2020-08-07 15:54 ` Linus Torvalds
2020-08-07 18:06 ` Daniel Lezcano
2020-08-07 18:12 ` Linus Torvalds
2020-08-07 23:12 ` Daniel Lezcano
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=b903cdd8-cbb5-1a6a-3943-9bb019f1eed7@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=Lukasz.Luba@arm.com \
--cc=amit.kucheria@linaro.org \
--cc=andrzej.p@collabora.com \
--cc=colin.king@canonical.com \
--cc=henry.yen@mediatek.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=marian-cristian.rotariu.rb@bp.renesas.com \
--cc=rui.zhang@intel.com \
--cc=shawn.guo@linaro.org \
--cc=sumeet.r.pawnikar@intel.com \
--cc=thierry.reding@gmail.com \
--cc=torvalds@linux-foundation.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
all inboxes | Powered by JetHome®