Repository navigation
openamp_xlnx: name R5 TCM banks in remoteproc binding order - #881
Open
bentheredonethat wants to merge 1 commit into
Open
bentheredonethat wants to merge 1 commit into
bentheredonethat wants to merge 1 commit into
Conversation
In split mode Lopper named R5 core 1's TCM banks "atcm1" and "btcm1", and it wrote the banks in elfload order. The xlnx,zynqmp-r5fss binding gives reg-names by position: each split-mode core has "atcm0" and "btcm0", and lockstep core 0 adds "atcm1" and "btcm1". The output failed dt-validate, and an elfload that listed BTCM before ATCM was invalid on any core. The driver uses the names only as carveout labels, so Linux runtime behavior does not change. Map core 1's split-mode banks at 0xffe90000 and 0xffeb0000 to "atcm0" and "btcm0". Sort the TCM banks by lockstep bank and then by bank type, so reg, ranges, reg-names and power-domains follow binding order. R52 output keeps core 0's own banks, "atcm0", "btcm0" and "ctcm0", in split and lockstep modes. The xlnx,versal-net-r52fss binding and the driver do not describe an R52 core using the other core's TCM in lockstep, so that case is left out for now. Assisted-by: Codex:claude-opus-5.5 Signed-off-by: Ben Levinsky <[email protected]>
This branch has not been deployed
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.
In split mode Lopper named R5 core 1's TCM banks "atcm1" and "btcm1", and it wrote the banks in elfload order. The xlnx,zynqmp-r5fss binding gives reg-names by position: each split-mode core has "atcm0" and "btcm0", and lockstep core 0 adds "atcm1" and "btcm1". The output failed dt-validate, and an elfload that listed BTCM before ATCM was invalid on any core. The driver uses the names only as carveout labels, so Linux runtime behavior does not change.
Map core 1's split-mode banks at 0xffe90000 and 0xffeb0000 to "atcm0" and "btcm0". Sort the TCM banks by lockstep bank and then by bank type, so reg, ranges, reg-names and power-domains follow binding order.
R52 output keeps core 0's own banks, "atcm0", "btcm0" and "ctcm0", in split and lockstep modes. The xlnx,versal-net-r52fss binding and the driver do not describe an R52 core using the other core's TCM in lockstep, so that case is left out for now.
Assisted-by: Codex:claude-opus-5.5