From 3a642227017c06027c521352f325d0aa26611b16 Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Thu, 27 Feb 2025 13:57:04 +0100 Subject: [PATCH] setup-nvidia: Modprobe video.ko for amd64 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 --- .../x11-drivers/nvidia-drivers/files/bin/setup-nvidia | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/x11-drivers/nvidia-drivers/files/bin/setup-nvidia b/sdk_container/src/third_party/coreos-overlay/x11-drivers/nvidia-drivers/files/bin/setup-nvidia index 4465d601f59..febf56fd00f 100644 --- a/sdk_container/src/third_party/coreos-overlay/x11-drivers/nvidia-drivers/files/bin/setup-nvidia +++ b/sdk_container/src/third_party/coreos-overlay/x11-drivers/nvidia-drivers/files/bin/setup-nvidia @@ -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