Skip to content

Commit

Permalink
setup-nvidia: Modprobe video.ko for amd64
Browse files Browse the repository at this point in the history
Since we added CONFIG_I915 to our amd64 kernel, CONFIG_ACPI_VIDEO=m is enabled
and causes the nvidia driver to compile in some code that depends on it. Since
we don't have depmod information and we insmod the nvidia module - manually
load the required module. The '|| true' lets this line pass on arm64.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
  • Loading branch information
jepio committed Feb 27, 2025
1 parent bd8d867 commit 3a64222
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ function install_and_load() {
ldconfig

modprobe -a i2c_core ipmi_msghandler ipmi_devintf
# This is needed on amd64 due to CONFIG_ACPI_VIDEO=m
modprobe -q video || true

pushd "/opt/nvidia/${NVIDIA_CURRENT_INSTALLATION}/usr/lib/modules/$(uname -r)/video/"
insmod nvidia.ko
Expand Down

0 comments on commit 3a64222

Please # to comment.