From patchwork Sun Dec 13 11:51:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 343445 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=-13.8 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, SPF_HELO_NONE, SPF_PASS, 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 88CBCC433FE for ; Sun, 13 Dec 2020 11:59:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 411DF23121 for ; Sun, 13 Dec 2020 11:59:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406293AbgLML7h (ORCPT ); Sun, 13 Dec 2020 06:59:37 -0500 Received: from saphodev.broadcom.com ([192.19.232.172]:48166 "EHLO relay.smtp-ext.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406194AbgLML7h (ORCPT ); Sun, 13 Dec 2020 06:59:37 -0500 Received: from localhost.swdvt.lab.broadcom.net (dhcp-10-13-253-90.swdvt.lab.broadcom.net [10.13.253.90]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id 067DEEB; Sun, 13 Dec 2020 03:51:46 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 067DEEB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1607860307; bh=2lZOPlTnG+RuKQ4AO453vNDehxIUETvFvOwyAy92LXQ=; h=From:To:Cc:Subject:Date:From; b=dfdWpKtgOgTa2EeYO31VLC0/9Z6r0iDMB8nOh/unEJ1KoNIdM4AQbPjZxb/+OeMRW xA6bs5D67v7LCpjIOdvFL+8C5vDu+4tAtkPNebTPeQMzDmUedDoIwIr5P/QNE9D1pi TM0kqqJ+BP7Drp0vSZlMYLfGKK2VOr/85rA+c3Qk= From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, kuba@kernel.org Subject: [PATCH net-next 0/5] bnxt_en: Improve firmware flashing. Date: Sun, 13 Dec 2020 06:51:41 -0500 Message-Id: <1607860306-17244-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 patchset improves firmware flashing in 2 ways: - If firmware returns NO_SPACE error during flashing, the driver will create the UPDATE directory with more staging area and retry. - Instead of allocating a big DMA buffer for the entire contents of the firmware package size, fallback to a smaller buffer to DMA the contents in multiple DMA operations. Michael Chan (2): bnxt_en: Rearrange the logic in bnxt_flash_package_from_fw_obj(). bnxt_en: Enable batch mode when using HWRM_NVM_MODIFY to flash packages. Pavan Chebbi (3): bnxt_en: Refactor bnxt_flash_nvram. bnxt_en: Restructure bnxt_flash_package_from_fw_obj() to execute in a loop. bnxt_en: Retry installing FW package under NO_SPACE error condition. .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 214 ++++++++++++------ 1 file changed, 139 insertions(+), 75 deletions(-)