From patchwork Fri Nov 9 14:06:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 10675997 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E092713B0 for ; Fri, 9 Nov 2018 14:05:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D04E92EA87 for ; Fri, 9 Nov 2018 14:05:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C49142EA94; Fri, 9 Nov 2018 14:05:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A2A72EA87 for ; Fri, 9 Nov 2018 14:05:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728169AbeKIXps (ORCPT ); Fri, 9 Nov 2018 18:45:48 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:14640 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727941AbeKIXps (ORCPT ); Fri, 9 Nov 2018 18:45:48 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 9C79AE1B55FC4; Fri, 9 Nov 2018 22:04:58 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.408.0; Fri, 9 Nov 2018 22:04:54 +0800 From: John Garry To: , CC: , , , John Garry Subject: [PATCH 0/5] hisi_sas: Interrupt aggregation support Date: Fri, 9 Nov 2018 22:06:31 +0800 Message-ID: <1541772396-161814-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset adds 2 forms of interrupt aggregation support to the driver: - Interrupt converge: Interrupts from all completion queues can be reported through completion queue #0 interrupt only. - Interrupt coalesce: Ability to set timeout period at which we report completions on that queue (as an interrupt). The HW report completion interrupt as either happens: - configurable threshold of completions occur - a timeout, so we don't pend indefinitely until the threshold is reached There is also 2 minor patches to fix some register setting and also rearrange some code for proper condition checking. Xiang Chen (5): scsi: hisi_sas: Create separate host attributes per HBA scsi: hisi_sas: Add support for interrupt converge for v3 hw scsi: hisi_sas: Add support for interrupt coalescing for v3 hw scsi: hisi_sas: Relocate some codes to avoid an unused check scsi: hisi_sas: change the time of SAS SSP connection drivers/scsi/hisi_sas/hisi_sas.h | 3 +- drivers/scsi/hisi_sas/hisi_sas_main.c | 50 ++++++------ drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 7 +- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 7 +- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 138 +++++++++++++++++++++++++++++++-- 5 files changed, 168 insertions(+), 37 deletions(-)