From patchwork Fri Apr 26 09:37:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shivasharan Srikanteshwara X-Patchwork-Id: 10918957 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 D1D511575 for ; Fri, 26 Apr 2019 09:39:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C120928D56 for ; Fri, 26 Apr 2019 09:39:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B51DA28D6A; Fri, 26 Apr 2019 09:39:20 +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 9DC1728D56 for ; Fri, 26 Apr 2019 09:39:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726089AbfDZJjT (ORCPT ); Fri, 26 Apr 2019 05:39:19 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:40533 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbfDZJjT (ORCPT ); Fri, 26 Apr 2019 05:39:19 -0400 Received: by mail-pf1-f193.google.com with SMTP id s4so1434877pfh.7 for ; Fri, 26 Apr 2019 02:39:18 -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=8ez+GI5DD4AnwGxy1UuxitMHJ/5sXbRTw2W/oaoFn14=; b=GlZW60jm8ldt5pWluJueiso6u1oCkCwthPgFwcc5s8kwhLiKDPp52Z5MeTU2qF2nBD fw6T/k43fSXhjOAj7oU99N6Wc7uuM5zmlsi2xZxg8Pwas57VT5DazIEtx9s7LmrnOGJ8 CHPXNR38kE51UwYS3H0r2zm82SqHpuaQVNofg= 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=8ez+GI5DD4AnwGxy1UuxitMHJ/5sXbRTw2W/oaoFn14=; b=H/byafWWRkj2sJ4dE0soewIgM6K1jXemaD2O1uqNxCO2gDKZGWC58z0ZzTtAjkykuG s413t2qYiYX6odLuFCzTkWY5W8ydw/YzBbC4/pZ+RYh/zMdqctuMlDLR4PJO0jBea9FG ZVKJF8RMCoaq5pFXIHQOPw/bqpU0A74N6avzZBLSg65AcuLz1/rz1FVJeoAvNM5aURjo id9FkaLdhpflkUillEHKZJORAkH7y8CyiEdOnU+XUwip4V+4s3M/Cv/DiQ9vckWG3jNV weEAS2IliZ624k9VEl6JVPiITqdi0ZjeWt4n6bjE6r6HKNB8CmCULavgSSegHIvRuQAV CV3Q== X-Gm-Message-State: APjAAAWMLIn/YAgyPTN8VzcJcjTimrIZtI0Lo6CLh4pjyQFcPzK0NcMD 4VzzTZna9qNQE+I85diUsO0iaTg3jYH6KQpw6BRzBzBtV9cX1lnm9XbRpbDKsRliXJ2WQp/cUs5 60BxWacNN7pPTlf2YcbrUBmalF8yLoWG2H1bdWQSyN1+f0sT09QeuZMyl/spxeGGgy9h0OEvj30 yypeGPZfMabZcTrA4jEgNE X-Google-Smtp-Source: APXvYqx50QCEDsELozWXNqC3Yy/LnEQNjQX0P1shq/4wfWdPVK1+FDF1v2JY/5jhG2WLsx8KzA61RA== X-Received: by 2002:a65:5286:: with SMTP id y6mr41708184pgp.79.1556271557842; Fri, 26 Apr 2019 02:39:17 -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.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Apr 2019 02:39:16 -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 17/21] megaraid_sas: Add prints in suspend and resume path Date: Fri, 26 Apr 2019 02:37:11 -0700 Message-Id: <1556271435-27252-18-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 prints in resume/suspend path to help in debugging hibernation issues. The print gives an indication when the driver entry points are called. Signed-off-by: Sumit Saxena Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas_base.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index a7ae10aa2e3f..b1aedfb0963e 100644 --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c @@ -7244,6 +7244,8 @@ megasas_suspend(struct pci_dev *pdev, pm_message_t state) host = instance->host; instance->unload = 1; + dev_info(&pdev->dev, "%s is called\n", __func__); + /* Shutdown SR-IOV heartbeat timer */ if (instance->requestorId && !instance->skip_heartbeat_timer_del) del_timer_sync(&instance->sriov_heartbeat_timer); @@ -7298,6 +7300,7 @@ megasas_resume(struct pci_dev *pdev) pci_enable_wake(pdev, PCI_D0, 0); pci_restore_state(pdev); + dev_info(&pdev->dev, "%s is called\n", __func__); /* * PCI prepping: enable device set bus mastering and dma mask */