scsi: smartpqi: Close write read holes
Insert a minimum 1 millisecond delay after writing to a register before reading from it. SIS and PQI registers that can be both written to and read from can return stale data if read from too soon after having been written to. There is no read/write ordering or hazard detection on the inbound path to the MSGU from the PCIe bus, therefore reads could pass writes. Link: https://lore.kernel.org/r/165730602555.177165.11181012469428348394.stgit@brunhildaReviewed-by: NScott Teel <scott.teel@microchip.com> Signed-off-by: NMike McGowen <mike.mcgowen@microchip.com> Co-developed-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
Showing
想要评论请 注册 或 登录