Browse Source

README.ASIC: Monarch: Need to do new_id for every affected device, and only after unbinding them

Luke Dashjr 11 years ago
parent
commit
b8f35454e3
1 changed files with 4 additions and 3 deletions
  1. 4 3
      README.ASIC

+ 4 - 3
README.ASIC

@@ -210,10 +210,8 @@ To enable uio on your cards, you may need to do:
     echo 1cf9 0001 | sudo tee /sys/bus/pci/drivers/uio_pci_generic/new_id
     echo 1cf9 0001 | sudo tee /sys/bus/pci/drivers/uio_pci_generic/new_id
 
 
 Enabling vfio is similar, but more complicated, but allows you to run BFGMiner
 Enabling vfio is similar, but more complicated, but allows you to run BFGMiner
-without root privileges. First, load the kernel module and tell it to accept the
-Monarch:
+without root privileges. First, load the kernel module:
     sudo modprobe vfio-pci
     sudo modprobe vfio-pci
-    echo 1cf9 0001 | sudo tee /sys/bus/pci/drivers/vfio-pci/new_id
 Next, identify what the device ids are for your card(s):
 Next, identify what the device ids are for your card(s):
     lspci -D | grep 1cf9  # the first number of each line is the device id
     lspci -D | grep 1cf9  # the first number of each line is the device id
 From that, you can identify its IOMMU group, and list all devices sharing that
 From that, you can identify its IOMMU group, and list all devices sharing that
@@ -223,6 +221,9 @@ group:
 All of the devices listed (other than the Monarch), if any, will need to be
 All of the devices listed (other than the Monarch), if any, will need to be
 disabled and unbound! To do that, use:
 disabled and unbound! To do that, use:
     echo "$DEVICE_ID" | sudo tee "/sys/bus/pci/devices/$DEVICE_ID/driver/unbind"
     echo "$DEVICE_ID" | sudo tee "/sys/bus/pci/devices/$DEVICE_ID/driver/unbind"
+    echo "$DEVICE_CODE" | sudo tee /sys/bus/pci/drivers/vfio-pci/new_id
+Note that $DEVICE_ID should be something like "0000:01:00.0" and $DEVICE_CODE is
+something like "1cf9 0001" (this example is the Monarch itself).
 If you want to run BFGMiner as a normal user:
 If you want to run BFGMiner as a normal user:
     chown "$USERNAME" "/dev/vfio/$IOMMU_GROUP_ID"
     chown "$USERNAME" "/dev/vfio/$IOMMU_GROUP_ID"
 Depending on your system, you may also need to do:
 Depending on your system, you may also need to do: