HACK: j721e: rm-cfg: Use HOST_ALL for ethernet firmware flows ti2019.03 ti2019.03-rc2 ti2019.03-rc3 ti2019.03-rc4
authorNikhil Devshatwar <nikhil.nd@ti.com>
Fri, 9 Aug 2019 09:18:42 +0000 (14:48 +0530)
committerAndreas Dannenberg <dannenberg@ti.com>
Tue, 13 Aug 2019 13:43:08 +0000 (08:43 -0500)
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>
soc/j721e/evm/rm-cfg.c
soc/j721e/evm/sysfw_img_cfg.h

index d7bca667f2337d6b669cb1c9be7dae5342337323..d91dfe987c524181217c1e255ce783e0fcd8ffcd 100644 (file)
@@ -959,7 +959,7 @@ const struct boardcfg_rm_local j721e_boardcfg_rm_data = {
                        .num_resource = 64,
                        .type = RESASG_UTYPE (J721E_DEV_NAVSS0_UDMAP_0,
                                        RESASG_SUBTYPE_UDMAP_RX_FLOW_COMMON),
                        .num_resource = 64,
                        .type = RESASG_UTYPE (J721E_DEV_NAVSS0_UDMAP_0,
                                        RESASG_SUBTYPE_UDMAP_RX_FLOW_COMMON),
-                       .host_id = HOST_ID_MAIN_0_R5_0,
+                       .host_id = HOST_ID_ALL,
                },
                {
                        .start_resource = 236,
                },
                {
                        .start_resource = 236,
@@ -968,13 +968,6 @@ const struct boardcfg_rm_local j721e_boardcfg_rm_data = {
                                        RESASG_SUBTYPE_UDMAP_RX_FLOW_COMMON),
                        .host_id = HOST_ID_MAIN_0_R5_2,
                },
                                        RESASG_SUBTYPE_UDMAP_RX_FLOW_COMMON),
                        .host_id = HOST_ID_MAIN_0_R5_2,
                },
-               {
-                       .start_resource = 244,
-                       .num_resource = 56,
-                       .type = RESASG_UTYPE (J721E_DEV_NAVSS0_UDMAP_0,
-                                       RESASG_SUBTYPE_UDMAP_RX_FLOW_COMMON),
-                       .host_id = HOST_ID_ALL,
-               },
 
                /* Main Nav Free Ring */
                {
 
                /* Main Nav Free Ring */
                {
index f23ac95cd05b3b8175376d8159918c105c5c084a..5a626875a2ded403dac02a549d7890fe6062fa7b 100644 (file)
@@ -35,6 +35,6 @@
 #ifndef SYSFW_IMG_CFG_H
 #define SYSFW_IMG_CFG_H
 
 #ifndef SYSFW_IMG_CFG_H
 #define SYSFW_IMG_CFG_H
 
-#define BOARDCFG_RM_RESASG_ENTRIES     259
+#define BOARDCFG_RM_RESASG_ENTRIES     258
 
 #endif /* SYSFW_IMG_CFG_H */
 
 #endif /* SYSFW_IMG_CFG_H */