Skip to content

nvidiactl: Load drm modules #17

Merged
merged 1 commit into from
Dec 15, 2017
Merged

nvidiactl: Load drm modules #17

merged 1 commit into from
Dec 15, 2017

Conversation

donald
Copy link
Collaborator

@donald donald commented Dec 15, 2017

We are going to change the kernel DRM modules from static to dynamic.
nvidia_drm.ko requires drm and drm_kms_helper. If theses are dynamic
modules, probe them before we load the nvidia modules.

We are going to change the kernel DRM modules from static to dynamic.
nvidia_drm.ko requires drm and drm_kms_helper. If theses are dynamic
modules, probe them before we load the nvida modules.
@donald donald assigned donald and thomas and unassigned donald Dec 15, 2017
@@ -48,6 +48,10 @@ nvver=$(readlink ${leglink})

rm -f /node/usr_share_mxgfx
ln -sf /usr/share/nvidia/${nvver} /node/usr_share_mxgfx

test -e /lib/modules/$kver/kernel/drivers/gpu/drm/drm.ko && modprobe drm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing the force switch --force to modprobe should also work, shouldn’t work. But it’s not important.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the man page says, "so using this option is dangerous unless you know what you are doing". So obviously this is not an option to us 🤣

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just read up to dangerous and thought that’s good. ;-)

@pmenzel
Copy link
Contributor

pmenzel commented Dec 15, 2017

Looks good to me.

@pmenzel pmenzel merged commit c6d1964 into master Dec 15, 2017
@thomas
Copy link
Contributor

thomas commented Dec 15, 2017

Did I miss something important about the --force switch ?

@pmenzel
Copy link
Contributor

pmenzel commented Dec 15, 2017 via email

@thomas
Copy link
Contributor

thomas commented Dec 15, 2017

grin

@donald donald deleted the add-drm-modprobe branch March 14, 2018 09:36
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants