blob: 2fa585bb9ca9fd2d8cda80f0727418a2335ce5e9 [file] [log] [blame] [edit]
# Copyright 2023 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Whenever NVIDIA dGPU is added, let /sbin/dgpu.sh determine which module to
# bind to the dGPU device. That is whether to bind vfio_pci or nvidia module.
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", RUN+="/sbin/dgpu.sh -a"
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", RUN+="/sbin/dgpu.sh -a"