From patchwork Mon Oct 12 09:10:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 288566 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=-6.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, MIME_HEADER_CTYPE_ONLY, MIME_NO_TEXT, SPF_HELO_NONE, SPF_PASS, T_TVD_MIME_NO_HEADERS, USER_AGENT_GIT autolearn=no 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 2D103C433E7 for ; Mon, 12 Oct 2020 09:11:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B8ECE214D8 for ; Mon, 12 Oct 2020 09:11:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="DkFM0vd4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729233AbgJLJLP (ORCPT ); Mon, 12 Oct 2020 05:11:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729014AbgJLJLO (ORCPT ); Mon, 12 Oct 2020 05:11:14 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EC91C0613CE for ; Mon, 12 Oct 2020 02:11:14 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id q21so2421911pgi.13 for ; Mon, 12 Oct 2020 02:11: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; bh=3f3AscQFQhqgIU0kU5pm0zwKktJV8Z9Iow4C1i58nFA=; b=DkFM0vd4qR2wLWaBCFSHIohDL2dRuIB4s3Inm1rWKntSyR8DYR3oerQhFixpiC8myL ttQcdLuvleAnnx18wODo0ciO93yiiiaxo1iobKWIhd8hzqa1EQRRqbtN9lGZ+5YGi0jq rjyIHftf2C+Dqi2BuprCqQGZDIshKil98UIXM= 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; bh=3f3AscQFQhqgIU0kU5pm0zwKktJV8Z9Iow4C1i58nFA=; b=O3We3QUtbSULkj9awVMnjBdTbajqX2xhLYOxS+P8NJFnm+wa8MbmWh0Outo21UpFRl bAlDe7+rinYiTOgrKa2zCujaLa8y2NADRlICxsg+Z5TJnXqn1WpWbGTXH5F8FKNw8O9l G47zvUH62vhymKV0yHcmAr+4QW5HP16PiYIdUPXbI3vB6w0rmaeHebWcEcrf/1RzqdYF H0v1hd0vYJEtmjXOVti97ysb0mcJ+sdxy2Lgf02/1OsuuzEV6kb+Pm7+JNOxEM+0W2i5 Qo0KxUeln+5ZQJdqWKIf/T3xiI+goQpRYhsk+2zIpB14MdwHW9W55z0xsAUzDUDGPvYw UKfQ== X-Gm-Message-State: AOAM530KV3BjvWDqtmAmzRSmYwOHJASoDMVAe89ZA2b2AvQ+Tp39Ut8f l0BxoONF9gC12wTKqfIVVaXZgw== X-Google-Smtp-Source: ABdhPJzJb4go0YCEgB4TVAFXSONtT0HydaFs0XEhJOeAGQhtq0bp7Q4iEBVgZ73lH+4fAgsbDIXfAQ== X-Received: by 2002:a62:1414:0:b029:152:44af:42e with SMTP id 20-20020a6214140000b029015244af042emr22512283pfu.66.1602493873725; Mon, 12 Oct 2020 02:11:13 -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.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Oct 2020 02:11:12 -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 0/9] bnxt_en: Updates for net-next. Date: Mon, 12 Oct 2020 05:10:45 -0400 Message-Id: <1602493854-29283-1-git-send-email-michael.chan@broadcom.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This series contains these main changes: 1. Change of default message level to enable more logging. 2. Some cleanups related to processing async events from firmware. 3. Allow online ethtool selftest on multi-function PFs. 4. Return stored firmware version information to devlink. v2: Patch 3: Change bnxt_reset_task() to silent mode. Patch 8 & 9: Ensure we copy NULL terminated fw strings to devlink. Patch 8 & 9: Return directly after the last bnxt_dl_info_put() call. Patch 9: If FW call to get stored dev info fails, return success to devlink without the stored versions. Michael Chan (4): bnxt_en: Set driver default message level. bnxt_en: Simplify bnxt_async_event_process(). bnxt_en: Log event_data1 and event_data2 when handling RESET_NOTIFY event. bnxt_en: Log unknown link speed appropriately. Vasundhara Volam (5): bnxt_en: Return -EROFS to user space, if NVM writes are not permitted. bnxt_en: Enable online self tests for multi-host/NPAR mode. bnxt_en: Add bnxt_hwrm_nvm_get_dev_info() to query NVM info. bnxt_en: Refactor bnxt_dl_info_get(). bnxt_en: Add stored FW version info to devlink info_get cb. drivers/net/ethernet/broadcom/bnxt/bnxt.c | 39 +++-- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 + .../net/ethernet/broadcom/bnxt/bnxt_devlink.c | 154 ++++++++++++------ .../net/ethernet/broadcom/bnxt/bnxt_devlink.h | 6 + .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 24 ++- .../net/ethernet/broadcom/bnxt/bnxt_ethtool.h | 2 + 6 files changed, 164 insertions(+), 62 deletions(-)