]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
scsi: hisi_sas: change slot index allocation mode
authorXiang Chen <chenxiang66@hisilicon.com>
Mon, 21 May 2018 10:09:14 +0000 (18:09 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 19:13:25 +0000 (15:13 -0400)
commita54d56300fcc23b410a7794f0bbe3429dc7024d9
tree604f4b3272f4020506aa2e7fd8ba4bdd1e2dc168
parent432488cf48a8dae9f640d2350dda572a9afe593b
scsi: hisi_sas: change slot index allocation mode

BugLink: https://bugs.launchpad.net/bugs/1774466
Currently we find the lowest available empty bit in the IPTT bitmap to
allocate the IPTT for a command.

To reduce possibility of hitting unknown SoC bugs and also aid in the
debugging of those same bugs, change the allocation mode.

The next allocation method is to use the next free slot adjacent to the
most recently allocated slot, in a round-robin fashion.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit fa3be0f23139ddc4dffbfdef6bbd118e30dfcafe linux-next)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c