OFS / linux-dfl-backport

Backport version of the linux-dfl (Device Feature List) kernel driver for FPGA devices. This is an out-of-tree driver, designed to be built, packaged, and installed as a stand-alone set of driver modules.
GNU General Public License v2.0
3 stars 11 forks source link

mfd: intel-m10-bmc: fix concurrency issue #44

Closed Figo-zhang closed 2 years ago

Figo-zhang commented 2 years ago

There is an concurrency issue reported that read the flash content when flashing the fpga image.

The root cause is that the m10bmc_pmci_set_flash_host_mux() function will fail when flashing the fpga image, because this is hardware concurrency mechanism. After m10bmc_pmci_set_flash_host_mux() fail, we should release the mutex lock before return error.

Signed-off-by: Tianfei Zhang tianfei.zhang@intel.com

Figo-zhang commented 2 years ago

This issue can be reproduced by:

  1. using the fpgasupdate to flash fpga bin file
  2. at the same time, open a new terminate, run "fpgainfo fme"