From patchwork Fri Apr 26 09:37:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shivasharan Srikanteshwara X-Patchwork-Id: 10918955 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 975DC1390 for ; Fri, 26 Apr 2019 09:39:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 873E528D56 for ; Fri, 26 Apr 2019 09:39:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7AD8A28D6A; Fri, 26 Apr 2019 09:39:15 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 26D9928D56 for ; Fri, 26 Apr 2019 09:39:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726308AbfDZJjO (ORCPT ); Fri, 26 Apr 2019 05:39:14 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39966 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbfDZJjO (ORCPT ); Fri, 26 Apr 2019 05:39:14 -0400 Received: by mail-pl1-f195.google.com with SMTP id b3so1293610plr.7 for ; Fri, 26 Apr 2019 02:39:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lwR4lynoFKo2yobFL3J9rGs6Isbx6us6LnAh4RykX48=; b=Ut0a1w/Gt4mVEYhp4T8s9CAlmDlO8UwoXNG5NLxbK0kFxfv+L7Pfef8M1oheqLyycC x8P2HvdHMbsWai0jbdEvR6BvHqfbqJNBQqgiwtObLlOcM3+ZZzNm24fLbmbIemdMAMyb UUDkoDLPmdly5q8DtSliTg1j0PZRKXTymExXk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lwR4lynoFKo2yobFL3J9rGs6Isbx6us6LnAh4RykX48=; b=IWglrm9K+i2YwgfIo1W6Ka36wVGdrIVp9t0rtmvUAHhgZBa3QmvnQUWGRw1kjxLu/x bEciJBdXhEjWe2no6pk5Kp2Kft5631oQaWphoSbxRBUYgtrCIXgCQau9ZxZt118zBQ/b 9El05nd45ZDpGAYKWNOYiM/Fp/NHjJwJ532Fm1GyMpQfkx5sjqptuZ1MvCQFaT8tQSXg WzG2ie96EpriglRCF5HWWhVQorocYMyrKe7I9uYprYWJcIFOqpCsH/R2L8M0kRL8GKj2 zCPSCMhVNUtcaQXuNgOjXFJ+uYDXp+1IpCvaYBGJOIsF1U/6ehnBqyhx3Z/tiXOIneP2 fnSQ== X-Gm-Message-State: APjAAAXgKIbAGPYibtkpSwa0K2xz1jtytm1COTU6KEND6lRstg8M2Uwo adJqMis2zFQFygev1uUwTnb5/jQ+PiCmcW64uvF7h/rp+pJLNZ7SlHQpZdtXVn6R3Tvb+rOzrvl 2sHekPgiHS6WSaUG4JKCmJOZVt53MRiEw2PZlycAGN4bscJEBD2fJzUs1e037dI3MveQIrbTJVl bKh3CC+SSwMFSVvGhnqwha X-Google-Smtp-Source: APXvYqzkfKWFcfF5GptafAQpRoR/P1wS7JAzsOr2VrKvU1dCuWgGwbyMqTXEBvrTEBifolFV8LNDyg== X-Received: by 2002:a17:902:380c:: with SMTP id l12mr44515140plc.320.1556271553579; Fri, 26 Apr 2019 02:39:13 -0700 (PDT) Received: from dhcp-135-24-192-142.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id r4sm37994649pgl.69.2019.04.26.02.39.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Apr 2019 02:39:12 -0700 (PDT) From: Shivasharan S To: linux-scsi@vger.kernel.org Cc: kashyap.desai@broadcom.com, sumit.saxena@broadcom.com, kiran-kumar.kasturi@broadcom.com, sankar.patra@broadcom.com, sasikumar.pc@broadcom.com, chandrakanth.patil@broadcom.com, Shivasharan S Subject: [PATCH 16/21] megaraid_sas: Print firmware interrupt status Date: Fri, 26 Apr 2019 02:37:10 -0700 Message-Id: <1556271435-27252-17-git-send-email-shivasharan.srikanteshwara@broadcom.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1556271435-27252-1-git-send-email-shivasharan.srikanteshwara@broadcom.com> References: <1556271435-27252-1-git-send-email-shivasharan.srikanteshwara@broadcom.com> 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 Add a print to dump the interrupt status in system log for debugging. Signed-off-by: Sumit Saxena Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index 5a82e5ea420b..2fa9941514d9 100644 --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c @@ -202,7 +202,8 @@ megasas_enable_intr_fusion(struct megasas_instance *instance) writel(~MFI_FUSION_ENABLE_INTERRUPT_MASK, &(regs)->outbound_intr_mask); /* Dummy readl to force pci flush */ - readl(®s->outbound_intr_mask); + dev_info(&instance->pdev->dev, "%s is called outbound_intr_mask:0x%08x\n", + __func__, readl(®s->outbound_intr_mask)); } /** @@ -213,14 +214,14 @@ void megasas_disable_intr_fusion(struct megasas_instance *instance) { u32 mask = 0xFFFFFFFF; - u32 status; struct megasas_register_set __iomem *regs; regs = instance->reg_set; instance->mask_interrupts = 1; writel(mask, ®s->outbound_intr_mask); /* Dummy readl to force pci flush */ - status = readl(®s->outbound_intr_mask); + dev_info(&instance->pdev->dev, "%s is called outbound_intr_mask:0x%08x\n", + __func__, readl(®s->outbound_intr_mask)); } int @@ -4895,9 +4896,9 @@ int megasas_reset_fusion(struct Scsi_Host *shost, int reason) atomic_set(&instance->adprecovery, MEGASAS_HBA_OPERATIONAL); - dev_info(&instance->pdev->dev, "Interrupts are enabled and" - " controller is OPERATIONAL for scsi:%d\n", - instance->host->host_no); + dev_info(&instance->pdev->dev, + "Adapter is OPERATIONAL for scsi:%d\n", + instance->host->host_no); /* Restart SR-IOV heartbeat */ if (instance->requestorId) {