[PATCH] drm: Harmonize CIK ASIC support in radeon and amdgpu (v2)

Felix Kuehling felix.kuehling at amd.com
Wed Apr 19 18:59:16 UTC 2017


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


More information about the amd-gfx mailing list