From patchwork Thu Aug 10 16:09:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 109828 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp2565585obb; Thu, 10 Aug 2017 08:47:28 -0700 (PDT) X-Received: by 10.84.194.165 with SMTP id h34mr13776519pld.373.1502380048719; Thu, 10 Aug 2017 08:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502380048; cv=none; d=google.com; s=arc-20160816; b=TO+O1c1e01hpn8tkrvxFmEJrHoRku0gqJqgVPog7Adsj59eXmnlF8llX7YSGK8RquP 37xd/eFA6rFcr69NGcTB8I+qDlEFileGCH6GHkCevuA2d4alTm1ynULY++BnNdhyoAaD Yu6s3YXxlFwAA8tryYxRukuRix0K9tQtXwa4vAviR4uaaofeabV9uQcQpicu6u8oPPoT QfJGNyFMRUZX6UVgD++4f7al6tu9x5PSEddmg2FHn/0SDAsNdLxO3Nzo7z9DokrOXCJ2 JNtYFExIByG+4lSoUfblznBbRbR691deSrjILnEvu6R56VpjOUu18m/XJx7ZUh3Q4Ire H/2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=tRWIwC8YCr3N8cHmuS5vJkTY4EqxrUKLApa1zNuE+80=; b=XEK2nWfupSr5p5kEHPShNBO8ldb0Fj7JQDwMXo4YIvEYwVh/M6XEZypD1inp1R2LLU xKBIBS55G1+aOwwLjHXV+LdA2uaWGqw8qEje5HtKY/hPVVCq06GFCPfH0+ni2eGLJoSx HmDqJPXxAfbvf6+BoLvp7wtwcLjjalcHYPXwrXaywQgno+FnXydtBN6Eqo4VKKTKpSdb NLX0QZKuj1dWt2lZUYilS25QoZ68Lp1kR9XMw+Umsvnl7CjDpM/AF0TlM6IcdbB3RduZ YLbIXJZj+FqSCx7XpCWksqXfsqKA2Lv4coYL+OnPUYZ33XvnhID2Ssl1LAcPBwIWu5vs lMzA== 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 i130si4325688pfe.224.2017.08.10.08.47.28; Thu, 10 Aug 2017 08:47:28 -0700 (PDT) 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 S1753238AbdHJPrZ (ORCPT + 25 others); Thu, 10 Aug 2017 11:47:25 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3056 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752905AbdHJPmw (ORCPT ); Thu, 10 Aug 2017 11:42:52 -0400 Received: from 172.30.72.59 (EHLO DGGEMS402-HUB.china.huawei.com) ([172.30.72.59]) by dggrg05-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DEY38529; Thu, 10 Aug 2017 23:42:48 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.301.0; Thu, 10 Aug 2017 23:42:39 +0800 From: John Garry To: , CC: , , , , Xiang Chen , John Garry Subject: [PATCH 12/19] scsi: hisi_sas: fix v3 hw channel interrupt processing Date: Fri, 11 Aug 2017 00:09:37 +0800 Message-ID: <1502381384-219889-13-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502381384-219889-1-git-send-email-john.garry@huawei.com> References: <1502381384-219889-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090206.598C7EF8.00AB, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 4ffad1809cb3f571485ad1b27cf7279d Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiang Chen The channel interrupt is to process all the interrupts except PHY UP/DOWN and broadcast interrupt. So we need to clear all the interrupts except those 3 interrupts after processing channel interrupts. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index bb79b776..a8bd557 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -1260,7 +1260,7 @@ static irqreturn_t int_chnl_int_v3_hw(int irq_no, void *p) if (irq_msk & (2 << (phy_no * 4)) && irq_value0) { hisi_sas_phy_write32(hisi_hba, phy_no, CHL_INT0, irq_value0 - & (~CHL_INT0_HOTPLUG_TOUT_MSK) + & (~CHL_INT0_SL_RX_BCST_ACK_MSK) & (~CHL_INT0_SL_PHY_ENABLE_MSK) & (~CHL_INT0_NOT_RDY_MSK)); }