Repository navigation
arm64: mm: report LoC == 0 coherence once per boot - #541
Merged
Merged
Conversation
On a system whose CLIDR_EL1.LoC is 0 every non-coherent device is treated as DMA coherent, and arch_setup_dma_ops() warned about it for each one. The J616s prints about 1,500 of these warnings per boot, which hides real warnings on the console. The decision is the same for every device, so print it once at info level and keep the per-device line at debug level. The behaviour is unchanged. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a system whose CLIDR_EL1.LoC is 0, arch_setup_dma_ops() treats every non-coherent device as DMA coherent and warned once per device. The J616s and the Neo log about 1,500 of these warnings per boot, which buries real warnings on the console.
The decision is the same for every device, so this prints it once at info level and keeps the per-device line at debug level. Behaviour is unchanged.
Testing: arch/arm64/mm/dma-mapping.o builds with the universal config. The line count drop needs a J616s or Neo boot of a kernel carrying it.
🤖 Generated with Claude Code