Various resources of the SOC like the number of DMA channels, number of interrupt router outputs, number of interrupt aggregator virtual interrupt numbers etc. are usually managed by a resource management system or a resource manager. In the case of AM65x devices, this is managed by the System Controller Firmware (SYSFW) running on the M3 core. Once the SYSFW is loaded on M3 and is initialized, we need to send a certain configuration data to the SYSFW regarding the resources we would be using. This is largely an array of resource assignment entries, with each entry specifying the start number of the resource, count or number of resource needed, type of resource, host id of the core which will request for this resource, etc. Later when the request for a specific resource is made, the SYSFW will cross check the request parameters with this already sent configuration data, and the requested resources will only be allocated if that falls within the range in this configuration data. We call this the Resource Management Board Configuration or RM boardcfg.
sciclient_defaultBoardcfg_rm.c
file at path {SDK_ROOT_DIRECTORY}\source\drivers\sciclient\sciclient_default_boardcfg\am65x\
location..resasg_entries = {
. This is an array of resource assignment entries. Resource assignment entries are structs with members{SDK_ROOT_DIRECTORY}\source\drivers\sciclient\include\tisci\am65x\tisci_hosts.h
file.HOST ID | Core |
---|---|
TISCI_HOST_ID_DMSC (0U) | DMSC ARM Cortex M3 |
TISCI_HOST_ID_MAIN_0_R5_0 (3U) | Cortex R5FSS0_0 (Non-Secure Context) |
TISCI_HOST_ID_R5_1 (4U) | Cortex R5FSS0_0 (Secure Context) |
TISCI_HOST_ID_R5_2 (5U) | Cortex R5FSS0_1 (Non-Secure Context) |
TISCI_HOST_ID_R5_3 (6U) | Cortex R5FSS0_1 (Secure Context) |
TISCI_HOST_ID_GPU_0 (30U) | GPU_0 (Non-Secure Context) |
TISCI_HOST_ID_GPU_1 (31U) | GPU_1 (Non-Secure Context) |
TISCI_HOST_ID_ICSSG_0 (50U) | ICSSG_0 (Non-Secure Context) |
TISCI_HOST_ID_ICSSG_1 (51U) | ICSSG_1 (Non-Secure Context) |
TISCI_HOST_ID_ICSSG_2 (52U) | ICSSG_2 (Non-Secure Context) |
Refer TISCI Host descriptions
sciclient_set_boardcfg
application are updated with these changes. For this one can follow SYSFW Board Config Generation section