diff options
author | Mathieu Poirier <[email protected]> | 2024-01-30 07:48:49 -0800 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2024-02-06 13:48:09 -0800 |
commit | 8b46dc5cfa5ffea279aed0fc05dc4b1c39a51517 (patch) | |
tree | 0a3dec97a1f5bf39450f971a9ed63ac1c631c9b1 /scripts/gdb/linux/proc.py | |
parent | a3dd84d308c561f5600c8e2260f693857022a2c4 (diff) |
remoteproc: Make rproc_get_by_phandle() work for clusters
Multi-cluster remoteproc designs typically have the following DT
declaration:
remoteproc-cluster {
compatible = "soc,remoteproc-cluster";
core0: core0 {
compatible = "soc,remoteproc-core"
memory-region;
sram;
};
core1: core1 {
compatible = "soc,remoteproc-core"
memory-region;
sram;
}
};
A driver exists for the cluster rather than the individual cores
themselves so that operation mode and HW specific configurations
applicable to the cluster can be made.
Because the driver exists at the cluster level and not the individual
core level, function rproc_get_by_phandle() fails to return the
remoteproc associated with the phandled it is called for.
This patch enhances rproc_get_by_phandle() by looking for the cluster's
driver when the driver for the immediate remoteproc's parent is not
found.
Reported-by: Ben Levinsky <[email protected]>
Signed-off-by: Mathieu Poirier <[email protected]>
Co-developed-by: Tarak Reddy <[email protected]>
Signed-off-by: Tarak Reddy <[email protected]>
Co-developed-by: Tanmay Shah <[email protected]>
Signed-off-by: Tanmay Shah <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions