]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
scsi: smartpqi: fix critical ARM issue reading PQI index registers
authorKevin Barnett <kevin.barnett@microsemi.com>
Mon, 18 Jun 2018 18:23:00 +0000 (13:23 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 20 Jun 2018 02:02:25 +0000 (22:02 -0400)
commitdac12fbc7b0a433a160b89212a56e155c94f3a80
tree7609095a2f0d61330420c7082e94e8de95e2d69d
parent9f8d05fa98442de78d1ab30235b0cc656ed7aff0
scsi: smartpqi: fix critical ARM issue reading PQI index registers

Use the readl() kernel function to read all index registers. For ARM
systems, this function includes a read memory barrier that eliminates ci/pi
corruption.

Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Tested-by: Shunyong Yang <shunyong.yang@hxt-semitech.com>
Signed-off-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi.h
drivers/scsi/smartpqi/smartpqi_init.c