lnls-dig / halcs

Hardware Abstraction Layer for Control Systems
GNU General Public License v3.0
1 stars 4 forks source link

[CLOSED] [dev_mngr] Monitor the removal of devices and terminate the respective dev_io #51

Closed lerwys closed 8 years ago

lerwys commented 8 years ago

Issue by lerwys Thursday Nov 27, 2014 at 19:17 GMT Originally opened as https://github.com/lnls-dig/bpm-sw/issues/51


Problem: The "hot-unplug" dopes not work well with the software, as the deletion of the files in the /dev folder is not monitored.

Solution: As a intermediate solution to the hot-unplug problem, we can monitor the removal of the /dev files and terminate the respective dev_io

lerwys commented 8 years ago

Comment by lerwys Saturday Jan 30, 2016 at 13:14 GMT


This is fixed using a distribution + MicroTCA MCH which correctly retransmits hotplug events to the OS. The Schroff+NAT solution does this correctly. With that in place, we have a least two options: using a udev script with ADD and REMOVE targets (https://github.com/lnls-dig/fpga_pcie_driver/blob/master/drivers/pcie/etc/udev/rules.d/60-udev_fpga_nonsystemd.rules) or using a systemd appoach binding a service to a device (https://github.com/lnls-dig/fpga_pcie_driver/blob/master/drivers/pcie/etc/udev/rules.d/60-udev_fpga.rules and https://github.com/lnls-dig/bpm-sw/blob/master/scripts/systemd/etc/systemd/system/bpm-sw-board%40.service).