From patchwork Mon Oct 12 09:10:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 288564 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, 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 E0D41C433DF for ; Mon, 12 Oct 2020 09:11:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 83DED20E65 for ; Mon, 12 Oct 2020 09:11:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="KlC9TOFP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729308AbgJLJLX (ORCPT ); Mon, 12 Oct 2020 05:11:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729223AbgJLJLV (ORCPT ); Mon, 12 Oct 2020 05:11:21 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ADFAC0613CE for ; Mon, 12 Oct 2020 02:11:21 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id w21so12924571pfc.7 for ; Mon, 12 Oct 2020 02:11:21 -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=51Z5NBF4chpnkHRNT6LoiowC5yr3V2WfPcKwftONxbE=; b=KlC9TOFPvLjEUhCv+f5e6MBI52rGgf2cd+HxKYSpKUi1T21DrFieVDCy9yUoulO7ZO 3s2U+QrLZIP88P3tPE5I2EH7MhQCFAMTuRo/EDQBm/fE9jpVUT7bo2V5laKlHM4YBgOU ux4e591B8HhaXurJnEHNnjd2WSwisAVATbQ5I= 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=51Z5NBF4chpnkHRNT6LoiowC5yr3V2WfPcKwftONxbE=; b=rDXpZYZNS2nc817CzTTRrIAq70PhNTngBmenFL5k1buJqoNRDDZQ48aYjIks6g8HiV OndIMQPu3pNU6h+l14tefNVj4PBkhaZGdsUFMgY1cOjGG5A1FMk10sWA5q7p7VhfPHY0 FZ3Q3+UZD9Pkmm+Wdv938zai1jLt0Vs4d0TSFsZBNEKXfSdokouLrryTg1Ois0issV1k +ibVv7K13CokkFK2npnq6wMtqKoBN8UJ14djHfy6MUkb8MW6cLCGhKfjXjMzjuOhZeAh s6Rw9pei9ZpjiVJrbsSsgu2vlkL5/ddcm8GPZFTHu/gFAAgZBtEoJNBHl99Xf8YIXaYI PdoA== X-Gm-Message-State: AOAM5300SxEmukncdiNrYT4cr63TNQhkCURBOTDQgIan7TpCDKj+/qA3 G3E/RyFIEiSJ3mUDxb5ToLDD1Q== X-Google-Smtp-Source: ABdhPJxY0DQf8iXUP3d9aIp2E5OlUHrDcELXTUNR5Jl3lz7M5Bt+LBV7qREMpcObnEt40ujvIQpfDw== X-Received: by 2002:a17:90a:f3d3:: with SMTP id ha19mr19091277pjb.58.1602493880858; Mon, 12 Oct 2020 02:11:20 -0700 (PDT) Received: from localhost.swdvt.lab.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id jy19sm1275932pjb.9.2020.10.12.02.11.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Oct 2020 02:11:19 -0700 (PDT) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, kuba@kernel.org, gospo@broadcom.com Subject: [PATCH net-next v2 5/9] bnxt_en: Log event_data1 and event_data2 when handling RESET_NOTIFY event. Date: Mon, 12 Oct 2020 05:10:50 -0400 Message-Id: <1602493854-29283-6-git-send-email-michael.chan@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602493854-29283-1-git-send-email-michael.chan@broadcom.com> References: <1602493854-29283-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 293af0d48028..877efaf302ad 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;