You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @kindrt
Sorry for the delay of the response. The main reason is that with CAPI the FPGA is intended to be used by several process/user and that resetting or reprogramming the FPGA needed to have a restricted access.
The problem is that the reset command/file is recreated by the kernel every time we mount a new card, meaning resetting the PCIe link. The rights are defined at the recreation obviously. I understand from the Linux guys that this is inherited from PCIe and we cannot do much on that....except that with Ubuntu everybody has access to source file, and can modify and adapt his code. We have just tested that successful. However for RHEL, we don't have access to the source files of the kernel.
A possible solution would be that root has a crontab setting chmod ugo+w on this /sys/class/cxl/card0/reset file. I don't know if there is a way to do that regularly or trigger on the recreation event of this reset file.
This may need some slight modification in the capi-flash/capi-reset files
Why does one need to be root to run capi-flash-script.sh? Is there a particular technical reason for this? Or is this just a safety requirement?
The text was updated successfully, but these errors were encountered: