aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikhil Devshatwar2019-08-09 04:18:42 -0500
committerAndreas Dannenberg2019-08-13 08:43:08 -0500
commit38a82e00f84efdf381dba001fff75e8411898e99 (patch)
tree46a3d9a1dacf67903d67f1791408acc1f4cf220b
parent3bd9e95a37000a63888ba52900f8596cd3b46a5a (diff)
downloadk3-image-gen-ti2019.03-rc3.tar.gz
k3-image-gen-ti2019.03-rc3.tar.xz
k3-image-gen-ti2019.03-rc3.zip
HACK: j721e: rm-cfg: Use HOST_ALL for ethernet firmware flowsti2019.03-rc4ti2019.03-rc3ti2019.03-rc2ti2019.03
Ethernet firmware acts as server for providing networking functionality to other clients. It allocates few flows from its pool for the client and then retuns the same to the client. Client does not own the resource it is borrowing from server and currently SYSFW lacks any APIs to allow shared ownership of this resource dyanmically. In absence of such an API, mark the ethernet firmware flows are HOST_ALL so that clients can call FLOW_CONFIG with the borrowed flow. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
-rw-r--r--soc/j721e/evm/rm-cfg.c9
-rw-r--r--soc/j721e/evm/sysfw_img_cfg.h2
2 files changed, 2 insertions, 9 deletions
diff --git a/soc/j721e/evm/rm-cfg.c b/soc/j721e/evm/rm-cfg.c
index d7bca667f..d91dfe987 100644
--- a/soc/j721e/evm/rm-cfg.c
+++ b/soc/j721e/evm/rm-cfg.c
@@ -959,7 +959,7 @@ const struct boardcfg_rm_local j721e_boardcfg_rm_data = {
959 .num_resource = 64, 959 .num_resource = 64,
960 .type = RESASG_UTYPE (J721E_DEV_NAVSS0_UDMAP_0, 960 .type = RESASG_UTYPE (J721E_DEV_NAVSS0_UDMAP_0,
961 RESASG_SUBTYPE_UDMAP_RX_FLOW_COMMON), 961 RESASG_SUBTYPE_UDMAP_RX_FLOW_COMMON),
962 .host_id = HOST_ID_MAIN_0_R5_0, 962 .host_id = HOST_ID_ALL,
963 }, 963 },
964 { 964 {
965 .start_resource = 236, 965 .start_resource = 236,
@@ -968,13 +968,6 @@ const struct boardcfg_rm_local j721e_boardcfg_rm_data = {
968 RESASG_SUBTYPE_UDMAP_RX_FLOW_COMMON), 968 RESASG_SUBTYPE_UDMAP_RX_FLOW_COMMON),
969 .host_id = HOST_ID_MAIN_0_R5_2, 969 .host_id = HOST_ID_MAIN_0_R5_2,
970 }, 970 },
971 {
972 .start_resource = 244,
973 .num_resource = 56,
974 .type = RESASG_UTYPE (J721E_DEV_NAVSS0_UDMAP_0,
975 RESASG_SUBTYPE_UDMAP_RX_FLOW_COMMON),
976 .host_id = HOST_ID_ALL,
977 },
978 971
979 /* Main Nav Free Ring */ 972 /* Main Nav Free Ring */
980 { 973 {
diff --git a/soc/j721e/evm/sysfw_img_cfg.h b/soc/j721e/evm/sysfw_img_cfg.h
index f23ac95cd..5a626875a 100644
--- a/soc/j721e/evm/sysfw_img_cfg.h
+++ b/soc/j721e/evm/sysfw_img_cfg.h
@@ -35,6 +35,6 @@
35#ifndef SYSFW_IMG_CFG_H 35#ifndef SYSFW_IMG_CFG_H
36#define SYSFW_IMG_CFG_H 36#define SYSFW_IMG_CFG_H
37 37
38#define BOARDCFG_RM_RESASG_ENTRIES 259 38#define BOARDCFG_RM_RESASG_ENTRIES 258
39 39
40#endif /* SYSFW_IMG_CFG_H */ 40#endif /* SYSFW_IMG_CFG_H */