In each of the PCIe Slot3-Slot6, we installed a PCIe card of the same type. When booting Linux, each PCIe card is assigned to a corresponding device /dev/videoX. Unfortunately, the order of the corresponding device numbers are not identically with the Slot number of the mainboard itself.
The assignment is as follows:
Mainboard Slot3 -> /dev/video3
Mainboard Slot4 -> /dev/video0
Mainboard Slot5 -> /dev/video2
Mainboard Slot6 -> /dev/video1
Is there a way to make the slotnumbers the same as the identity in Linux?
Yes, Linux Kernel scans PCI devices by itself. Even BIOS can change the PCI bus number ordering.
Customer can try to write udev rules to rename the /dev/video* or make new symbol links.
http://www.reactivated.net/writing_udev_rules.html
Mainboard Slot3 -> PCI Bus ID 04:00.0
Mainboard Slot4 -> PCI Bus ID 01:00.0
Mainboard Slot5 -> PCI Bus ID 03:00.0
Mainboard Slot6 -> PCI Bus ID 02:00.0
# udev rules example for RHEL5, create a text file "10-local.rules" in /etc/udev/rules.d/
# After everything is done, reboot OS to apply new udev settings.
#
# Please change ???? to match your device's PCI vendor ID and device ID
KERNEL=="0000:04:00.0", SUBSYSTEM=="pci", SYSFS{vendor}=="0x????", SYSFS{device}=="0x????", NAME="video0"
KERNEL=="0000:01:00.0", SUBSYSTEM=="pci", SYSFS{vendor}=="0x????", SYSFS{device}=="0x????", NAME="video1"
KERNEL=="0000:03:00.0", SUBSYSTEM=="pci", SYSFS{vendor}=="0x????", SYSFS{device}=="0x????", NAME="video2"
KERNEL=="0000:02:00.0", SUBSYSTEM=="pci", SYSFS{vendor}=="0x????", SYSFS{device}=="0x????", NAME="video3"