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
Some sysfs objects of the dfl/intel-m10bmc driver can return -EINVAL when read.
In this case, reading the fpga_boot_page file results in -EINVAL if PMCI_CONFIGED bit of the PMCI CSR M10BMC_PMCI_FPGA_CONF_STS word is 0.
(i.e. the FPGA failed to be configured from FLASH, but is configured from JTAG.)
Some sysfs objects of the dfl/intel-m10bmc driver can return
-EINVAL
when read.In this case, reading the
fpga_boot_page
file results in-EINVAL
ifPMCI_CONFIGED
bit of the PMCI CSRM10BMC_PMCI_FPGA_CONF_STS
word is 0.(i.e. the FPGA failed to be configured from FLASH, but is configured from JTAG.)
https://github.com/OFS/linux-dfl/blob/6b0d820d436dda1e5949205a8f081fe0360c8430/drivers/fpga/intel-m10-bmc-sec-update.c#L1105
sysfs_node#value()
method opens and reads thefpga_boot_page
file.It handles and raises
IOError
.It does not handle
OSError
from-EINVAL
.opae-sdk/python/opae.admin/opae/admin/sysfs.py
Lines 151 to 171 in 5b22807
fpgasupdate
callssysfs_node#value()
without handlingOSError
orIOError
, so it crashes if the FPGA is configured from JTAG.opae-sdk/python/opae.admin/opae/admin/tools/fpgasupdate.py
Line 841 in 5b22807
To fix this, some error handling needs to be implemented, either in
sysfs_node
class orfpgasupdate.py
.The text was updated successfully, but these errors were encountered: