Skip to content

Commit

Permalink
nvidiactl: Load drm modules
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
donald committed Dec 15, 2017
1 parent c849508 commit 1905400
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nvidiactl/nvidiactl
Original file line number Diff line number Diff line change
Expand Up @@ -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
test -e /lib/modules/$kver/kernel/drivers/gpu/drm/drm_kms_helper.ko && modprobe drm_kms_helper

insmod ${leglink}/nvidia.ko

# Count the number of NVIDIA controllers found.
Expand Down

0 comments on commit 1905400

Please sign in to comment.