From: Darren Hart <dvhart@infradead.org>
To: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Jean Delvare <jdelvare@suse.de>,
Andy Shevchenko <andy@infradead.org>,
platform-driver-x86@vger.kernel.org,
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
Peter Zijlstra <peterz@infradead.org>
Subject: Re: intel_turbo_max_3 non-modularity
Date: Thu, 27 Apr 2017 14:48:43 -0700 [thread overview]
Message-ID: <20170427214843.GB29261@fury> (raw)
In-Reply-To: <20170424140218.GR16239@windriver.com>
On Mon, Apr 24, 2017 at 10:02:18AM -0400, Paul Gortmaker wrote:
> [intel_turbo_max_3 non-modularity] On 24/04/2017 (Mon 11:31) Jean Delvare wrote:
>
> > Hi all,
> >
> > I see that the intel_turbo_max_3 driver was originally supposed to be
> > modular, and then support for that possibility was removed. Is there
> > any fundamental reason why this driver can't be built as a module?
Thanks for asking the question Jean,
+Srinivas
+Peterz
>
> Re-reading the thread, it was stated that the driver needed exports of
> some scheduler functions that weren't currently exported. To me, that
> means one of two things -- the driver is poking at scheduler internals
> that it shouldn't be and needs to be modified accordingly, or that
> someone needs to convince the sched folks that there is valid use cases
> for exports of these functions, and _then_ enable modularity.
>
> I didn't try to build it as a module, so I can't say what the sched
> dependencies were, or if they looked valid. But I have seen the sched
Reverting Paul's non-module patch and adding "tristate" "default m", it builds
cleanly, but fails modpost:
ERROR: "sched_set_itmt_core_prio" [drivers/platform/x86/intel_turbo_max_3.ko] undefined!
ERROR: "sched_set_itmt_support" [drivers/platform/x86/intel_turbo_max_3.ko] undefined!
Peter, Google is failing me for a statement from you on EXPORT_SYMBOL'ing sched_
functions, so can you weigh in here? Have you and Srinivas already discussed
this and determined it was unacceptable to export the two sched itmt related
functions above?
Thanks,
> folks being not impressed at how certain arch specific PM/freq stuff has
> been implemented in the past, which is why I mention it as a possibility.
>
> P.
> --
>
> >
> > I am asking because the description of the driver says:
> >
> > "This driver is only required when the system is not using Hardware
> > P-States (HWP). In HWP mode, priority can be read from ACPI tables."
> >
> > This pretty much implies that this driver will be useless on a wide
> > range (maybe even the majority?) of systems. Given this, not being
> > forced to build the driver into the kernel would seem preferable.
> >
> > Thanks, -- Jean Delvare SUSE L3 Support
>
--
Darren Hart
VMware Open Source Technology Center
next prev parent reply other threads:[~2017-04-27 21:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-24 9:31 intel_turbo_max_3 non-modularity Jean Delvare
2017-04-24 14:02 ` Paul Gortmaker
2017-04-27 21:48 ` Darren Hart [this message]
2017-04-27 23:18 ` Srinivas Pandruvada
2017-04-28 7:55 ` Peter Zijlstra
2017-04-28 13:20 ` Jean Delvare
2017-04-28 13:46 ` Peter Zijlstra
2017-04-28 15:49 ` Darren Hart
2017-04-28 16:34 ` Peter Zijlstra
2017-04-28 20:58 ` Darren Hart
2017-04-28 21:39 ` Peter Zijlstra
2017-04-28 8:40 ` Jean Delvare
2017-04-28 20:35 ` Srinivas Pandruvada
2017-04-28 7:49 ` Jean Delvare
2017-04-28 17:44 ` Paul Gortmaker
2017-04-28 20:49 ` Darren Hart
2017-04-28 21:34 ` Peter Zijlstra
2017-04-28 22:51 ` Darren Hart
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=20170427214843.GB29261@fury \
--to=dvhart@infradead.org \
--cc=andy@infradead.org \
--cc=jdelvare@suse.de \
--cc=paul.gortmaker@windriver.com \
--cc=peterz@infradead.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=srinivas.pandruvada@linux.intel.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