Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:pcie:hot-reset-linux [2019/04/16 23:00] alex |
en:pcie:hot-reset-linux [2019/04/16 23:01] alex |
||
---|---|---|---|
Line 15: | Line 15: | ||
I am not aware of any 'nice' method for triggering a hot reset (there is no sysfs entry for that). However, it is possible to use setpci to do so with the following script: | I am not aware of any 'nice' method for triggering a hot reset (there is no sysfs entry for that). However, it is possible to use setpci to do so with the following script: | ||
+ | <code sh> | ||
+ | #!/bin/bash | ||
- | <code sh> | + | dev=$1 |
+ | if [ -z "$dev" ]; then | ||
+ | echo "Error: no device specified" | ||
+ | exit 1 | ||
+ | fi | ||
</code> | </code> |