Skip to contentSkip to conversation

Question regarding AMD Xilinx dt changes

DISCUSSION Felix Kuhlmann 3 participants 3 messages Mar 1, 2025 – Mar 3, 2025

lore
Share & tools
lore
#0 lore raw

Hello everybody,

I have a question about the AMD Xilinx remoteproc driver. In the past, the remoteproc driver for Xilinx products weren't part of mainline. To use them, Xilinx required users to use their own fork, linux-xlnx.

This tree contained the driver necessary for using remoteproc with the R5 cores on the Zynq-family of devices. I have managed to configure the device tree of my ZynqMP board so that the driver functions correctly.

This is where the problem lies: I have recently updated the kernel version to 6.14, using mainline since Xilinx now follows a "mainline-only" approach. There, I have discovered that the interfaces inside the driver that get information from the device-tree have changed significantly. So much in fact, that I have to rewrite the remoteproc section of my device-tree.

However, there is no updated documentation provided by Xilinx, and with their most recent documentation, it works on linux-xlnx 5.15, but not on 6.14 with the driver in its current form.

Asking in the AMD help forum rarely yields any usable answer, that's why wanted to ask you if there is any information present that I have overlooked thus far.

Looking at the entry under the "Documentation" folder also hasn't provided me with a satisfying answer, since the driver stopped at random parts during initialization.

Thank you in advance and kind regards,

Felix

#1 lore raw

Good morning,

Quoted 12 lines · Felix Kuhlmann

Hello everybody,

I have a question about the AMD Xilinx remoteproc driver. In the past, the remoteproc driver for Xilinx products weren't part of mainline. To use them, Xilinx required users to use their own fork, linux-xlnx.

This tree contained the driver necessary for using remoteproc with the R5 cores on the Zynq-family of devices. I have managed to configure the device tree of my ZynqMP board so that the driver functions correctly.

Quoted 7 lines

This is where the problem lies: I have recently updated the kernel version to 6.14, using mainline since Xilinx now follows a "mainline-only" approach. There, I have discovered that the interfaces inside the driver that get information from the device-tree have changed significantly. So much in fact, that I have to rewrite the remoteproc section of my device-tree.

That is expected.

Quoted 4 lines

However, there is no updated documentation provided by Xilinx, and with their most recent documentation, it works on linux-xlnx 5.15, but not on 6.14 with the driver in its current form.

The driver itself is fairly simple and aligned with the other remoteproc drivers. Even without documentation, it should be relatively easy to see what is expected from the DT. The bindings [1] are up to date and should also provide some guidance.

Mathieu

[1]. https://elixir.bootlin.com/linux/v6.13.5/source/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml

Quoted 12 lines

Asking in the AMD help forum rarely yields any usable answer, that's why wanted to ask you if there is any information present that I have overlooked thus far.

Looking at the entry under the "Documentation" folder also hasn't provided me with a satisfying answer, since the driver stopped at random parts during initialization.

Thank you in advance and kind regards,

Felix

#2 lore raw
Quoted 23 lines · Mathieu Poirier

Good morning,

Quoted 12 lines · Felix Kuhlmann

Hello everybody,

I have a question about the AMD Xilinx remoteproc driver. In the past, the remoteproc driver for Xilinx products weren't part of mainline. To use them, Xilinx required users to use their own fork, linux-xlnx.

This tree contained the driver necessary for using remoteproc with the R5 cores on the Zynq-family of devices. I have managed to configure the device tree of my ZynqMP board so that the driver functions correctly.

Quoted 7 lines

This is where the problem lies: I have recently updated the kernel version to 6.14, using mainline since Xilinx now follows a "mainline-only" approach. There, I have discovered that the interfaces inside the driver that get information from the device-tree have changed significantly. So much in fact, that I have to rewrite the remoteproc section of my device-tree.

Quoted 2 lines

That is expected.

Thanks Mathieu.

Yes New driver was re-designed. The device-tree interface is much more stable and designed in a way that removes some hard-codings from the driver. From mailine perspective nothing new there, because related bindings were never available in mainline kernel. SO if update is happening from vendor-kernel to mainline kernel, this is expected one-time. From now on, this interface will be stable for upcoming platforms as well.

Quoted 5 lines
Quoted 4 lines

However, there is no updated documentation provided by Xilinx, and with their most recent documentation, it works on linux-xlnx 5.15, but not on 6.14 with the driver in its current form.

Next releases will contain this new driver in future releases and with that new documentation will be provided. So far only downstream driver was used in BSP release and so documentation was provided accordingly.

Thanks,
Tanmay

Quoted 21 lines

The driver itself is fairly simple and aligned with the other remoteproc drivers. Even without documentation, it should be relatively easy to see what is expected from the DT. The bindings [1] are up to date and should also provide some guidance.

Mathieu

[1]. https://elixir.bootlin.com/linux/v6.13.5/source/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml

Quoted 12 lines

Asking in the AMD help forum rarely yields any usable answer, that's why wanted to ask you if there is any information present that I have overlooked thus far.

Looking at the entry under the "Documentation" folder also hasn't provided me with a satisfying answer, since the driver stopped at random parts during initialization.

Thank you in advance and kind regards,

Felix