<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 26.04.2017 um 22:15 schrieb Felix
Kuehling:<br>
</div>
<blockquote cite="mid:588f3a43-3f29-e733-1ffd-154878303f0f@amd.com"
type="cite">
<pre wrap="">On 17-04-25 02:28 AM, Michel Dänzer wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 22/04/17 02:05 AM, Felix Kuehling wrote:
</pre>
<blockquote type="cite">
<pre wrap="">__setup doesn't work in modules.
</pre>
</blockquote>
<pre wrap="">Right. We could build something like
drivers/video/fbdev/core/fb_cmdline.c:video_setup() into the kernel to
handle this, but it's a bit ugly, which is one reason why I was leaning
towards:
</pre>
<blockquote type="cite">
<pre wrap="">s8250_options is only compiled if the driver is not a module.
</pre>
</blockquote>
<pre wrap="">That doesn't prevent us from using __module_param_call directly, does it?
Although, that still doesn't work as I envision if only one driver's
option is set e.g. in /etc/modprobe.d/*.conf .
So, I'm starting to think we need a shared module for this, which
provides one or multiple module parameters to choose which driver to use
for CIK/SI[0], and provides the result to the amdgpu/radeon drivers.
That might make things easier for amdgpu-pro / other standalone amdgpu
versions in the long run as well, as they could add files to
/etc/modprobe.d/ choosing themselves by default, without having to
blacklist radeon.
What do you guys think?
</pre>
</blockquote>
<pre wrap="">
Hi Michel,
You said in an earlier email that it doesn't have to be convenient. With
that in mind, I went back to a minimalistic solution that doesn't need
any additional Kconfig options and only uses two module parameters (one
in radeon, one in amdgpu).
I'm attaching my WIP patches for reference (currently based on
amd-kfd-staging). For an official review I'd rebase them on
amd-staging-4.9, remove the #if-0-ed hack that didn't work out, and add
the same for SI.
Can everyone can agree that this is good enough?</pre>
</blockquote>
<br>
It's certainly good enough for me.<br>
<br>
With the disabled dummy code removed feel free to stick a
Reviewed-by: Christian König <a class="moz-txt-link-rfc2396E" href="mailto:christian.koenig@amd.com"><christian.koenig@amd.com></a> at
those patches.<br>
<br>
Regards,<br>
Christian.<br>
<br>
<blockquote cite="mid:588f3a43-3f29-e733-1ffd-154878303f0f@amd.com"
type="cite">
<pre wrap="">
Regards,
Felix
</pre>
<blockquote type="cite">
<pre wrap="">
[0] or possibly even more fine-grained in the future
</pre>
</blockquote>
<pre wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
amd-gfx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>