Skip to content

openamp_xlnx: name R5 TCM banks in remoteproc binding order - #881

Open
bentheredonethat wants to merge 1 commit into
devicetree-org:masterfrom
bentheredonethat:openamp-xlnx-plugin-to-match-binding
Open

bentheredonethat wants to merge 1 commit into
devicetree-org:masterfrom
bentheredonethat:openamp-xlnx-plugin-to-match-binding

Conversation

@bentheredonethat

Copy link
Copy Markdown
Collaborator

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

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

No deployments
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