On 17-04-11 10:23 PM, Michel Dänzer wrote:
> One possibility would be making each driver also parse the other
> driver's module parameter on the kernel command line. I.e. radeon would
> parse
>
>  amdgpu.enable_cik=0
I looked for a way to do this. I think I figured out the parsing part.
But I can't see where to get the kernel command line from. The command
line that is parsed by modules in load_module comes from user mode, and
I think it's pre-processed by modprobe to strip the "<module>." prefix
and only include the module-specific options.

There is a global variable saved_command_line, which is what's used for
/proc/cmdline. But that variable is not exported to modules.

Regards,
  Felix
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to