]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
qat: Fix firmware module autoloading
authorMark Johnston <markj@FreeBSD.org>
Mon, 30 Nov 2020 20:53:25 +0000 (20:53 +0000)
committerMark Johnston <markj@FreeBSD.org>
Mon, 30 Nov 2020 20:53:25 +0000 (20:53 +0000)
commit7695ced633498a94c26466934321782acfc69307
tree063ed5d1077ba34d2258b7b0583e67e1a30317f5
parent8459188a56c59126fdb26f5ec8e696a2be7c7d6e
qat: Fix firmware module autoloading

If firmware_get() fails to find a loaded firmware image, it searches for
candidate KLDs to load.  It will search for a KLD containing a module
with the same name as the requested image, and failing that, will load a
KLD with the same basename as the requested image.

The module name given by fw_stub.awk is simply "<mangled KLD name>_fw".

QAT firmware modules contain two images, neither of which match either
of the names used during lookup, so automatic loading of firmware images
after mountroot does not work.  Work around this by using the same
string for the first image name and for the KLD basename.

MFC after: 3 days
Sponsored by: Rubicon Communications, LLC (Netgate)
sys/dev/qat/qat_c2xxxreg.h
sys/dev/qat/qat_c3xxxreg.h
sys/dev/qat/qat_c62xreg.h
sys/dev/qat/qat_d15xxreg.h
sys/dev/qat/qat_dh895xccreg.h
sys/modules/qatfw/qat_c2xxx/Makefile
sys/modules/qatfw/qat_c3xxx/Makefile
sys/modules/qatfw/qat_c62x/Makefile
sys/modules/qatfw/qat_d15xx/Makefile
sys/modules/qatfw/qat_dh895xcc/Makefile