Skip to content

arm: socfpga: spl: skip HPS SMMU secure config when node absent - #1034

Open
lokchenh wants to merge 1 commit into
u-boot:mainfrom
lokchenh:master_260805_smmu_absent
Open

lokchenh wants to merge 1 commit into
u-boot:mainfrom
lokchenh:master_260805_smmu_absent

Conversation

@lokchenh

@lokchenh lokchenh commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

CI Pipeline Test

spl_perform_arch_fixups() looks up the "socfpga-smmu-secure-config" node by name and calls hang() on any error, so every SoC64 platform is forced to carry the node even when it has nothing to program.

Treat a missing node (-ENODEV) as "nothing to do" and skip it, while still calling hang() on a genuine probe/dtreg failure when the node is present. This lets parts where the System-Manager TBU stream-ID / secure-SID setup is owned elsewhere (e.g. by ATF/BL31), or where the reset default already suffices, omit the node without hanging. Legacy SoC64 parts that still program it from U-Boot keep the existing error detection.

Please do not submit a Pull Request via github. Our project makes use of
mailing lists for patch submission and review. For more details please
see https://u-boot.readthedocs.io/en/latest/develop/sending_patches.html

The only exception to this is in order to trigger a CI loop on Azure prior
to posting of patches.

spl_perform_arch_fixups() looks up the "socfpga-smmu-secure-config"
node by name and calls hang() on any error, so every SoC64 platform is
forced to carry the node even when it has nothing to program.

Treat a missing node (-ENODEV) as "nothing to do" and skip it, while
still calling hang() on a genuine probe/dtreg failure when the node is
present. This lets parts where the System-Manager TBU stream-ID /
secure-SID setup is owned elsewhere (e.g. by ATF/BL31), or where the
reset default already suffices, omit the node without hanging. Legacy
SoC64 parts that still program it from U-Boot keep the existing error
detection.

Signed-off-by: Chen Huei Lok <chen.huei.lok@altera.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant