From patchwork Sun Oct 11 10:22:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 288612 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MIME_HEADER_CTYPE_ONLY, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, T_TVD_MIME_NO_HEADERS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DE20C43457 for ; Sun, 11 Oct 2020 10:23:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4D093207F7 for ; Sun, 11 Oct 2020 10:23:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="LKmkE8IY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729660AbgJKKXf (ORCPT ); Sun, 11 Oct 2020 06:23:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729598AbgJKKX0 (ORCPT ); Sun, 11 Oct 2020 06:23:26 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03FC5C0613CE for ; Sun, 11 Oct 2020 03:23:26 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id n9so11230785pgf.9 for ; Sun, 11 Oct 2020 03:23:25 -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=7CnM4DrIL4JNOakYia0tlCVDMKCZuSBYMvS5joIVh0I=; b=LKmkE8IY8CRMYvD1chIhahsEOjueBkYqqdSHHGyLZoLMM/AXA3t3V09hwaXP9QNOrY ytrdssafeDVyBmBSLqjYbVKW2IGOdjkhTkd8XHNZ4YYtbY3ezCjJya894jjKHNb15t/q CW3I7f3C86B1/QO+FYW+PuMVqVSQiBzHksfEQ= 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=7CnM4DrIL4JNOakYia0tlCVDMKCZuSBYMvS5joIVh0I=; b=CRfHxaZce1OEjDzGnKS3/N5SQ6msRDTU9nLjW6Ky++Rdlpl0T1/GUHmh+3gXyu6z9a 6lResxMuyFfVeFOA0vMI8H/BkGaKPPBu/SyXISSo0lU52xAgMGgvoxmQRSPTq7a6SLcQ XAc6oooVOOQjDhOgViM6miihCry0MMtvSZw8j/7kCaN2lHfQDlBH7yWnNCoLrWbEnlPS 2LiC8VkQNzZyE3eY8Zsxx9NeFCQ7j8qx/IGmB86LSKcMBsQGQA8yh0X/IV49hjMKcJKN qP0q3vvTDRXjzgLgr/Xy1S9oZJjmTk/2s0p23IwINXyalvcvTKlL0yjNwGyVR4HChgIT K0pw== X-Gm-Message-State: AOAM5327Kcjd0JsUtAXufx+d36I7zxv2K3++91rggA6qxL0Q2GRbZCbd lLdB1wjzBzSJVgbDYBjvNW3TcQ== X-Google-Smtp-Source: ABdhPJz3ZGN/IbYSlKZQhIFnOhPXtfKKXKAgwjDHZt8PXLLk9dBMcKcEAeqyBfHRuK8xBBlIGkhD8A== X-Received: by 2002:a17:90b:3882:: with SMTP id mu2mr14769880pjb.29.1602411805441; Sun, 11 Oct 2020 03:23:25 -0700 (PDT) Received: from localhost.swdvt.lab.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id i1sm20155057pjh.52.2020.10.11.03.23.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Oct 2020 03:23:24 -0700 (PDT) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, kuba@kernel.org, gospo@broadcom.com Subject: [PATCH net-next 5/9] bnxt_en: Log event_data1 and event_data2 when handling RESET_NOTIFY event. Date: Sun, 11 Oct 2020 06:22:57 -0400 Message-Id: <1602411781-6012-6-git-send-email-michael.chan@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602411781-6012-1-git-send-email-michael.chan@broadcom.com> References: <1602411781-6012-1-git-send-email-michael.chan@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Log these values that contain useful firmware state information. Reviewed-by: Edwin Peer Reviewed-by: Vasundhara Volam Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index f093cdd61426..ca35ec06abf0 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -2032,6 +2032,9 @@ static int bnxt_async_event_process(struct bnxt *bp, set_bit(BNXT_RESET_TASK_SILENT_SP_EVENT, &bp->sp_event); break; case ASYNC_EVENT_CMPL_EVENT_ID_RESET_NOTIFY: + if (netif_msg_hw(bp)) + netdev_warn(bp->dev, "Received RESET_NOTIFY event, data1: 0x%x, data2: 0x%x\n", + data1, data2); if (!bp->fw_health) goto async_event_process_exit;