From: Dragan Simic <dsimic@manjaro.org>
To: Maxime Ripard <mripard@kernel.org>
Cc: Qiang Yu <yuq825@gmail.com>,
dri-devel@lists.freedesktop.org, lima@lists.freedesktop.org,
maarten.lankhorst@linux.intel.com, tzimmermann@suse.de,
airlied@gmail.com, daniel@ffwll.ch, linux-kernel@vger.kernel.org,
Philip Muller <philm@manjaro.org>,
Oliver Smith <ollieparanoid@postmarketos.org>,
Daniel Smith <danct12@disroot.org>,
stable@vger.kernel.org
Subject: Re: [PATCH] drm/lima: Mark simple_ondemand governor as softdep
Date: Tue, 18 Jun 2024 12:33:36 +0200 [thread overview]
Message-ID: <4813a6885648e5368028cd822e8b2381@manjaro.org> (raw)
In-Reply-To: <20240618-great-hissing-skink-b7950e@houat>
Hello Qiang and Maxime,
On 2024-06-18 10:13, Maxime Ripard wrote:
> On Tue, Jun 18, 2024 at 04:01:26PM GMT, Qiang Yu wrote:
>> On Tue, Jun 18, 2024 at 12:33 PM Qiang Yu <yuq825@gmail.com> wrote:
>> >
>> > I see the problem that initramfs need to build a module dependency chain,
>> > but lima does not call any symbol from simpleondemand governor module.
>> > softdep module seems to be optional while our dependency is hard one,
>> > can we just add MODULE_INFO(depends, _depends), or create a new
>> > macro called MODULE_DEPENDS()?
I had the same thoughts, because softdeps are for optional module
dependencies, while in this case it's a hard dependency. Though,
I went with adding a softdep, simply because I saw no better option
available.
>> This doesn't work on my side because depmod generates modules.dep
>> by symbol lookup instead of modinfo section. So softdep may be our
>> only
>> choice to add module dependency manually. I can accept the softdep
>> first, then make PM optional later.
I also thought about making devfreq optional in the Lima driver,
which would make this additional softdep much more appropriate.
Though, I'm not really sure that's a good approach, because not
having working devfreq for Lima might actually cause issues on
some devices, such as increased power consumption.
In other words, it might be better to have Lima probing fail if
devfreq can't be initialized, rather than having probing succeed
with no working devfreq. Basically, failed probing is obvious,
while a warning in the kernel log about no devfreq might easily
be overlooked, causing regressions on some devices.
> It's still super fragile, and depends on the user not changing the
> policy. It should be solved in some other, more robust way.
I see, but I'm not really sure how to make it more robust? In
the end, some user can blacklist the simple_ondemand governor
module, and we can't do much about it.
Introducing harddeps alongside softdeps would make sense from
the design standpoint, but the amount of required changes wouldn't
be trivial at all, on various levels.
next prev parent reply other threads:[~2024-06-18 10:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-17 20:22 [PATCH] drm/lima: Mark simple_ondemand governor as softdep Dragan Simic
2024-06-18 4:33 ` Qiang Yu
2024-06-18 8:01 ` Qiang Yu
2024-06-18 8:13 ` Maxime Ripard
2024-06-18 10:33 ` Dragan Simic [this message]
2024-06-18 19:22 ` Dragan Simic
2024-06-25 18:15 ` Dragan Simic
2024-06-26 1:11 ` Qiang Yu
2024-06-26 6:49 ` Dragan Simic
2024-06-30 10:04 ` Qiang Yu
2024-07-25 8:21 ` Dragan Simic
2024-07-26 6:07 ` Qiang Yu
2024-07-26 8:03 ` Dragan Simic
2024-07-26 8:54 ` Qiang Yu
2024-07-26 9:25 ` Dragan Simic
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=4813a6885648e5368028cd822e8b2381@manjaro.org \
--to=dsimic@manjaro.org \
--cc=airlied@gmail.com \
--cc=danct12@disroot.org \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=lima@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=ollieparanoid@postmarketos.org \
--cc=philm@manjaro.org \
--cc=stable@vger.kernel.org \
--cc=tzimmermann@suse.de \
--cc=yuq825@gmail.com \
/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