Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ODROID XU4 boot by disabling PROVE_LOCKING in kernel #3158

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Conversation

sairon
Copy link
Member

@sairon sairon commented Feb 8, 2024

ODROID XU4 fails to boot after update to Linux 6.6. Comparing downstream kernel config with upstream exynos defconfig shows it has various lockdep options enabled, and PROVE_LOCKING seems to be the one that causes the issue. It seems it (or any of PROVE_RCU, TRACE_IRQFLAGS or PREEMPTIRQ_TRACEPOINTS) which get enabled along with it) probably triggers some timing issues on the I2C bus, which causes the main PMIC to fail to properly initialize all voltages.

Since these options should not have any real impact on our system, the easiest option is to disable them. If we need them, or want to stay closer to upstream defconfig, further debugging is needed.

Fixes #3137

ODROID XU4 fails to boot after update to Linux 6.6. Comparing downstream
kernel config with upstream exynos defconfig shows it has various lockdep
options enabled, and PROVE_LOCKING seems to be the one that causes the
issue. It seems it (or any of PROVE_RCU, TRACE_IRQFLAGS or
PREEMPTIRQ_TRACEPOINTS) which get enabled along with it) probably
triggers some timing issues on the I2C bus, which causes the main PMIC
to fail to properly initialize all voltages.

Since these options should not have any real impact on our system, the
easiest option is to disable them. If we need them, or want to stay
closer to upstream defconfig, further debugging is needed.

Fixes #3137
@sairon sairon added board/odroid Hardkernel's ODROID Boards linux Linux kernel related issue labels Feb 8, 2024
@sairon sairon requested a review from agners February 8, 2024 08:10
@sairon sairon merged commit ad4493a into dev Feb 8, 2024
2 checks passed
@sairon sairon deleted the fix-xu4-boot branch February 8, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
board/odroid Hardkernel's ODROID Boards cla-signed linux Linux kernel related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ODROID-XU4 not starting on 12.0.dev20240202
2 participants