
Magma
EB7-X8G2 | Chapter 4 Install PCIe Cards
45
Hot-Plug/Swap Procedure for Linux
1.
Set up a console as super user and run: “tail …” to receive messages.
sudo –f /var/log/messages
2.
Open another console as super user and run: “modprobe pciehp”
sudo /sbin/modprobe pciehp
3.
If there are any error messages in the first console run: “modprobe pciehp pciehp_force=1”
sudo /sbin/modprobe pciehp pciehp_force=1
4.
Verify that there are entries in the /sys/bus/pci/slots directory and determine which slot corresponds to the
chassis. The entries shown may not correspond to the slot numbers labeled on the chassis, therefore
this verification is required.
cd /sys/bus/pci/slots/
Note:
For SUSE 11, slots may be reported as 1,2,3...
For SUSE 10 sp2, slots may be reported as:
Segement:Bus:Device:Function.
5.
In order to determine whether power is applied to a slot run:
cat <./slot filename>/power
1 – Means the slot is powered;
0 – Means the slot does not have power
6.
In order to turn off power to a slot run:
echo 0 > <./slot filename>/power
After the PCIe card has been removed and replaced, turning on the power to the slot is done by running:
echo 1 > <./slot filename>/power
Note: Different Linux versions and platforms may perform differently. Also, older versions, such as Redhat ver. 4 or
(2.4.x do not support this feature).