]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
scsi: hisi_sas: print PHY RX errors count for later revision of v3 hw
authorXiaofei Tan <tanxiaofei@huawei.com>
Thu, 28 Feb 2019 14:50:59 +0000 (22:50 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 1 Apr 2019 19:08:07 +0000 (14:08 -0500)
commit12edab8000acea1732ed6622907299036c8eb01c
tree84a05f39cb56804985702115fc5bd6ff630bd6a6
parent0a033de06edf4c618f498afa9986b7aa19e797db
scsi: hisi_sas: print PHY RX errors count for later revision of v3 hw

BugLink: https://bugs.launchpad.net/bugs/1822385
The later revision of v3 hw has added an function of interrupt coalesce
according to time for PHY RX errors. We set the coalesce time to 1s.  Then
we print PHY RX errors count when PHY RX errors happen, and don't need to
worry that there may be too much log prints.

Besides, we use hisi_sas_phy.lock to protect error count value. Because we
update them by calling phy_get_events_v3_hw(), which is also used by core
driver (for get PHY events function).

We relocate phy_get_events_v3_hw() to avoid a further declaration.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit aaeb82323d12f3b61015878e035d74600e1f2c85)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c