accel/amdxdna: Add MODULE_FIRMWARE() declarations
PATCH 1/1 accel/amdxdna: Add MODULE_FIRMWARE() declarations
From: Mario Limonciello <[email protected]>
Initramfs building tools such as dracut will look for a MODULE_FIRMWARE() declaration to determine which firmware to include in the initramfs when a driver is included in the initramfs.
As amdxdna doesn't declare any firmware this causes the driver to fail to load with -ENOENT when in the initramfs. Add the missing declaration for possible firmware.
--- drivers/accel/amdxdna/amdxdna_pci_drv.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/accel/amdxdna/amdxdna_pci_drv.c +5 -0
@@ -21,6 +21,11 @@#define AMDXDNA_AUTOSUSPEND_DELAY 5000/* milliseconds */ +MODULE_FIRMWARE ("amdnpu/1502_00/npu.sbin" ); +MODULE_FIRMWARE ("amdnpu/17f0_10/npu.sbin" ); +MODULE_FIRMWARE ("amdnpu/17f0_11/npu.sbin" ); +MODULE_FIRMWARE ("amdnpu/17f0_20/npu.sbin" ); +/* * Bind the driver base on (vendor_id, device_id) pair and later use the * (device_id, rev_id) pair as a key to select the devices. The devices with
Signature · 1 line
2.43.0
Quoted 22 lines · Mario Limonciello
From: Mario Limonciello <[email protected]>
Initramfs building tools such as dracut will look for a
MODULE_FIRMWARE()declaration to determine which firmware to include in the initramfs when a driver is included in the initramfs.As amdxdna doesn't declare any firmware this causes the driver to fail to load with
-ENOENTwhen in the initramfs. Add the missing declaration for possible firmware.Reported-by Renjith Pananchikkal <[email protected]>Suggested-by Alexander Deucher <[email protected]>Signed-off-by Mario Limonciello <[email protected]>--- drivers/accel/amdxdna/amdxdna_pci_drv.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/accel/amdxdna/amdxdna_pci_drv.c +0
-0
drivers/accel/amdxdna/amdxdna_pci_drv.c line 28
Quoted 8 lines
drivers/accel/amdxdna/amdxdna_pci_drv.c +5
-0@@ -21,6 +21,11 @@#define AMDXDNA_AUTOSUSPEND_DELAY 5000/* milliseconds */ +MODULE_FIRMWARE ("amdnpu/1502_00/npu.sbin" ); +MODULE_FIRMWARE ("amdnpu/17f0_10/npu.sbin" ); +MODULE_FIRMWARE ("amdnpu/17f0_11/npu.sbin" ); +MODULE_FIRMWARE ("amdnpu/17f0_20/npu.sbin" ); +
Quoted 3 lines
drivers/accel/amdxdna/amdxdna_pci_drv.c +0
-0/* * Bind the driver base on (vendor_id, device_id) pair and later use the * (device_id, rev_id) pair as a key to select the devices. The devices with
Quoted 19 lines · Lizhi Hou
Quoted 17 lines · Mario Limonciello
From: Mario Limonciello <[email protected]>
Initramfs building tools such as dracut will look for a
MODULE_FIRMWARE()declaration to determine which firmware to include in the initramfs when a driver is included in the initramfs.As amdxdna doesn't declare any firmware this causes the driver to fail to load with
-ENOENTwhen in the initramfs. Add the missing declaration for possible firmware.Reported-by Renjith Pananchikkal <[email protected]>Suggested-by Alexander Deucher <[email protected]>Signed-off-by Mario Limonciello <[email protected]>---
drivers/accel/amdxdna/amdxdna_pci_drv.c| 5 +++++1 file changed, 5 insertions(+)
Quoted 12 lines
drivers/accel/amdxdna/amdxdna_pci_drv.c line 26
Quoted 11 lines
drivers/accel/amdxdna/amdxdna_pci_drv.c +5
-0@@ -21,6 +21,11 @@ #define AMDXDNA_AUTOSUSPEND_DELAY 5000 /* milliseconds */ +MODULE_FIRMWARE ("amdnpu/1502_00/npu.sbin" ); +MODULE_FIRMWARE ("amdnpu/17f0_10/npu.sbin" ); +MODULE_FIRMWARE ("amdnpu/17f0_11/npu.sbin" ); +MODULE_FIRMWARE ("amdnpu/17f0_20/npu.sbin" ); +Reviewed-by Lizhi Hou <[email protected]>
Thanks.
I also forgot to add a Fixes tag.
I'll add this when adding to drm-misc-fixes.
Quoted 3 lines
Quoted 3 lines
drivers/accel/amdxdna/amdxdna_pci_drv.c +0
-0/** Bind the driver base on (vendor_id, device_id) pair and later use the * (device_id, rev_id) pair as a key to select the devices. The devices with