arm64: defconfig: Disable firmware sysfs fallback
PATCH 1/1 arm64: defconfig: Disable firmware sysfs fallback
Part of the enablement of SDMA on the IMX platforms, '7f4e4afa140c ("arm64: defconfig: Enable SDMA on i.mx8mq/8mm")' also enabled CONFIG_FW_LOADER_USER_HELPER_FALLBACK, to allow "firmware loaded by udev".
Unfortunately having the fallback enabled does, due to the 60 second timeout, essentially requiring userspace to provide a firmware loader. But systemd dropped the support for this interface back in 2014 and because arm64 is the only architecture that has this enabled, there doesn't seem to be any standard solution available.
Examples of this problem can be found in e.g. the ath10k driver, which with a standard distro can take about 10 minutes before wlan0 appears.
The alternative to this patch would be to change these drivers to use firmware_request_direct(), to avoid the sysfs fallback. But that would prevent other systems, such as Android, to rely on a userspace firmware loader to pick the firmware from a non-standard place, with just a custom defconfig.
This patch therefor attempts to align the arm64 defconfig will all other architectures in the upstream kernel.
--- arch/arm64/configs/defconfig | 1 - 1 file changed, 1 deletion(-)
arch/arm64/configs/defconfig +0 -1
@@ -243,7 +243,6 @@ CONFIG_PCI_EPF_TEST=m CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_FW_LOADER_USER_HELPER=y -CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y CONFIG_HISILICON_LPC=y CONFIG_SIMPLE_PM_BUS=y CONFIG_FSL_MC_BUS=y
Signature · 1 line
2.29.2
Quoted 11 lines · Bjorn Andersson
Part of the enablement of SDMA on the IMX platforms, '
7f4e4afa140c("arm64: defconfig: Enable SDMA on i.mx8mq/8mm")' also enabledCONFIG_FW_LOADER_USER_HELPER_FALLBACK, to allow "firmware loaded by udev".Unfortunately having the fallback enabled does, due to the 60 second timeout, essentially requiring userspace to provide a firmware loader. But systemd dropped the support for this interface back in 2014 and because arm64 is the only architecture that has this enabled, there doesn't seem to be any standard solution available.
I tend to use the following 'standard' solution:
cat /lib/udev/rules.d/50-firmware.rules
# stub for immediately telling the kernel that userspace firmware loading
# failed; necessary to avoid long timeouts with CONFIG_FW_LOADER_USER_HELPER=y
SUBSYSTEM=="firmware", ACTION=="add", ATTR{loading}="-1"Quoted 9 lines
Examples of this problem can be found in e.g. the ath10k driver, which with a standard distro can take about 10 minutes before wlan0 appears.
The alternative to this patch would be to change these drivers to use
firmware_request_direct(), to avoid the sysfs fallback. But that would prevent other systems, such as Android, to rely on a userspace firmware loader to pick the firmware from a non-standard place, with just a custom defconfig.
Quoted 6 lines
This patch therefor attempts to align the arm64 defconfig will all other architectures in the upstream kernel.
Cc Robin Gong <[email protected]>Cc Shawn Guo <[email protected]>Signed-off-by Bjorn Andersson <[email protected]>
Quoted 19 lines
--- arch/arm64/configs/defconfig | 1 - 1 file changed, 1 deletion(-)arch/arm64/configs/defconfig +0
-2@@ -243,7 +243,6 @@ CONFIG_PCI_EPF_TEST=m CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_FW_LOADER_USER_HELPER=y -CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y CONFIG_HISILICON_LPC=y CONFIG_SIMPLE_PM_BUS=y CONFIG_FSL_MC_BUS=y --2.29.2
Signature · 2 lines
With best wishes Dmitry
Quoted 20 lines · Bjorn Andersson
Part of the enablement of SDMA on the IMX platforms, '
7f4e4afa140c("arm64: defconfig: Enable SDMA on i.mx8mq/8mm")' also enabledCONFIG_FW_LOADER_USER_HELPER_FALLBACK, to allow "firmware loaded by udev".Unfortunately having the fallback enabled does, due to the 60 second timeout, essentially requiring userspace to provide a firmware loader. But systemd dropped the support for this interface back in 2014 and because arm64 is the only architecture that has this enabled, there doesn't seem to be any standard solution available.
Examples of this problem can be found in e.g. the ath10k driver, which with a standard distro can take about 10 minutes before wlan0 appears.
The alternative to this patch would be to change these drivers to use
firmware_request_direct(), to avoid the sysfs fallback. But that would prevent other systems, such as Android, to rely on a userspace firmware loader to pick the firmware from a non-standard place, with just a custom defconfig.
Quoted 5 lines
This patch therefor attempts to align the arm64 defconfig will all other architectures in the upstream kernel.
Cc Robin Gong <[email protected]>Cc Shawn Guo <[email protected]>
Quoted 20 lines
Signed-off-by Bjorn Andersson <[email protected]>--- arch/arm64/configs/defconfig | 1 - 1 file changed, 1 deletion(-)arch/arm64/configs/defconfig +0
-1@@ -243,7 +243,6 @@ CONFIG_PCI_EPF_TEST=m CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_FW_LOADER_USER_HELPER=y -CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y CONFIG_HISILICON_LPC=y CONFIG_SIMPLE_PM_BUS=y CONFIG_FSL_MC_BUS=ySignature · 1 line
2.29.2
This patch was applied to qcom/linux.git (for-next) by Bjorn Andersson <[email protected]>:
Hello:
This patch was applied to qcom/linux.git (for-next) by Bjorn Andersson <[email protected]>:
Quoted 5 lines · On Thu, 30 Sep 2021 14:53:00 -0700 you wrote:
Part of the enablement of SDMA on the IMX platforms, '
7f4e4afa140c("arm64: defconfig: Enable SDMA on i.mx8mq/8mm")' also enabledCONFIG_FW_LOADER_USER_HELPER_FALLBACK, to allow "firmware loaded by udev".
Quoted 7 lines
Unfortunately having the fallback enabled does, due to the 60 second timeout, essentially requiring userspace to provide a firmware loader. But systemd dropped the support for this interface back in 2014 and because arm64 is the only architecture that has this enabled, there doesn't seem to be any standard solution available.
[...]
Here is the summary with links:
- arm64: defconfig: Disable firmware sysfs fallback
https://git.kernel.org/qcom/c/5c1c3e2a7693
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Bjorn Andersson
AppliedRe: (subset) [PATCH] arm64: defconfig: Disable firmware sysfs fallback
In reply to Bjorn AnderssonQuoted 5 lines · Bjorn Andersson
Part of the enablement of SDMA on the IMX platforms, '
7f4e4afa140c("arm64: defconfig: Enable SDMA on i.mx8mq/8mm")' also enabledCONFIG_FW_LOADER_USER_HELPER_FALLBACK, to allow "firmware loaded by udev".
Quoted 7 lines
Unfortunately having the fallback enabled does, due to the 60 second timeout, essentially requiring userspace to provide a firmware loader. But systemd dropped the support for this interface back in 2014 and because arm64 is the only architecture that has this enabled, there doesn't seem to be any standard solution available.
[...]
Applied, thanks!
[1/1] arm64: defconfig: Disable firmware sysfs fallback
commit: 5c1c3e2a7693c5e47a7d93898ade1acaac2afb38
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>