HomeFreeBSD

LinuxKPI: add firmware loading support

Description

LinuxKPI: add firmware loading support

Implement linux firmware KPI compat code.
This includes: request_firmware() request_firmware_nowait(),
request_firmware_direct(), firmware_request_nowarn(),
and release_firmware().

Given we will try to map requested names from natively ported
or full-linuxkpi-using drivers to a firmware(9) auto-loading
name format (.ko file name and image name matching),
we quieten firmware(9) and print success or failure (unless
the _nowarn() version was called) in the linuxkpi implementation.
At the moment we try up-to 4 different naming combinations,
with path stripped, original name, and requested name with '/'
or '.' replaced.

We do not currently defer loading in the "nowait" case.

Sponsored-by: The FreeBSD Foundation
Sponsored-by: Rubicon Communications, LLC ("Netgate")

		(firmware(9) nowarn update from D27413)

MFC after: 3 days
Reviewed by: kib, manu (looked at older versions)
Differential Revision: https://reviews.freebsd.org/D27414

Details

Provenance
bzAuthored on Jan 28 2021, 4:05 PM
Reviewer
kib
Differential Revision
D27414: linuxkpi: add firmware loading support
Parents
rGb8051298b0a3: Fix missing value in uar_page field for ratelimit in mlx5en(4).
Branches
Unknown
Tags
Unknown