summaryrefslogtreecommitdiff
path: root/include/linux/interconnect.h
diff options
context:
space:
mode:
authorRaviteja Laggyshetty <quic_rlaggysh@quicinc.com>2025-04-15 09:53:38 +0000
committerGeorgi Djakov <djakov@kernel.org>2025-04-15 14:13:36 +0300
commitd30f83d278a921485b3e877d03fe937bccfcbcdd (patch)
tree2f7db1449a3296a327738f732cdfe8826b1cb389 /include/linux/interconnect.h
parent289198fb51420def0f6fa88ed5808d0d38120ad0 (diff)
interconnect: core: Add dynamic id allocation support
The current interconnect framework relies on static IDs for node creation and registration, which limits topologies with multiple instances of the same interconnect provider. To address this, introduce icc_node_create_dyn() and icc_link_nodes() APIs to dynamically allocate IDs for interconnect nodes during creation and link. This change removes the dependency on static IDs, allowing multiple instances of the same hardware, such as EPSS L3. Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com> Link: https://lore.kernel.org/r/20250415095343.32125-3-quic_rlaggysh@quicinc.com Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'include/linux/interconnect.h')
-rw-r--r--include/linux/interconnect.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/interconnect.h b/include/linux/interconnect.h
index 97ac253df62c..e4b8808823ad 100644
--- a/include/linux/interconnect.h
+++ b/include/linux/interconnect.h
@@ -20,6 +20,9 @@
#define Mbps_to_icc(x) ((x) * 1000 / 8)
#define Gbps_to_icc(x) ((x) * 1000 * 1000 / 8)
+/* macro to indicate dynamic id allocation */
+#define ICC_ALLOC_DYN_ID -1
+
struct icc_path;
struct device;