#!/bin/bash set -e PLAT_FUNCS="/usr/local/sbin/nv_scripts/plat_funcs.bash" CONF_FILE="/etc/modprobe.d/nvidia-relaxed-ordering.conf" case "$1" in configure) . ${PLAT_FUNCS} if plat_needs_gpu_relaxed_ordering_config; then echo "Configuring GPU Relaxed Ordering" echo "options nvidia NVreg_EnablePCIERelaxedOrderingMode=1" > ${CONF_FILE} else # If the platform doesn't need relaxed ordering then remove the file if it's present # This is to fix a bug where the file was added on systems that shouldn't have it echo "Platform does not require GPU Relaxed Ordering" rm -f ${CONF_FILE} fi /usr/sbin/update-initramfs -u ||: esac exit 0