From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B70FAA0A0C; Tue, 29 Jun 2021 10:06:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 776EC4117E; Tue, 29 Jun 2021 10:06:47 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 70E5240E01 for ; Tue, 29 Jun 2021 10:06:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624954004; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R4+y/x9WN3d2GnxkXx/ooRP2Cgc/f6AZocuM1rIR+y8=; b=it/hQAt7J7QSSDdTEjFYVlP7+0sFLPFVnWZTnYer050JZqVzqyTciEhDnm9sM7518co55R bVNND12hPKxvFvZpAK7UtamDedIG+DbeeKkI/InlmelUyILc6e7u2+Auoc6cHl+ofbaDth v4VPFVz1R89S0L4aNIAR2MCDqS0eNa8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-118-cGja0sSEOAiTW91EZizkwg-1; Tue, 29 Jun 2021 04:06:42 -0400 X-MC-Unique: cGja0sSEOAiTW91EZizkwg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 53B4B1835AC7 for ; Tue, 29 Jun 2021 08:06:41 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.192.189]) by smtp.corp.redhat.com (Postfix) with ESMTP id 667A760C0F for ; Tue, 29 Jun 2021 08:06:40 +0000 (UTC) From: David Marchand To: dev@dpdk.org Date: Tue, 29 Jun 2021 10:06:30 +0200 Message-Id: <20210629080632.30964-1-david.marchand@redhat.com> In-Reply-To: <20210602095836.24901-1-david.marchand@redhat.com> References: <20210602095836.24901-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-dev] [PATCH v3 0/2] Support compressed firmwares X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fedora 34 only provides compressed firmwares. Introduce an internal driver helper to handle transparently compression. I chose libarchive for decompressing as it seems widely available and DPDK had used it in the past. Windows support only matters for net/ice and firmware loading was skipped in this driver before this series. Since I don't know if/how we want to load firmwares on Windows, I let an empty stub for this OS. This series has been compile tested on Linux (I'll trust the CI for others OSes). I only tested basic init with a net/ice device (no DCF test). So please drivers maintainers, check nothing is broken. -- David Marchand Changes since v2: - update comment on libarchive link dependency, Changes since v1: - address comments on patch2, David Marchand (2): net/ice: factorize firmware loading eal: handle compressed firmwares .github/workflows/build.yml | 1 + .travis.yml | 1 + config/meson.build | 10 ++ drivers/net/bnx2x/bnx2x.c | 35 +++---- drivers/net/ice/base/ice_osdep.h | 6 -- drivers/net/ice/ice_dcf_parent.c | 97 ++--------------- drivers/net/ice/ice_ethdev.c | 175 ++++++++++++------------------- drivers/net/ice/ice_ethdev.h | 3 +- drivers/net/nfp/nfp_net.c | 57 +++------- drivers/net/qede/qede_main.c | 45 ++++---- lib/eal/include/rte_firmware.h | 32 ++++++ lib/eal/unix/eal_firmware.c | 149 ++++++++++++++++++++++++++ lib/eal/unix/meson.build | 1 + lib/eal/version.map | 1 + lib/eal/windows/eal.c | 9 ++ 15 files changed, 324 insertions(+), 298 deletions(-) create mode 100644 lib/eal/include/rte_firmware.h create mode 100644 lib/eal/unix/eal_firmware.c -- 2.23.0