From patchwork Sat Oct 12 02:34:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Trager X-Patchwork-Id: 13833655 Received: from trager.us (trager.us [52.5.81.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96C0B17BA5; Sat, 12 Oct 2024 03:14:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=52.5.81.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728702881; cv=none; b=ObVJJSqqzmLc8cUcow5fejPa9jeVMi382+TfXVnoijVqmyvyxz171YLOpsJZSLjkvpWn4CN1RQgGjSnwOnVfEPQ8ithv7gvvnxzihGHbP5dRIrWtaYduvMPaADXInI8glozOUrgcDRtcTPLQbQglR58pFvnA7bkk3z4wi8sEVAs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728702881; c=relaxed/simple; bh=DxG3jFhJxBZHy9y4ut7XkUjBm+Q/CU+DcDmSa6Et+bg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=F7C+JLbrY+cfywBHyMb46VqwBQxStyRA3/9r+18s2gjCD1YCeDlCdEPnIvOdn2B+Z+f/oezeUlbsT8jE1vxn7J5IT91zReD4I08NnIBmGDf/Q5qMUhQ9DE2bAH2uG2/uP+IVZQT8jkykwGyN/7kVJcz8zaN0s9HlzGyKF7mBcJs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=trager.us; spf=pass smtp.mailfrom=trager.us; arc=none smtp.client-ip=52.5.81.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=trager.us Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=trager.us Received: from c-76-104-255-50.hsd1.wa.comcast.net ([76.104.255.50] helo=localhost) by trager.us with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1szS0P-0005hE-FC; Sat, 12 Oct 2024 02:37:21 +0000 From: Lee Trager To: Alexander Duyck , Jakub Kicinski , kernel-team@meta.com, "David S. Miller" , Eric Dumazet , Paolo Abeni , Jonathan Corbet , Mohsin Bashir , Simon Horman , Lee Trager , Vadim Fedorenko , Sanman Pradhan , Al Viro Cc: netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/2] eth: fbnic: Add devlink dev flash support Date: Fri, 11 Oct 2024 19:34:02 -0700 Message-ID: <20241012023646.3124717-1-lee@trager.us> X-Mailer: git-send-email 2.43.5 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org fbnic supports updating firmware using a PLDM image signed and distributed by Meta. PLDM images are written into stored flash. Flashing does not interrupt operation. Mailbox support additional adds support to utilize the kernel completion API with firmware. This allows the driver to block on firmware response. Initial support is only for firmware updates, future patches will add support for additional features. Lee Trager (2): eth: fbnic: Add mailbox support for PLDM updates eth: fbnic: Add devlink dev flash support .../device_drivers/ethernet/meta/fbnic.rst | 11 + drivers/net/ethernet/meta/Kconfig | 1 + drivers/net/ethernet/meta/fbnic/fbnic.h | 1 + .../net/ethernet/meta/fbnic/fbnic_devlink.c | 270 +++++++++++++++++- drivers/net/ethernet/meta/fbnic/fbnic_fw.c | 263 +++++++++++++++++ drivers/net/ethernet/meta/fbnic/fbnic_fw.h | 59 ++++ 6 files changed, 604 insertions(+), 1 deletion(-) --- 2.43.5