updating the size of tx and rx frames inside memset
Diable LPM due to build issue
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
LPM: Function and variable name fixes
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
[PDK-10305][PDK-10306][PDK-10331][PDK-10516][PDK-10532] LPM Library Fixes
- updated API names in compliance with doxygen
- added API comments for doxygen documentation
- removed lpm from PDK_COMMON_COMP
- added a gitignore file
- reomoved usage of pmic_ut_common
- used TimerP instead of local implementation
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
- updated API names in compliance with doxygen
- added API comments for doxygen documentation
- removed lpm from PDK_COMMON_COMP
- added a gitignore file
- reomoved usage of pmic_ut_common
- used TimerP instead of local implementation
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
Migrating to SYSFW version v2021.09
Signed-off-by: Don Dominic <a0486429@ti.com>
Signed-off-by: Don Dominic <a0486429@ti.com>
sciclient: Update osal_delay definition for rm_pm_hal
Recent update to rm_pm_hal and interface for osal clock functions
removed static inline definition of osal_delay.
Instead of keeping static inline function defined in the header, break
out the osal callout dependencies from rm_pm_hal to PDK through a
dedicated osal glue layer to resolve the interface compatibilities
between both osal definitions.
Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
Recent update to rm_pm_hal and interface for osal clock functions
removed static inline definition of osal_delay.
Instead of keeping static inline function defined in the header, break
out the osal callout dependencies from rm_pm_hal to PDK through a
dedicated osal glue layer to resolve the interface compatibilities
between both osal definitions.
Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
changed the test name and corresponding file names from icssg_enet to enet_icssg
PDK-9596: Migrated ICSSG EMAC test to ENET LLD
Adding the updated code for icssg with enet lld
New folder for board diag enet lld created
Signed-off-by: Parth Nagpal <x1080849@ti.com>
ICSSG Enet LLD
Tested code with multiple ports
Signed-off-by: Parth Nagpal <x1080849@ti.com>
Iterations updated for open and close port
Port is opened and closed every iteration
Signed-off-by: Parth Nagpal <x1080849@ti.com>
support added for building on evm
TX and RX flags replaced with corresponding semaphores, log format updated
Adding the updated code for icssg with enet lld
New folder for board diag enet lld created
Signed-off-by: Parth Nagpal <x1080849@ti.com>
ICSSG Enet LLD
Tested code with multiple ports
Signed-off-by: Parth Nagpal <x1080849@ti.com>
Iterations updated for open and close port
Port is opened and closed every iteration
Signed-off-by: Parth Nagpal <x1080849@ti.com>
support added for building on evm
TX and RX flags replaced with corresponding semaphores, log format updated
lpm:fix packaging issue
Signed-off-by: Badri S <badri@ti.com>
Signed-off-by: Badri S <badri@ti.com>
freertos_c7x: remove clec secure claim clearing out of OS_init
clecl secure claim clearning should not be in OS_init.
It should be done in secure supervisor mode in InitMmu callback
Updated the IPC example to invoke OsalCfgClecAccessCtrl(false)
from its custom mmu function
Signed-off-by: Badri S <badri@ti.com>
clecl secure claim clearning should not be in OS_init.
It should be done in secure supervisor mode in InitMmu callback
Updated the IPC example to invoke OsalCfgClecAccessCtrl(false)
from its custom mmu function
Signed-off-by: Badri S <badri@ti.com>
freertos_c7x: changed the dmtimer allocation for c7x core
changed dmtimer assignemnt for c7x_1 core and changed
the timer interrupt as pulse to resolve the dmtimer
dual interrupt issue
Signed-off-by: Badri S <badri@ti.com>
changed dmtimer assignemnt for c7x_1 core and changed
the timer interrupt as pulse to resolve the dmtimer
dual interrupt issue
Signed-off-by: Badri S <badri@ti.com>
sciclient: Fix dependencies from latest rm_pm_hal change
Recent rm_pm_hal change refactored some header file dependencies. Update
sciclient to account for these changes.
Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
Recent rm_pm_hal change refactored some header file dependencies. Update
sciclient to account for these changes.
Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
PCIe Sample Example not working with mpu
Removing console printf as test hangs there
Signed-off-by: Parth Nagpal <x1080849@ti.com>
Removing console printf as test hangs there
Signed-off-by: Parth Nagpal <x1080849@ti.com>
moved the starting address of DDR0 region of mpu by 0x8000000
added the missing modifications to .h file and makefile
LPM Library Development
- put the sequence in a loop
- addressed PR review comments
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
- put the sequence in a loop
- addressed PR review comments
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
Moved the LPM library to drv folder
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
Go to MCU only mode from ACTIVE mode
- Validated trasition ACTIVE -> MCU -> ACTIVE -> MCU -> ACTIVE
- PMIC drv has some issues, using i2c calls for now
Signed-off-by: Karan Saxena <karan@ti.com>
- Validated trasition ACTIVE -> MCU -> ACTIVE -> MCU -> ACTIVE
- PMIC drv has some issues, using i2c calls for now
Signed-off-by: Karan Saxena <karan@ti.com>
PDK-10536: SBL: Release MCU1_0 before jumping to app while skipping MCU reset
- In case of booting Linux from CUST SBL by skipping reset of MCU R5 then
Linux is not able to attach to MCU R5 in IPC-only mode as the MCU1_0 is not
released by the SBL.
- The SBL should call TISCI_MSG_PROC_RELEASE in the case where MCU reset is
skipped i.e. SBL_SKIP_MCU_RESET is defined.
- A clean release from SBL running on MCU1_0 will mean that A72 running Linux
can call TISCI_MSG_PROC_REQUEST and attach in IPC-only mode. This will enable
IPC between MCU R5 and A72.
Signed-off-by: Karan Saxena <karan@ti.com>
- In case of booting Linux from CUST SBL by skipping reset of MCU R5 then
Linux is not able to attach to MCU R5 in IPC-only mode as the MCU1_0 is not
released by the SBL.
- The SBL should call TISCI_MSG_PROC_RELEASE in the case where MCU reset is
skipped i.e. SBL_SKIP_MCU_RESET is defined.
- A clean release from SBL running on MCU1_0 will mean that A72 running Linux
can call TISCI_MSG_PROC_REQUEST and attach in IPC-only mode. This will enable
IPC between MCU R5 and A72.
Signed-off-by: Karan Saxena <karan@ti.com>
LPM Library Development
- Added VTM temp sensor disabling API
- Copyright year fixes
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
- Added VTM temp sensor disabling API
- Copyright year fixes
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
LPM Library Development
- Example running successfully
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
- Example running successfully
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
LPM Library Development
- Example building successfully
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
- Example building successfully
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
typecast for volatile variable added inside memset function
Added API for setting pinmux from example apps
Added API to allow example apps to set their own pinmux.
Signed-off-by: Parth Nagpal <x1080849@ti.com>
Added API to allow example apps to set their own pinmux.
Signed-off-by: Parth Nagpal <x1080849@ti.com>
Fixed PDK-10698:[FreeRTOS] Interrupt priority cannot be set
Interrupt priorities are set only in the Intc_IntRegister register, but
in the current code, priority is updated after this API call.
Moved priority setting before this API call.
Also updated error checks.
Signed-off-by: Brijesh Jadav <brijesh.jadav@ti.com>
Interrupt priorities are set only in the Intc_IntRegister register, but
in the current code, priority is updated after this API call.
Moved priority setting before this API call.
Also updated error checks.
Signed-off-by: Brijesh Jadav <brijesh.jadav@ti.com>
c7x freertos: udma ut custom lnk cmd file
add custom linker cmd file for udma ut
testcases for c7x freertos build
Signed-off-by: Badri S <badri@ti.com>
add custom linker cmd file for udma ut
testcases for c7x freertos build
Signed-off-by: Badri S <badri@ti.com>
freertos c7x: address review comments
review comments addressed in PR
https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/pull-requests/2147/overview
Signed-off-by: Badri S <badri@ti.com>
review comments addressed in PR
https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/pull-requests/2147/overview
Signed-off-by: Badri S <badri@ti.com>
[PDK-9353] freertos c7x cpu port
freertos c7x cpu port
OS UT validated
-- freertos ut
-- freertos task_switch
-- OSAL_TestApp_freertos
-- freertos_test_posix
Drivers validated
-- udma
-- uart
-- gpio
-- ipc
Signed-off-by: Badri S <badri@ti.com>
freertos c7x cpu port
OS UT validated
-- freertos ut
-- freertos task_switch
-- OSAL_TestApp_freertos
-- freertos_test_posix
Drivers validated
-- udma
-- uart
-- gpio
-- ipc
Signed-off-by: Badri S <badri@ti.com>
added volatile keyword for tx and rx buffers to remove compiler optimization
Removed pinmux config
if PDK_RAW_BOOT is not defined pinmux config is not needed
Signed-off-by: Parth Nagpal <x1080849@ti.com>
if PDK_RAW_BOOT is not defined pinmux config is not needed
Signed-off-by: Parth Nagpal <x1080849@ti.com>
USB device diagnoatic test failure on mcu core
Fixed by replacing the interrupt configuration from CSI to sciclient
Signed-off-by: Parth Nagpal <x1080849@ti.com>
Fixed by replacing the interrupt configuration from CSI to sciclient
Signed-off-by: Parth Nagpal <x1080849@ti.com>
[QNX] Sciclient: Update to support QNX resource manager
Signed-off-by: Praveen Rao <prao@ti.com>
Signed-off-by: Praveen Rao <prao@ti.com>
packages/ti/boot/keywriter/tifs_bin/j7200/ti-fs-keywriter.bin: Add a dummy binary to enable compilation
Add a dummy binary to enable compilation for J7200
Signed-off-by: Keerthy <j-keerthy@ti.com>
Add a dummy binary to enable compilation for J7200
Signed-off-by: Keerthy <j-keerthy@ti.com>
[PDK-9714] Build: C66x/C7x: Disable compiler option --program_level_compile
- This is to support FreeRTOS ROV
- When --program_leve_compile is enabled, static variables symbols gets appended with
"$0" and hence can't be viewed from CCS ROV
Signed-off-by: Don Dominic <a0486429@ti.com>
- This is to support FreeRTOS ROV
- When --program_leve_compile is enabled, static variables symbols gets appended with
"$0" and hence can't be viewed from CCS ROV
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-9714] Build: R5F/C66x/C7x: Copy FreeROTS ROV .xs file to Binary folder
- Update makefile rules to copy freertos 'syscgf_c.rov.xs' file to binary folder
- CCS ROV expects this file in th esame directory as the ELF file.
Signed-off-by: Don Dominic <a0486429@ti.com>
- Update makefile rules to copy freertos 'syscgf_c.rov.xs' file to binary folder
- CCS ROV expects this file in th esame directory as the ELF file.
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-9714] FreeRTOS: ROV: Add syscfg_c.rov.xs file
- This file refers to FreeRTOS.rov.js
- The base path to referred file should be set as XDCPATH in CCS
- This will be copied to binary folder while building any freertos application
Signed-off-by: Don Dominic <a0486429@ti.com>
- This file refers to FreeRTOS.rov.js
- The base path to referred file should be set as XDCPATH in CCS
- This will be copied to binary folder while building any freertos application
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-9714] FreeRTOS: ROV: Add FreeRTOS.rov.js
- Add FreeRTOS module
- Supports following views:-
- Heap
- Semaphore, Mutex and Queue Instances
- Task Instances
- Task Modules
- Timer Instances
Signed-off-by: Don Dominic <a0486429@ti.com>
- Add FreeRTOS module
- Supports following views:-
- Heap
- Semaphore, Mutex and Queue Instances
- Task Instances
- Task Modules
- Timer Instances
Signed-off-by: Don Dominic <a0486429@ti.com>
keywriter: Add support for j7200
Add support for j7200
Signed-off-by: Keerthy <j-keerthy@ti.com>
Add support for j7200
Signed-off-by: Keerthy <j-keerthy@ti.com>
packages/ti/boot/keywriter/soc/j7200/keywriter_utils.c: Add J7200 utils
Add J7200 utils. This is still to be validated on Hera PMIC board.
Patch adds support for both version.
This also corrects some comments on the j721e files as well.
Signed-off-by: Keerthy <j-keerthy@ti.com>
Add J7200 utils. This is still to be validated on Hera PMIC board.
Patch adds support for both version.
This also corrects some comments on the j721e files as well.
Signed-off-by: Keerthy <j-keerthy@ti.com>
packages: ti: boot: keywriter: soc: Factor out common files in to a folder to avoid duplication
Factor out common files in to a folder to avoid duplication
Signed-off-by: Keerthy <j-keerthy@ti.com>
Factor out common files in to a folder to avoid duplication
Signed-off-by: Keerthy <j-keerthy@ti.com>
KEYWRITER: Moving J7200 boardcfgs to keywriter
Moving J7200 boardcfgs to keywriter
Signed-off-by: Keerthy <j-keerthy@ti.com>
Moving J7200 boardcfgs to keywriter
Signed-off-by: Keerthy <j-keerthy@ti.com>
PCIe diagnostic test failing for mpu core
Test hanging during data read due to optimization
Fixed by adding volatile keyword
Signed-off-by: Parth Nagpal <x1080849@ti.com>
Test hanging during data read due to optimization
Fixed by adding volatile keyword
Signed-off-by: Parth Nagpal <x1080849@ti.com>
DSS: Updated eDP firmware_20210916_mhdp_fw_2_1_0
Signed-off-by: Brijesh Jadav <brijesh.jadav@ti.com>
Signed-off-by: Brijesh Jadav <brijesh.jadav@ti.com>
[OSAL][QNX] Add mutex support and set timeout in msec
Signed-off-by: Praveen Rao <prao@ti.com>
Signed-off-by: Praveen Rao <prao@ti.com>
Bin2c removing false stderr prints
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
OSAL: UT: Load Test Updates
- Add new print task for printing tasks stats periodically
- Use semaphores to signal load tasks
Signed-off-by: Don Dominic <a0486429@ti.com>
- Add new print task for printing tasks stats periodically
- Use semaphores to signal load tasks
Signed-off-by: Don Dominic <a0486429@ti.com>
[ADASVISION-4927] OSAL: FreeRTOS: LoadP Updates
- Protect critical sections by suspending schedular
- Also add check for load overflow
Signed-off-by: Don Dominic <a0486429@ti.com>
- Protect critical sections by suspending schedular
- Also add check for load overflow
Signed-off-by: Don Dominic <a0486429@ti.com>
[PSDKQA-328][QNX] ipc_lld: Implemented timeout in RPMessage_recv()
Signed-off-by: Praveen Rao <prao@ti.com>
Signed-off-by: Praveen Rao <prao@ti.com>
FreeRTOS: C66x: J721E: Update L2 Cache Size to 64KB
- Update portCONFIGURE_CACHE_L2_SIZE in FreeRTOSConfig.h for j721e to 64KB
- This is to match the default SysBIOS settings in PSDK
Signed-off-by: Don Dominic <a0486429@ti.com>
- Update portCONFIGURE_CACHE_L2_SIZE in FreeRTOSConfig.h for j721e to 64KB
- This is to match the default SysBIOS settings in PSDK
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10528] OSAL: C66x Cache: Cleanup and remove duplicate code
- Removing the duplicate code in all cache maintenance APIs
by adding new generic static function CacheP_block
- Defines a prototype for CSL Cache Ops Function
and pass the CSL function pointer to the new generic static function
Signed-off-by: Don Dominic <a0486429@ti.com>
- Removing the duplicate code in all cache maintenance APIs
by adding new generic static function CacheP_block
- Defines a prototype for CSL Cache Ops Function
and pass the CSL function pointer to the new generic static function
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10528] OSAL: C66x Cache: Optimize Cache Maintenance APIs
- Add option to enable/disable atomic cache operations
- Added new define CACHEP_ATOMIC_BLOCK_SIZE
- This can be set to 0 to disable atomic cache operations
- In this case it uses Max word count per cache operations
- Convert incCnt to bytes(from words) since CSL API expects in bytes
- Set CACHEP_ATOMIC_BLOCK_SIZE to 0 by default, to optimize performance
- With this update Cache Maintenance APIs performance is comparable with SysBIOS
Signed-off-by: Don Dominic <a0486429@ti.com>
- Add option to enable/disable atomic cache operations
- Added new define CACHEP_ATOMIC_BLOCK_SIZE
- This can be set to 0 to disable atomic cache operations
- In this case it uses Max word count per cache operations
- Convert incCnt to bytes(from words) since CSL API expects in bytes
- Set CACHEP_ATOMIC_BLOCK_SIZE to 0 by default, to optimize performance
- With this update Cache Maintenance APIs performance is comparable with SysBIOS
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10107] FreeRTOS: C66x: Switch to IDLE from Idle Task
- Switch to IDLE mode from Idle Task hook function
Signed-off-by: Don Dominic <a0486429@ti.com>
- Switch to IDLE mode from Idle Task hook function
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10107] FreeRTOS: R5F: Switch to WFI from Idle Task
- Switch to WFI mode from Idle Task Hook Function
Signed-off-by: Don Dominic <a0486429@ti.com>
- Switch to WFI mode from Idle Task Hook Function
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10107] FreeRTOS: R5F: Use OS Tick Timer instead of PMU Counter
- Use OS Tick timer to calculate current time in micro seconds,
instead of using PMU counter
- OS Ticks can be used to get currrent time in milli sec resolution
- Calculate the residual by reading current count of OS Timer using TimerP APIs
and converting to microseconds
- Remove PMU Counter related functions
- This update is necesary to switch to wfi from Idle task
since on wfi PMU counter also halts and will affect load measurements.
Signed-off-by: Don Dominic <a0486429@ti.com>
- Use OS Tick timer to calculate current time in micro seconds,
instead of using PMU counter
- OS Ticks can be used to get currrent time in milli sec resolution
- Calculate the residual by reading current count of OS Timer using TimerP APIs
and converting to microseconds
- Remove PMU Counter related functions
- This update is necesary to switch to wfi from Idle task
since on wfi PMU counter also halts and will affect load measurements.
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10107] FreeRTOS: C66x: Use OS Tick Timer instead of TSC Counter
- Use OS Tick timer to calculate current time in micro seconds,
instead of using TSC counter
- OS Ticks can be used to get currrent time in milli sec resolution
- Calculate the residual by reading current count of OS Timer using TimerP APIs
and converting to microseconds
Signed-off-by: Don Dominic <a0486429@ti.com>
- Use OS Tick timer to calculate current time in micro seconds,
instead of using TSC counter
- OS Ticks can be used to get currrent time in milli sec resolution
- Calculate the residual by reading current count of OS Timer using TimerP APIs
and converting to microseconds
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10107] OSAL: TimerP: Add new APIs to get timer reload count and current count
- Added New APIs:-
- TimerP_getReloadCount: Get timer reload count
- TimerP_getCount: Get timer current count
- Added implementation for DMTimer and RTI Timer (v1/v2)
- Not implemented for timer64(v0) - K2 devices
Signed-off-by: Don Dominic <a0486429@ti.com>
- Added New APIs:-
- TimerP_getReloadCount: Get timer reload count
- TimerP_getCount: Get timer current count
- Added implementation for DMTimer and RTI Timer (v1/v2)
- Not implemented for timer64(v0) - K2 devices
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10423] IPC: RPMessage Buffer Size Byte Alignment update
- Align MSGBUFFERSIZE to HEAPALIGNMENT
- Related updates in buffer size used by examples
- 64bit cores was reporting failures in some cases without this update
Signed-off-by: Don Dominic <a0486429@ti.com>
- Align MSGBUFFERSIZE to HEAPALIGNMENT
- Related updates in buffer size used by examples
- 64bit cores was reporting failures in some cases without this update
Signed-off-by: Don Dominic <a0486429@ti.com>
IPC: C66x: FreeRTOS multicore_echo_testb Example Build Fix
- Fix Build issues with ex02_bios_multicore_echo_testb_freertos for C66x.
- BTCM test makefile path is one level down and needs update in INCDIR
Signed-off-by: Don Dominic <a0486429@ti.com>
- Fix Build issues with ex02_bios_multicore_echo_testb_freertos for C66x.
- BTCM test makefile path is one level down and needs update in INCDIR
Signed-off-by: Don Dominic <a0486429@ti.com>
IPC: C66x: Build Fix
- Fix Build issues with ipc_ech_testb_freertos for C66x.
- BTCM test makefile path is one level down and needs update in INCDIR
Signed-off-by: Don Dominic <a0486429@ti.com>
- Fix Build issues with ipc_ech_testb_freertos for C66x.
- BTCM test makefile path is one level down and needs update in INCDIR
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10425] Build Fix for SBL
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
[PDK -9356] IPC: Performance Test Updates
- Rename main_rtos.c to main.c
- To avoid multiple source fiel with same name
- First instance is examples/common/src folder
- Add function to Disable Cache for Shared DDR Region and IPC Data Region
- Add the following which was missing
- C66x Timer Interrupt configuration
- Function was defined in ipc_apputils, but was not used
- Add C7x Clec Configuration Timer Interrupt
- Implemented the fxn as well which was missing
- Related makefile updates
Signed-off-by: Don Dominic <a0486429@ti.com>
- Rename main_rtos.c to main.c
- To avoid multiple source fiel with same name
- First instance is examples/common/src folder
- Add function to Disable Cache for Shared DDR Region and IPC Data Region
- Add the following which was missing
- C66x Timer Interrupt configuration
- Function was defined in ipc_apputils, but was not used
- Add C7x Clec Configuration Timer Interrupt
- Implemented the fxn as well which was missing
- Related makefile updates
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-9356] IPC: FreeRTOS C66x - Linker File and Memory Map Updates
- Swap C66x Cores IPC_DATA section for proper caching
- to overcome the limitation - "16 MB" being the minimum cache block size in C66x
- Requirement is to disable cache for IPC_DATA only(1 MB)
- Each C66x core mark 16MB as un-cached(swapped default allocation) and place the section to be uncached here.
Rest all section are palced in default allocated regions (which remains cached from current cores perspective)
- Approach similar to SysBIOS case
- Also fix typo in c66xdsp_2 linker file
Signed-off-by: Don Dominic <a0486429@ti.com>
- Swap C66x Cores IPC_DATA section for proper caching
- to overcome the limitation - "16 MB" being the minimum cache block size in C66x
- Requirement is to disable cache for IPC_DATA only(1 MB)
- Each C66x core mark 16MB as un-cached(swapped default allocation) and place the section to be uncached here.
Rest all section are palced in default allocated regions (which remains cached from current cores perspective)
- Approach similar to SysBIOS case
- Also fix typo in c66xdsp_2 linker file
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-9356] IPC : FreeRTOS C66x Migration - Cache Related Updates
- Disable Cache for Shared DDR Region and IPC Data Region
- In case of SysBIOS, cache was disable for this region via .cfg file
- Use OSAL APIs for FreeRTOS
- Related makefile updates
Signed-off-by: Don Dominic <a0486429@ti.com>
- Disable Cache for Shared DDR Region and IPC Data Region
- In case of SysBIOS, cache was disable for this region via .cfg file
- Use OSAL APIs for FreeRTOS
- Related makefile updates
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-9355] FreeRTOS: C66x: Use OSAL CacheP APIs to enable cache for DDR
- Instead of custom implementation in freertos portable layer to enable cache
for DDR region by configuring the MAR registers, use the new OSAl CacheP_setMar API
- Validated FreeRTOS UT on j721e c66xdsp_1/c66xdsp_2
Signed-off-by: Don Dominic <a0486429@ti.com>
- Instead of custom implementation in freertos portable layer to enable cache
for DDR region by configuring the MAR registers, use the new OSAl CacheP_setMar API
- Validated FreeRTOS UT on j721e c66xdsp_1/c66xdsp_2
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-9356] OSAL: CacheP: Add new APIs for C66x Cache Enable/Disable
- Add following APIs in nonos/freertos CacheP OSAL implementation
- CacheP_setMar
- To Enable/Disable cache for a region
- This API sets the corressponding MAR registers
- CacheP_getMar
- To get the current MAR register value for block
- Add typedef for MAR register setting type definition
Signed-off-by: Don Dominic <a0486429@ti.com>
- Add following APIs in nonos/freertos CacheP OSAL implementation
- CacheP_setMar
- To Enable/Disable cache for a region
- This API sets the corressponding MAR registers
- CacheP_getMar
- To get the current MAR register value for block
- Add typedef for MAR register setting type definition
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10423] IPC: Address Review Comments - Remove multiple macros redefinition
- Remove multiple macros redefinition in ipc_perf_test source file
- These macros are already defined in common/src/ipc_setup.h
Signed-off-by: Don Dominic <a0486429@ti.com>
- Remove multiple macros redefinition in ipc_perf_test source file
- These macros are already defined in common/src/ipc_setup.h
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10423] IPC: Fix RPMessage Heap Corruption due to wrong size
Fix:
- Update MSGBUFFERSIZE to max data payload + header RPMessage_MsgElem size
- This is used to create multiple heaps for Rx messages
- Added new define IPC_MAX_DATA_PAYLOAD
- Related updates in Rx buffers size for examples
Issue:
- Wrong sized heap was causing corruption in subsequent heap block's handle(next/prev elem)
Validation:
- Issue reproduced and fix validated on RTOS multicore echo test with payload of size 496 bytes
and invoking heap alloc in RPMessage_enqueMsg
Signed-off-by: Don Dominic <a0486429@ti.com>
Fix:
- Update MSGBUFFERSIZE to max data payload + header RPMessage_MsgElem size
- This is used to create multiple heaps for Rx messages
- Added new define IPC_MAX_DATA_PAYLOAD
- Related updates in Rx buffers size for examples
Issue:
- Wrong sized heap was causing corruption in subsequent heap block's handle(next/prev elem)
Validation:
- Issue reproduced and fix validated on RTOS multicore echo test with payload of size 496 bytes
and invoking heap alloc in RPMessage_enqueMsg
Signed-off-by: Don Dominic <a0486429@ti.com>
PDK-9368: drv/ipc: j721s2: Fix OCM RAM addr range for mcu1_0
Fixes OCMRAM address range in alternate usage mcu1_0 linker
cmd files to match with new X509 header address for J721S2.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
Fixes OCMRAM address range in alternate usage mcu1_0 linker
cmd files to match with new X509 header address for J721S2.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
PDK-9368: drv/ipc: Update VRING addr and fix comments
Changes VRING address for J721S2 to 0xA8000000, since
there are only 9 processor cores on the SoC and we can
compress the memory layout for IPC.
Also takes care of review comments on drv/ipc updates
for J721S2.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
Changes VRING address for J721S2 to 0xA8000000, since
there are only 9 processor cores on the SoC and we can
compress the memory layout for IPC.
Also takes care of review comments on drv/ipc updates
for J721S2.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
PDK-9368: drv/ipc: Initial build for j721s2
Initial IPC driver support for J721S2. Mainly
for support of ipc_echo_testb build for mcu1_0
to support sciserver functionality for testing
Linux boot on A72.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
Initial IPC driver support for J721S2. Mainly
for support of ipc_echo_testb build for mcu1_0
to support sciserver functionality for testing
Linux boot on A72.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
Keywriter build fix
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
[PDK-10497] OSAL: TimerP: Fix Timer TIOCP_CFG Register configuration
- Set 'emulation mode' and 'idle mode' in TIOCP_CFG
after Soft Reset(if required)
- Earlier, it was setting all bits except soft reset bit to 1 due to wrong implementation
Signed-off-by: Don Dominic <a0486429@ti.com>
- Set 'emulation mode' and 'idle mode' in TIOCP_CFG
after Soft Reset(if required)
- Earlier, it was setting all bits except soft reset bit to 1 due to wrong implementation
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-9546] SafeRTOS: CPU Port Lib for J721E R5F
- Updated SafeRTOS Version for j721e in pdk_tools_path.mk
- 01_00_j721e_r5f_eval
- Updates safertos lib makefile and component.mk
- Enable j721e all r5f cores (mcu1_0/mcu1_1/mcu2_0/mcu2_1/mcu3_0/mcu$
- Add rule for safertos_demo
Signed-off-by: Don Dominic <a0486429@ti.com>
- Updated SafeRTOS Version for j721e in pdk_tools_path.mk
- 01_00_j721e_r5f_eval
- Updates safertos lib makefile and component.mk
- Enable j721e all r5f cores (mcu1_0/mcu1_1/mcu2_0/mcu2_1/mcu3_0/mcu$
- Add rule for safertos_demo
Signed-off-by: Don Dominic <a0486429@ti.com>
[QNX] Ipc: Update to support j7200
Signed-off-by: Praveen Rao <prao@ti.com>
Signed-off-by: Praveen Rao <prao@ti.com>
[QNX] Osal: Update for QNX
Signed-off-by: Praveen Rao <prao@ti.com>
Signed-off-by: Praveen Rao <prao@ti.com>
[PDK-10284] : Porting FATFS examples to freertos.
[PDK-10417] Fix for out of bound array access
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
McSPI App name and packaging fix
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
[PDK-10459] Keywriter packaging fix
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
Fix for pointer from integer cast. Build fails for MPU core
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
[QNX] Board: Build: Update for QNX build
Signed-off-by: Praveen Rao <prao@ti.com>
Signed-off-by: Praveen Rao <prao@ti.com>
21 months ago[PDK-9356] FreeRTOS C66x: UDMA UT linker append updates REL.CORESDK.08.00.01.13 REL.CORESDK.08.00.01.14
[PDK-9356] FreeRTOS C66x: UDMA UT linker append updates
- Add new linker append cmd file for c66x freertos
- Rename current file for r5f
- makefile updates
Signed-off-by: Don Dominic <a0486429@ti.com>
- Add new linker append cmd file for c66x freertos
- Rename current file for r5f
- makefile updates
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-9356]FreeRTOS C66x: IPC Migration Updates
- Linker File updates
- Add ipc custom linker files for c66x freertos
- Rename main_tirtos.c to main_rtos.c
- Make file and Source updates related to R5F only TCMB tests
Signed-off-by: Don Dominic <a0486429@ti.com>
- Linker File updates
- Add ipc custom linker files for c66x freertos
- Rename main_tirtos.c to main_rtos.c
- Make file and Source updates related to R5F only TCMB tests
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-9356][PDK-9357][PDK-10453] FreeRTOS C66x: Port PDK C66x Examples
- Migration of following C66x Driver examples
- UDMA
- GPIO
- I2C
- McASP
- Sciclient
- UART
- Updates in DMTimer used by OS - interrupt configuration
- OSAL UT updates for the same
Signed-off-by: Don Dominic <a0486429@ti.com>
- Migration of following C66x Driver examples
- UDMA
- GPIO
- I2C
- McASP
- Sciclient
- UART
- Updates in DMTimer used by OS - interrupt configuration
- OSAL UT updates for the same
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10387] FreeRTOS C66x: Enable FreeRTOS Builds for C66x cores
- Updated top level ti/build/makerules component.mk
to remove c66xdsp_1 and c66xdsp_2 from EXCLUDE_CORES for FreeRTOS
- This is the only change required to enable FreeRTOS Build
of all applicable C66x RTOS examples
(which already uses macros to generate rules in component.mk)
Signed-off-by: Don Dominic <a0486429@ti.com>
- Updated top level ti/build/makerules component.mk
to remove c66xdsp_1 and c66xdsp_2 from EXCLUDE_CORES for FreeRTOS
- This is the only change required to enable FreeRTOS Build
of all applicable C66x RTOS examples
(which already uses macros to generate rules in component.mk)
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10387] Board: J721E: Remove multiple entries for DMTimer 0 PLL Clk Cfg
- Remove multiple entries for TISCI_DEV_TIMER0 in j721e_evm/board_pll.c
- Retain only the entry for 192MHz Clk Cfg
- With FreeRTOS, DM Timer0 is used as the tick timer for j721e c66xdsp_1
- 192MHz is the expected frequency
- Without this update, freertos UT Delay test fails in SBL mode due to wrong timer clk frequency
Signed-off-by: Don Dominic <a0486429@ti.com>
- Remove multiple entries for TISCI_DEV_TIMER0 in j721e_evm/board_pll.c
- Retain only the entry for 192MHz Clk Cfg
- With FreeRTOS, DM Timer0 is used as the tick timer for j721e c66xdsp_1
- 192MHz is the expected frequency
- Without this update, freertos UT Delay test fails in SBL mode due to wrong timer clk frequency
Signed-off-by: Don Dominic <a0486429@ti.com>
SysBIOS C66x: Update default timer for C66x dsp_2 core
- Use DMTimer 1 for c66xdsp_2
- So that the source file can be same for FreeRTOS amd SysBIOS
Signed-off-by: Don Dominic <a0486429@ti.com>
- Use DMTimer 1 for c66xdsp_2
- So that the source file can be same for FreeRTOS amd SysBIOS
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10351] FreeRTOS C66x: Linker updates
- Place vectors/startup in DDR
- Allign with SysBIOS mem map
- This resolves SBL Boot issues with FreeRTOS C66x images
Signed-off-by: Don Dominic <a0486429@ti.com>
- Place vectors/startup in DDR
- Allign with SysBIOS mem map
- This resolves SBL Boot issues with FreeRTOS C66x images
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10387] OSAL: OSAL Support for FreeRTOS on C66x
- Enable OSAL FreeRTOS UT for j721e c66xdsp_1/c66xdsp_2
- OSAl UT updates for:-
- DM Timer used by OS
- Event Num, Interrupt Num for the DM Timer used by OS
- DM TImer for Timer test
- Event Num, Interrupt Num for the DM Timer for Timer test
- Validated OSAL FreeRTOS/SysBIOS UT on c66xdsp_1/c66xdsp_2
Signed-off-by: Don Dominic <a0486429@ti.com>
- Enable OSAL FreeRTOS UT for j721e c66xdsp_1/c66xdsp_2
- OSAl UT updates for:-
- DM Timer used by OS
- Event Num, Interrupt Num for the DM Timer used by OS
- DM TImer for Timer test
- Event Num, Interrupt Num for the DM Timer for Timer test
- Validated OSAL FreeRTOS/SysBIOS UT on c66xdsp_1/c66xdsp_2
Signed-off-by: Don Dominic <a0486429@ti.com>
Remove extraneous defines for sciclient X509 header addr
Other defines for the sciclient/sciserver common X509
header address are now removed, since there is a single
definition in drv/sciclient/sciclient.h.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
Other defines for the sciclient/sciserver common X509
header address are now removed, since there is a single
definition in drv/sciclient/sciclient.h.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
PDK-9368: j721s2: Fixes sciserver task stack size.
Updates task stack size to 2536.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
Updates task stack size to 2536.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
PDK-9368: Fixes X509 header addr for sciclient/sciserver
Updates to use common location in sciclient.h for sciclient/sciserver
X509 Header Address, instead of having multiple definitions in various
locations.
Also, adds alternate X509 header location that is required for sciclient
and sciserver for J721S2.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
Updates to use common location in sciclient.h for sciclient/sciserver
X509 Header Address, instead of having multiple definitions in various
locations.
Also, adds alternate X509 header location that is required for sciclient
and sciserver for J721S2.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
PDK-10418: sciclient: Add TIFS2DM msg forwarding test
Adds a TIFS2DM msg forwarding test with a PM message request
to the sciclient_unit_testapp, so that the TIFS2DM path can
be tested when a remote core sends a PM or RM message over
a secure queue. Tested on J7200, J721E and J721S2.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
Adds a TIFS2DM msg forwarding test with a PM message request
to the sciclient_unit_testapp, so that the TIFS2DM path can
be tested when a remote core sends a PM or RM message over
a secure queue. Tested on J7200, J721E and J721S2.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
Fix in SBL to allow loading multi-stage FW on HS device
watchdog init failure
The watchdog clock register needs to be unlocked before writing to it.
Signed-off-by: Parth Nagpal <x1080849@ti.com>
The watchdog clock register needs to be unlocked before writing to it.
Signed-off-by: Parth Nagpal <x1080849@ti.com>
21 months agoCCM test fail leading to sdr test failure REL.CORESDK.08.00.00.35 REL.CORESDK.08.00.00.36
CCM test fail leading to sdr test failure
Commented out the failing CCM tests for the release 8.00.00
Signed-off-by: Parth Nagpal <x1080849@ti.com>
Commented out the failing CCM tests for the release 8.00.00
Signed-off-by: Parth Nagpal <x1080849@ti.com>
PDK-9368: j721s2: Sciclient/Sciserver fixes to match RM/PM data
Updates sciclient/sciserver source files to match latest SoC data
in related RM_PM_HAL sources. Fixes issues with related test apps.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
Updates sciclient/sciserver source files to match latest SoC data
in related RM_PM_HAL sources. Fixes issues with related test apps.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
PDK-9368: Update TIFS and default BoardCfg_RM for J721S2
Updates J721S2 TIFS binary and brings in latest RM changes
as well.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
Updates J721S2 TIFS binary and brings in latest RM changes
as well.
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
PCIe driver example failing for freeRtos
This is fixed by increasing the stack size for freeRtos
This is fixed by increasing the stack size for freeRtos
22 months ago[GPIO Driver]Reverting Commit ID: 6afb0eda364 REL.CORESDK.08.00.00.32 REL.CORESDK.08.00.00.33 REL.CORESDK.08.00.00.34
[GPIO Driver]Reverting Commit ID: 6afb0eda364
- [GPIO DRV][Bug Fix][PDK-10341]PMIC: Asynchronous Interrupt tests results in failure due to incorrect destination core configuration
Signed-off-by: Vivek Dhande <a0132295@ti.com>
- [GPIO DRV][Bug Fix][PDK-10341]PMIC: Asynchronous Interrupt tests results in failure due to incorrect destination core configuration
Signed-off-by: Vivek Dhande <a0132295@ti.com>