From patchwork Mon Sep 24 15:06:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 147367 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp837049lji; Mon, 24 Sep 2018 08:10:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV61MrOne5mAleMGC/yHdn4bxWWRBnQ5m7xVXKaYFlgPAon2bjuYPRem702OB359CpaE7BB/0 X-Received: by 2002:a63:5f05:: with SMTP id t5-v6mr9742641pgb.352.1537801815452; Mon, 24 Sep 2018 08:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537801815; cv=none; d=google.com; s=arc-20160816; b=oKMfDx5LSpjXzrpqH1NSV4DkKpAHKxPi8R9IlswYOrl7a8MpCeO193Anp1MxpGJHch ydTk8heFzVFgFs6ng/i35sgC7uiHbE05PZUrOXobGH3DdBTFZMspNXxLACcKFw0JZpun WTqvyFRcXhSJJsLsC2NKU/+d10f2B3Pl57/b3UDdI4stBj5JgPzUNKyo3JW1yZXoG2rX QKd2rWgV7h1RjYYQnA1G1XNly7wrrA6xYeqD1b3aiw6fEj7TdMCoXQNI/Mfb1QsFC7Bv d8hFB6ztBaDubq6rV8KC25trLQS8bQuSqG+ePwoTQzKR8YH5ObVXJwzBX2L5iMv/qdmW 5yBw== 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; bh=GRJXnETCwc79uofKY5fbi9WBOoc1DkzbmjjP/miXfBA=; b=UzDU+JKT8+VNKn9l/U00GGp6dyNuJkoiBnd/4f5sbn2UFkhSCIX+65Ik27QLuA7r4u JC56qNm5PwoAPGgQvrr4bF9enpUgoLlYmoq6KSrwuYNHcJyU7aLs9fei5DzpYxYe/KLK wn+hOO6MYp185ZLGYqgGFK4RQE9wGBTYSbb4GjzN0rvIV2jL2QXLEOUKOh/WmJhV+JHQ YDXXiyel09BdjpWdSV2QXyhB8lNIE3uuRHB/PZKFKMB9591OdHzLeGkst/w15Y7CCrrg Y1D8IspWdIeDxjjVOEY/F8cdRwAK9p6cuV7s+NhgTpBXEfZFJoUnwtcXk9knK8mdtWhU A3jQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-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 u1-v6si35997532plb.291.2018.09.24.08.10.15; Mon, 24 Sep 2018 08:10:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-scsi-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-scsi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732914AbeIXVMW (ORCPT + 1 other); Mon, 24 Sep 2018 17:12:22 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12682 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728122AbeIXVMV (ORCPT ); Mon, 24 Sep 2018 17:12:21 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id ECB3D49A53F58; Mon, 24 Sep 2018 23:09:38 +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.399.0; Mon, 24 Sep 2018 23:09:32 +0800 From: John Garry To: , CC: , , , Xiang Chen , "John Garry" Subject: [PATCH 5/7] scsi: hisi_sas: unmask interrupts ent72 and ent74 Date: Mon, 24 Sep 2018 23:06:32 +0800 Message-ID: <1537801594-207139-6-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1537801594-207139-1-git-send-email-john.garry@huawei.com> References: <1537801594-207139-1-git-send-email-john.garry@huawei.com> 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 From: Xiang Chen The interrupts of ent72 and ent74 are not processed by PCIe AER handling, so we need to unmask the interrupts and process them first in the driver. 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 3995ff6..34c8f30 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -441,7 +441,7 @@ static void init_reg_v3_hw(struct hisi_hba *hisi_hba) hisi_sas_write32(hisi_hba, ENT_INT_SRC_MSK1, 0xfefefefe); hisi_sas_write32(hisi_hba, ENT_INT_SRC_MSK2, 0xfefefefe); if (pdev->revision >= 0x21) - hisi_sas_write32(hisi_hba, ENT_INT_SRC_MSK3, 0xffff7fff); + hisi_sas_write32(hisi_hba, ENT_INT_SRC_MSK3, 0xffff7aff); else hisi_sas_write32(hisi_hba, ENT_INT_SRC_MSK3, 0xfffe20ff); hisi_sas_write32(hisi_hba, CHNL_PHYUPDOWN_INT_MSK, 0x0);