mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
am: disable idle d3 (#10428)
This commit is contained in:
parent
252c1dc737
commit
cfa5c1cac6
1 changed files with 1 additions and 1 deletions
|
|
@ -691,7 +691,7 @@ class PCIIface:
|
|||
if getenv("VFIO", 1):
|
||||
try:
|
||||
if first_dev:
|
||||
if not FileIOInterface.exists("/sys/module/vfio"): os.system("sudo modprobe vfio-pci")
|
||||
if not FileIOInterface.exists("/sys/module/vfio"): os.system("sudo modprobe vfio-pci disable_idle_d3=1")
|
||||
|
||||
FileIOInterface("/sys/module/vfio/parameters/enable_unsafe_noiommu_mode", os.O_RDWR).write("1")
|
||||
PCIIface.vfio_fd = FileIOInterface("/dev/vfio/vfio", os.O_RDWR)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue