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: 150646 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp209752ljp; Fri, 9 Nov 2018 06:05:29 -0800 (PST) X-Google-Smtp-Source: AJdET5dQsQGs2GVYLw4jOSlQydME9KsfyL2pjWdrUZdHkdv4Djyq4NOrtRdGCyuE5LKrwcXe5rZm X-Received: by 2002:a62:7982:: with SMTP id u124-v6mr8928672pfc.95.1541772329406; Fri, 09 Nov 2018 06:05:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541772329; cv=none; d=google.com; s=arc-20160816; b=MclNqYtMES7zxKyrfjUTgfLe5Qsshf3ztFJWxtnA8oVgEeolUt4xIZv0fxdzGcfKas cFzzZY5CvqkAfDsUf0d2ONaKNieVdrzu87i4DkotkZUQaq846wTpAngvcxGySLH33Gs7 nQaIeP0xMkD2dUgTQBXO18xJTTxtWGXKoz0CKC7dEIWQzwqPL+R/NQdpu+OZeuD80TWt /NQtsd3B31vZR5eJEaZOvhIZm/EvU4zDWn1V21Y+f93u82Ebvb+bVQ12zgirijCR4b1u 6ls97Zt8qzp5/CGIpUOvekzRNWznl1Zx86mJPfAgc9Hh33swif0VZdELh1UryJaXcnuc wzjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=VCaB/dSodlqAGGpYsF4FB0QrkDrZGTacWZKyW4V1xKo=; b=JlKA1QMuRpLlnfm4oH94rwDvmjjxSzFyQxDvF57i++gnJNzGQ1PEVz/cWlSgZjVemK DmKL5hETcvEH9cFMjEP4jzyU57i2YYsMjYXe6KBi81yiBJ0bGGr8CpuKIy7Xe/5pPoR7 E+JRzRHTR18wiVb74NK72rKzghOI3Jk/9fXONr9L5YL6VhVW0WVS9VBQyY7z0rikdxot QMBzweYRmsWCe2xhcixf4X1s5BzmjwsZOB0R+dxdXfdAZXqCWEFbDNZx17J0WDPFaPOb TidGUVAa/ZAos1JSRTlzxyLQ2bJeQM6mST76gF81E1YzrCZvZUA5WTJn9k40IrkU63RM N6Yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l184si6806759pgd.523.2018.11.09.06.05.22; Fri, 09 Nov 2018 06:05:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728188AbeKIXpt (ORCPT + 32 others); Fri, 9 Nov 2018 18:45:49 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 1.9.1