OSDN Git Service

scsi: hisi_sas: Make max IPTT count equal for all hw revisions
authorJohn Garry <john.garry@huawei.com>
Mon, 5 Aug 2019 13:47:58 +0000 (21:47 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 8 Aug 2019 02:13:14 +0000 (22:13 -0400)
commit93352abc81a90314bf032038200ce96989a32c62
treea80c910918374f0fa09fd41b9c05f8cf7edff34d
parent69a76d08f2e41fa7f27bd6c4c0dce92cce01744a
scsi: hisi_sas: Make max IPTT count equal for all hw revisions

There is a small optimisation to be had by making the max IPTT the same for
all hw revisions, that being we can drop the check for read and write
pointer being the same in the get free slot function.

Change v1 hw to have max IPTT of 4096 - same as v2 and v3 hw - and
drop hisi_sas_hw.max_command_entries.

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c