Revert "arm64: enable HAVE_SHARED_GPIOS for all ARM64 platforms"
Subsystems (3)
PATCH 1/1 Revert "arm64: enable HAVE_SHARED_GPIOS for all ARM64 platforms"
This reverts commit f918e380449880824c415a39214b553aa7f64d5d.
Since that commit, the BeagleY-AI no longer boots. The reset GPIO of its on-board USB hub is shared, so it is now handled by gpio-shared-proxy. This exposes a bug in onboard_usb_dev, which loops in deferred probing for about 90 seconds during boot, and systemd goes into emergency mode.
A fix for onboard_usb_dev has been posted [1] but has not yet been reviewed. Revert this commit until the bug is fixed.
---
I am sending this revert at the request of Thorsten Leemhuis, the Linux kernel regression tracker (see the last Link: above).
Tested on a BeagleY-AI: with this revert on top of v7.4-rc5-48-g693c2e04e3f1, it boots normally.
arch/arm64/Kconfig | 1 - arch/arm64/Kconfig.platforms | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-)
arch/arm64/Kconfig +0 -1
@@ -196,7 +196,6 @@ config ARM64 if DYNAMIC_FTRACE_WITH_ARGS select HAVE_SAMPLE_FTRACE_DIRECT select HAVE_SAMPLE_FTRACE_DIRECT_MULTI - select HAVE_SHARED_GPIOS select HAVE_BUILDTIME_MCOUNT_SORT select HAVE_EFFICIENT_UNALIGNED_ACCESS select HAVE_EXIT_THREAD
arch/arm64/Kconfig.platforms +2 -0
@@ -37,6 +37,7 @@ config ARCH_APPLE bool "Apple Silicon SoC family" select APPLE_AIC select APPLE_PMGR_PWRSTATE if PM + select HAVE_SHARED_GPIOS help This enables support for Apple's in-house ARM SoC family, such as the Apple M1.
@@ -336,6 +337,7 @@ config ARCH_QCOM select GPIOLIB select PINCTRL select HAVE_PWRCTRL if PCI + select HAVE_SHARED_GPIOS help This enables support for the ARMv8 based Qualcomm chipsets.
base-commit: 693c2e04e3f1d4c59af236e1211b7b8cb165a790
Signature · 1 line
2.56.1
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] arm64: missing Fixes: trailer for commit f918e3804498 --
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] arm64: missing Fixes: trailer for commit f918e3804498 --
commit 73643d7cab1d42f23071c9234f7063ce0f86caaa
Author: James Clark <[email protected]>
Quoted 9 lines
Revert "arm64: enable
HAVE_SHARED_GPIOSfor all ARM64 platforms"This reverts commit
f918e380449880824c415a39214b553aa7f64d5d.Since that commit, the BeagleY-AI no longer boots. The reset GPIO of its on-board USB hub is shared, so it is now handled by gpio-shared-proxy. This exposes a bug in
onboard_usb_dev, which loops in deferred probing for about 90 seconds during boot, and systemd goes into emergency mode.
Quoted 7 lines
A fix for
onboard_usb_devhas been posted [1] but has not yet been reviewed. Revert this commit until the bug is fixed.
[Severity: Low]
Since this revert fixes a boot regression on the BeagleY-AI, should it include a Fixes: tag for the reverted commit?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Bartosz Golaszewski
maintainerQuoted 10 lines · James Clark
This reverts commit
f918e380449880824c415a39214b553aa7f64d5d.Since that commit, the BeagleY-AI no longer boots. The reset GPIO of its on-board USB hub is shared, so it is now handled by gpio-shared-proxy. This exposes a bug in
onboard_usb_dev, which loops in deferred probing for about 90 seconds during boot, and systemd goes into emergency mode.A fix for
onboard_usb_devhas been posted [1] but has not yet been reviewed. Revert this commit until the bug is fixed.
Quoted 8 lines
Signed-off-by James Clark <[email protected]>---
I am sending this revert at the request of Thorsten Leemhuis, the Linux kernel regression tracker (see the last Link: above).
Honestly, I don't see a good reason to revert it. The commit uncovered an existing bug (didn't cause a regression due to its own bad logic) and this bug has a pending fix on the list (how far are we from getting it upstream anyway?).
We don't typically do this kind of revert-fix-bug-re-apply back and forth with new functionalities.
Unless there's a good reason to not queue the fix right now, I'd prefer to wait until it's in the tree.
Of course it's not my decision to make so treat it as my 2 cents.
Bartosz
Catalin Marinas
maintainerQuoted 19 lines · Bartosz Golaszewski
Quoted 10 lines · James Clark
This reverts commit
f918e380449880824c415a39214b553aa7f64d5d.Since that commit, the BeagleY-AI no longer boots. The reset GPIO of its on-board USB hub is shared, so it is now handled by gpio-shared-proxy. This exposes a bug in
onboard_usb_dev, which loops in deferred probing for about 90 seconds during boot, and systemd goes into emergency mode.A fix for
onboard_usb_devhas been posted [1] but has not yet been reviewed. Revert this commit until the bug is fixed.Quoted 7 lines
Signed-off-by James Clark <[email protected]>---
I am sending this revert at the request of Thorsten Leemhuis, the Linux kernel regression tracker (see the last Link: above).
Quoted 4 lines
Honestly, I don't see a good reason to revert it. The commit uncovered an existing bug (didn't cause a regression due to its own bad logic) and this bug has a pending fix on the list (how far are we from getting it upstream anyway?).
I agree. Before this commit, HAVE_SHARED_GPIOS was already selected by ARCH_QCOM and ARCH_APPLE, both enabled in the arm64 defconfig (and likely in most distro kernels). So I'd expect the BeagleY-AI to hit the same problem with a 7.3 defconfig kernel. I'd rather get the onboard_usb_dev fix merged.
However, it's Arnd's call since the patch went in via the soc tree.
Signature · 1 line
Catalin
Quoted 25 lines · Catalin Marinas
Quoted 19 lines · Bartosz Golaszewski
Quoted 10 lines · James Clark
This reverts commit
f918e380449880824c415a39214b553aa7f64d5d.Since that commit, the BeagleY-AI no longer boots. The reset GPIO of its on-board USB hub is shared, so it is now handled by gpio-shared-proxy. This exposes a bug in
onboard_usb_dev, which loops in deferred probing for about 90 seconds during boot, and systemd goes into emergency mode.A fix for
onboard_usb_devhas been posted [1] but has not yet been reviewed. Revert this commit until the bug is fixed.Quoted 7 lines
Signed-off-by James Clark <[email protected]>---
I am sending this revert at the request of Thorsten Leemhuis, the Linux kernel regression tracker (see the last Link: above).Quoted 4 lines
Honestly, I don't see a good reason to revert it. The commit uncovered an existing bug (didn't cause a regression due to its own bad logic) and this bug has a pending fix on the list (how far are we from getting it upstream anyway?).
Quoted 7 lines
I agree. Before this commit,
HAVE_SHARED_GPIOSwas already selected byARCH_QCOMandARCH_APPLE, both enabled in the arm64 defconfig (and likely in most distro kernels). So I'd expect the BeagleY-AI to hit the same problem with a 7.3 defconfig kernel. I'd rather get theonboard_usb_devfix merged.However, it's Arnd's call since the patch went in via the soc tree.
Worse case, I can take the usb patch now, and get it merged into -final, if this is going to be a pain for any other platforms. Just let me know.
thanks,
greg k-h