]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/log
processor-sdk/pdk.git
6 days ago[PDK-12632]Enabling Scilcient Firewall test app for j721s2 and j784s4 master
Kunal Lahoti [Thu, 16 Mar 2023 08:17:13 +0000 (13:47 +0530)]
[PDK-12632]Enabling Scilcient Firewall test app for j721s2 and j784s4

Scilclient Firewall test app is not supported for J721s2 and J784s4.
Enabling the application and adding the firewall ids for the test.

Signed-off-by: Kunal Lahoti <k-lahoti@ti.com>
6 days ago[PDK-12655] Remove unused examples in SBL
Sai Ramakurthi [Tue, 21 Mar 2023 02:50:24 +0000 (08:20 +0530)]
[PDK-12655] Remove unused examples in SBL

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
6 days ago[PDK-12623][OSAL_SAFERTOS]: Enable I/D Caches after doing __mpu_init and disable...
Mriganka Chakravarty [Sat, 11 Mar 2023 07:04:40 +0000 (12:34 +0530)]
[PDK-12623][OSAL_SAFERTOS]: Enable I/D Caches after doing __mpu_init and disable xEnableCache in OS_init

- Applications take a long time to reach main from the startup code.
- This is because, Cache is not enabled after doing mpu init and the cache properties are disregarded.
- Enabled cache after doing __mpu_init and disabled cache enablement from OSAL.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
9 days ago[PDK-12608]: Increase Max Input Files to 32
Sai Ramakurthi [Mon, 20 Mar 2023 12:19:19 +0000 (17:49 +0530)]
[PDK-12608]: Increase Max Input Files to 32

- MAX_INPUT_FILES is limit till which we can store the meta headers of
cores in multicore image
- Increasing to 32 enables SBL to boot 32 cores at max from multicore image

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
2 weeks ago[J721E]: Increase max size of SYSFW
Sai Ramakurthi [Thu, 16 Mar 2023 06:59:13 +0000 (12:29 +0530)]
[J721E]: Increase max size of SYSFW

- Size of tifs.bin for J721E HS is 265KB

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
3 weeks agoUDMA: Fix: KW critcal issues. release/review_saftey_dev_sciclient_yogananda
Lohith Kumar [Tue, 21 Feb 2023 11:13:29 +0000 (16:43 +0530)]
UDMA: Fix: KW critcal issues.

Add checkers to check if returned structure is not
NULL before dereferencing.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
3 weeks ago[PDK-12249] Fixed UDMA OSPI Flash TestApp for J7AHP
Lohith Kumar [Mon, 27 Feb 2023 05:20:10 +0000 (10:50 +0530)]
[PDK-12249] Fixed UDMA OSPI Flash TestApp for J7AHP

- Define flash type as XSPI.
- The src/dest and ring memories are kept in TCM memory
  and this memory will have different adrresses for core
  and SoC, no translation was happening from core to SoC
  earlier.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
3 weeks ago[Boot App]: Use same linker file for all SOC's
Sai Ramakurthi [Fri, 24 Feb 2023 10:58:12 +0000 (16:28 +0530)]
[Boot App]: Use same linker file for all SOC's

- Instead of using same linker file at different places, linker file is
copied to top level folder.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
4 weeks agosciclient: Update TIFS include/tisci folder REL.CORESDK.08.06.00.30 REL.CORESDK.08.06.00.31
Sheng Zhao [Wed, 15 Feb 2023 21:37:25 +0000 (15:37 -0600)]
sciclient: Update TIFS include/tisci folder

After fixing the sysfw_migrate.sh, the include/tisci folder is updated.

Signed-off-by: Sheng Zhao <shengzhao@ti.com>
4 weeks agosciclient: Remove AM65x SR2 from TIFS migration
Sheng Zhao [Wed, 15 Feb 2023 20:54:59 +0000 (14:54 -0600)]
sciclient: Remove AM65x SR2 from TIFS migration

In the master branch, the AM65x SR2 is not part of the SOC_LIST.
As a result the SR2 suffix keeps appending to the header file.

Manually clean up the am65x_sr2 header. Remove AM65x migration
in the master branch.

Fixes: PDK-12584
Signed-off-by: Sheng Zhao <shengzhao@ti.com>
4 weeks agoSciclient: tools: Add include/tisci folder in TIFS migration
Sheng Zhao [Wed, 15 Feb 2023 17:50:11 +0000 (11:50 -0600)]
Sciclient: tools: Add include/tisci folder in TIFS migration

In TIFS migration script, system-firmware-releases/include/tisci folder
should be included in the migration.

Fixes: PDK-12583
Signed-off-by: Sheng Zhao <shengzhao@ti.com>
4 weeks agosciclient: tools: Update launch.js to clear CLEC Secure Claim REL.CORESDK.08.06.00.29
Don Dominic [Mon, 27 Feb 2023 15:00:23 +0000 (20:30 +0530)]
sciclient: tools: Update launch.js to clear CLEC Secure Claim

- launch.js script updates for devices with CLEC module present,
  to clear the CLEC secure claim bit by default in CCS No Boot mode
  - A new flag 'clearCLECSecureClaimFlag' can be used to disable
    the same
  - This uses the checked-in sciclient_clear_clec_secure_claim
    image executable to clear the CLEC secure claim bit

Signed-off-by: Don Dominic <dondmadappallil@ti.com>
4 weeks agosciclient: tools: Add new C7x image to clear CLEC Secure Claim
Don Dominic [Mon, 27 Feb 2023 15:10:14 +0000 (20:40 +0530)]
sciclient: tools: Add new C7x image to clear CLEC Secure Claim

- Add a minimal C7x image which boots to secure mode and clear
  secure claim bit for all CLEC events
  - Single source file boot.c which does the following:-
    - Define _cint_00_secure which is set as Entry point in
      reset vector
    - Check and Clear the 'S' bit in CLEC_EVT_CFG_MRR register
      for all CLEC events
    - Switch to IDLE mode
  - No dependency on any PDK libraries
    - only dependent on compiler lib
  - Board and Core independent
    - Can be used to load to any c7x core in any device
  - Minimal linker file with only requirement of .text section
    - Very optimized image size (192 bytes of .text only)
  -  makefile updates to build the application
     - named 'sciclient_clear_clec_secure_claim`
  - The source file, linker file and makefile is only added for
    reference in case if some enhancements are required in future.
    - Only the generated images are supposed to be used.
    - So build disabled by default in sciclient_component.mk
- Check-in the executable and rprc image to sciclient/tools
  folder
  - .rprc can be used to create SBL multicore appimage in which
    the CLEC secure claim bit needs to be cleared, so that
    it allows other non-secure cores to do the required
    CLEC configuration.
  - .xe71 executable will be used by the launch.js script to
    do the same in CCS No Boot mode.

Signed-off-by: Don Dominic <dondmadappallil@ti.com>
5 weeks agoFixed board build REL.CORESDK.08.06.00.27 REL.CORESDK.08.06.00.28
Rishabh Garg [Sat, 18 Feb 2023 03:45:46 +0000 (09:15 +0530)]
Fixed board build

Signed-off-by: Rishabh Garg <rishabh@ti.com>
5 weeks agoBoard: Updated Uniflash version and copyright year REL.CORESDK.08.06.00.26
M V Pratap Reddy [Fri, 17 Feb 2023 05:23:44 +0000 (10:53 +0530)]
Board: Updated Uniflash version and copyright year

5 weeks agoPDK-11845: Board: Updated board diag component make for conditional build
M V Pratap Reddy [Tue, 31 Jan 2023 03:49:52 +0000 (09:19 +0530)]
PDK-11845: Board: Updated board diag component make for conditional build

 - Diagnostic test build is disabled by default in the diag component make
   file by commenting the diag example export.
   Added a flag instead of commenting the diag example export to control
   the diag build from the command line option. This will be used to
   trigger the diag build from Jenkins.

6 weeks agoUpdated PDK to use 3.1.0.LTS for C7x REL.CORESDK.08.06.00.24 REL.CORESDK.08.06.00.25
Rishabh Garg [Thu, 16 Feb 2023 15:18:42 +0000 (20:48 +0530)]
Updated PDK to use 3.1.0.LTS for C7x

Signed-off-by: Rishabh Garg <rishabh@ti.com>
6 weeks agoKW: UDMA: Fix KW critical issues.
Lohith Kumar [Thu, 16 Feb 2023 13:19:13 +0000 (18:49 +0530)]
KW: UDMA: Fix KW critical issues.

KW reporting critical issue for the chstats object not getting
initialised. Setting values of these objects to 0U before using
them.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
6 weeks agoFix static analysis issues in board library
Jahnavi_Guvvala [Thu, 16 Feb 2023 08:17:26 +0000 (13:47 +0530)]
Fix static analysis issues in board library

Signed-off-by: Jahnavi_Guvvala <j-guvvala@ti.com>
6 weeks ago[PDK-12023] osal: HeapP: Update HeapP_alloc API documentation REL.CORESDK.08.06.00.23
Don Dominic [Wed, 15 Feb 2023 13:20:12 +0000 (18:50 +0530)]
[PDK-12023] osal: HeapP: Update HeapP_alloc API documentation

Add note in HeapP_alloc API documentation to mention about possible
potential issues with buffer overflow and relevant info on HeapP
implementation

Signed-off-by: Don Dominic <dondmadappallil@ti.com>
6 weeks ago[PDK-12577][PDK-12156]: Add separate SBL target to benchmark main OCM RAM
Sai Ramakurthi [Tue, 14 Feb 2023 14:48:37 +0000 (20:18 +0530)]
[PDK-12577][PDK-12156]: Add separate SBL target to benchmark main OCM RAM

- Main OCM RAM is situated at 40 bit address from J7200 onwards to
access that it needs to map it to 32 bit address
- In this SBL target main OCM RAM is mapped to 0xD0000000

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
6 weeks agoOSPI: Fix: Incorrect throughput values
Lohith Kumar [Fri, 10 Feb 2023 08:21:22 +0000 (13:51 +0530)]
OSPI: Fix: Incorrect throughput values

OSPI Flash Test reporting throughtpu of ~1 GBPS far more
theoretical values when we use TimerP_getTimeInUsecs.
Using GTC Timer instead for measuring performance.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
6 weeks agoPDK-12410 [BOARD] Fix for the build errors of CPSW and ENET diagnostic
Jayanth BR [Mon, 13 Feb 2023 13:16:23 +0000 (18:46 +0530)]
PDK-12410 [BOARD] Fix for the build errors of CPSW and ENET diagnostic
tests
- Updated cpsw and enet diagnostic test as per the
latest ENET driver changes

Signed-off-by: Jayanth BR <x1080850@ti.com>
6 weeks ago[PDK-12576]: Add separate SBL target to benchmark XIP memory(OSPI)
Sai Ramakurthi [Tue, 14 Feb 2023 12:23:14 +0000 (17:53 +0530)]
[PDK-12576]: Add separate SBL target to benchmark XIP memory(OSPI)

- xip_memory_benchmarking app should run at 166MHz and 133MHz. Instead
of changing manually, created a separate SBL target

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
6 weeks ago[PDK-12571][OSAL UT]: Increasing stack size for floating point task. REL.CORESDK.08.06.00.22
Mriganka Chakravarty [Tue, 14 Feb 2023 06:19:12 +0000 (11:49 +0530)]
[PDK-12571][OSAL UT]: Increasing stack size for floating point task.

- C7X has higher stack requirement.
- Floating point task stack was created with lesser than required stack.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
6 weeks ago[SCICLIENT]: Enable -DENABLE_FW_NOTIFICATION only for freertos on mcu1_0 for J721E. REL.CORESDK.08.06.00.21
Mriganka Chakravarty [Mon, 13 Feb 2023 10:27:27 +0000 (15:57 +0530)]
[SCICLIENT]: Enable -DENABLE_FW_NOTIFICATION only for freertos on mcu1_0 for J721E.

- FW_NOTIFICATION has only been tested for FreeRTOS and not for SafeRTOS.
- Enabled -DENABLE_FW_NOTIFICATION compile flag only for FreeRTOS for now.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
6 weeks agoJ721S2 HS: J784S4 HS: Open firewall for FSS0 DATA REGION
Lohith Kumar [Mon, 13 Feb 2023 05:47:23 +0000 (11:17 +0530)]
J721S2 HS: J784S4 HS: Open firewall for FSS0 DATA REGION

On HS devices by default the firewall region for MCU_FSS0_S0_FWID
is not open and we need to explicitly ask SYSFW to open this
firewall.

Fixes: PDK-12328 PDK-12329
Signed-off-by: Lohith Kumar <l-kumar@ti.com>
6 weeks agoBoard: Fix for OSPI NAND flash legacy SPI mode failure
M V Pratap Reddy [Fri, 10 Feb 2023 15:57:44 +0000 (21:27 +0530)]
Board: Fix for OSPI NAND flash legacy SPI mode failure

 - NAND flash legacy SPI mode is failing after the changes to support
   buffered and continues read mode. Failure is caused due to error
   returned by Status register read function.

   Updated the status register read function to pass correct parameters for
   read in legacy SPI mode.

6 weeks ago[PDK-12493][OSAL_SafeRTOS]: Removing infinite loop in SemaphoreP_reset REL.CORESDK.08.06.00.20
Mriganka Chakravarty [Fri, 10 Feb 2023 10:54:06 +0000 (16:24 +0530)]
[PDK-12493][OSAL_SafeRTOS]: Removing infinite loop in SemaphoreP_reset

- xSemaphoreTake returns pdPASS or suitable error code.
- SemaphoreP_reset was looping till it sees a 0, which was causing infinite loop.
- Changed loop condition to isSemTaken == pdPASS.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
6 weeks ago[PDK-12474] Fix API description for GT_trace7()
Jahnavi_Guvvala [Fri, 10 Feb 2023 10:03:52 +0000 (15:33 +0530)]
[PDK-12474] Fix API description for GT_trace7()

-Description for param6 is corrected.

Signed-off-by: Jahnavi_Guvvala <j-guvvala@ti.com>
6 weeks ago[OSAL][BUILD_FIX]: Protect FPU test with !defined(BARE_METAL)
Mriganka Chakravarty [Fri, 10 Feb 2023 05:58:10 +0000 (11:28 +0530)]
[OSAL][BUILD_FIX]: Protect FPU test with !defined(BARE_METAL)

- FPU tests should only be carried out for RTOS environment.
- Protected FPU test code with #if !defined(BARE_METAL)

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
7 weeks ago[PDK-12208][PDK-12209]Firewall Notification Test fix REL.CORESDK.08.06.00.19
Kunal Lahoti [Thu, 9 Feb 2023 04:56:19 +0000 (10:26 +0530)]
[PDK-12208][PDK-12209]Firewall Notification Test fix

J721e Hs device is unable to read the sec mmr region,
which contains the bitfield required for mmr mapping
for the firewall exception logging register. Removing
the register from the Firewall notification test.

Signed-off-by: Kunal Lahoti <k-lahoti@ti.com>
7 weeks ago[SBL]: Update README for SBL booting Linux/U-Boot
Sai Ramakurthi [Wed, 8 Feb 2023 14:31:10 +0000 (20:01 +0530)]
[SBL]: Update README for SBL booting Linux/U-Boot

- Serdes is already being initialized by SBL so disable in
base-board.dts

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
7 weeks ago[PDK-12566][OSAL UT]: Add OSAL UT for Testing floating point unit.
Mriganka Chakravarty [Fri, 27 Jan 2023 11:32:37 +0000 (17:02 +0530)]
[PDK-12566][OSAL UT]: Add OSAL UT for Testing floating point unit.

- There is not user test to test FPU.
- Added a test case to test floating point unit.

7 weeks ago[QNX][SCICLIENT] Fix payload buffer corruption by allocating contiguous physical...
Praveen Rao [Fri, 3 Feb 2023 04:56:33 +0000 (22:56 -0600)]
[QNX][SCICLIENT] Fix payload buffer corruption by allocating contiguous physical buffer

Signed-off-by: Praveen Rao <prao@ti.com>
7 weeks agoUDMA: UT: Fix incorrect throughput values.
Lohith Kumar [Mon, 6 Feb 2023 08:32:06 +0000 (14:02 +0530)]
UDMA: UT: Fix incorrect throughput values.

The throughput value is 64-bit while in print format string
it's getting interpreted as %d i.e., which is leading to print
incorrect values.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
7 weeks ago[SBL][J721E]: Update binaries to boot linux REL.CORESDK.08.06.00.18
Sai Ramakurthi [Wed, 8 Feb 2023 14:13:05 +0000 (19:43 +0530)]
[SBL][J721E]: Update binaries to boot linux

- bl31.bin, bl32.bin should be unsigned even for HS devices
- Serdes should be disabled while generating base-board.dtb
- Remove unsigned images in HS specific folders

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
7 weeks agoFix Static Analysis issues in Board library & LPM
Jahnavi_Guvvala [Wed, 8 Feb 2023 14:24:31 +0000 (19:54 +0530)]
Fix Static Analysis issues in Board library & LPM

Signed-off-by: Jahnavi_Guvvala <j-guvvala@ti.com>
7 weeks agoMigrate to TIFS version v08.06.03 REL.CORESDK.08.06.00.17
Don Dominic [Wed, 8 Feb 2023 11:37:49 +0000 (17:07 +0530)]
Migrate to TIFS version v08.06.03

- Updates only in TIFS firmware binaries
- Introduce HS-FS firmwares
- No update to DM and other Sciclient binaries

Signed-off-by: Don Dominic <dondmadappallil@ti.com>
7 weeks agolwip: Enabled thumb2 and O3 optimization for lwip stack
Surbhi Kapoor [Fri, 27 Jan 2023 15:04:59 +0000 (20:34 +0530)]
lwip: Enabled thumb2 and O3 optimization for lwip stack

Signed-off-by: Surbhi Kapoor <s-kapoor1@ti.com>
7 weeks agobuild: safertos: Build Enet related libraries by default
Misael Lopez Cruz [Wed, 8 Feb 2023 09:19:25 +0000 (03:19 -0600)]
build: safertos: Build Enet related libraries by default

Explicitly build SafeRTOS libraries required for Ethernet examples apps.
Otherwise, when Ethernet apps are built for SafeRTOS, the dependencies
are not built during packaging as it happens with DISABLE_RECURSE_DEPS=yes.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
7 weeks agoMigrate C7000 compiler to version 3.1.0B2 REL.CORESDK.08.06.00.16
Jahnavi_Guvvala [Tue, 7 Feb 2023 07:57:02 +0000 (13:27 +0530)]
Migrate C7000 compiler to version 3.1.0B2

Signed-off-by: Jahnavi_Guvvala <j-guvvala@ti.com>
7 weeks agoPDK-12496: Board: Fix for NAND flash read API
M V Pratap Reddy [Mon, 6 Feb 2023 16:54:46 +0000 (22:24 +0530)]
PDK-12496: Board: Fix for NAND flash read API

 - NAND flash read API is restricting the read size to multiples of page
   size which will make the API not suitable for use-cases which read the
   data in variable sizes.
   Updated the flash library to allow read which are not multiples of page
   size.

7 weeks agoPDK-12111: SPI: Updated OSPI/McSPI instance macros
M V Pratap Reddy [Mon, 6 Feb 2023 10:48:05 +0000 (16:18 +0530)]
PDK-12111: SPI: Updated OSPI/McSPI instance macros

 - SPI instance and domain macros that are SoC specific are hard-coded in
   driver header files. SoC specific implementation and driver header files
   will go out of sync if SoC specific data changes.
   Updated the macros in driver header files to use SoC specific defines
   from CSL.

7 weeks agolwip:c++ build error for lwipport issue solved
Vaibhav Jindal [Mon, 6 Feb 2023 14:31:46 +0000 (20:01 +0530)]
lwip:c++ build error for lwipport issue solved

Freertos:
    - typecasting required for semaphore from void* to sys_sem_t*
Safertos:
    - typecasting required for queue element from void* to QueueP_Elem*
    - typecasting required for tls object from void* to sys_sem_t*

Signed-off-by: Vaibhav Jindal <v-jindal@ti.com>
7 weeks ago[BootApp][j721s2]: Include c7x2 while generating lateapp2
Sai Ramakurthi [Fri, 3 Feb 2023 15:49:16 +0000 (21:19 +0530)]
[BootApp][j721s2]: Include c7x2 while generating lateapp2

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
7 weeks ago[PDK-12208][PDK-12209]PdK example to check firewall exception notification
Kunal Lahoti [Thu, 5 Jan 2023 12:56:27 +0000 (18:26 +0530)]
[PDK-12208][PDK-12209]PdK example to check firewall exception notification

Creating a firewall exception and receving the notification msg in the
pdk.

Signed-off-by: Kunal Lahoti <k-lahoti@ti.com>
7 weeks ago[QNX][IPC][OSAL][PSDKQA-829] Update the timeout to uint64_t REL.CORESDK.08.06.00.15
Praveen Rao [Wed, 4 Jan 2023 00:44:19 +0000 (18:44 -0600)]
[QNX][IPC][OSAL][PSDKQA-829] Update the timeout to uint64_t

Signed-off-by: Praveen Rao <prao@ti.com>
7 weeks agoFix: PDK-12550: C7x events overlaps between multiple UDMA instances.
Lohith Kumar [Thu, 2 Feb 2023 16:14:28 +0000 (21:44 +0530)]
Fix: PDK-12550: C7x events overlaps between multiple UDMA instances.

Out of num of IR interrupts allocated to core via boardconfig, UDMA driver
will use most of them after reserving some interrupts for other drivers
like IPC. Even after reserving the interrupt to other drivers, if interrupts
available for UDMA driver are more than C7x events available for UDMA driver
then driver tries to program C7x event which is not available, results in failure.

This commit makes sure that the Ir interrupts allocated for core,
after removing Ir interrupts reserved for other drivers
(i.e. rmDefBoardCfgResp[UDMA_RM_RES_ID_IR_INTR].rangeNum - totalResrvIntr),
does not exceed available C7x Event for UDMA driver. And also makes sure
the 2 different UDMA instances will never try to program same event of C7x.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
7 weeks agoQNX: IPC: Examples: set the btcm compiler flag for echo_testb
Subbu Chanderashekarapuram [Thu, 2 Feb 2023 15:58:02 +0000 (09:58 -0600)]
QNX: IPC: Examples: set the btcm compiler flag for echo_testb

The ipc_echo_testb needs to be built with BTCM support enabled to
ensure proper boot flow. The compile time switch for enabling this
was missing. Added the same.

Signed-off-by: Subbu Chanderashekarapuram <s-chanderashekarapuram@ti.com>
8 weeks ago[PDK-12549]: Include mcu4_0, mcu4_1 while generating lateapp2
Sai Ramakurthi [Thu, 2 Feb 2023 15:08:21 +0000 (20:38 +0530)]
[PDK-12549]: Include mcu4_0, mcu4_1 while generating lateapp2

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
8 weeks agoPDK-12440: Updated pinmux unlock/lock sequence for optimal execution
M V Pratap Reddy [Tue, 31 Jan 2023 03:26:26 +0000 (08:56 +0530)]
PDK-12440: Updated pinmux unlock/lock sequence for optimal execution

 - MMR unlock and lock added in board pinmux config function is increasing
   the boot time by 5msec due to multiple MMR unlock and lock.
   Moved the MMR unlock and lock to top level functions to reduce the
   number of MMR unlock and lock operations.

8 weeks agolwip:ut:add missing interrupt macros for ping and pong tasks REL.CORESDK.08.06.00.14
Vaibhav Jindal [Thu, 2 Feb 2023 05:57:13 +0000 (11:27 +0530)]
lwip:ut:add missing interrupt macros for ping and pong tasks

add missing interrupt macros for ping and pong tasks for J784s4

Signed-off-by: Vaibhav Jindal <v-jindal@ti.com>
8 weeks ago[PDK-12327] osal: arch: c66: bypass osalArch_TimestampInit for freertos REL.CORESDK.08.06.00.12 REL.CORESDK.08.06.00.13
Don Dominic [Wed, 1 Feb 2023 14:20:07 +0000 (19:50 +0530)]
[PDK-12327] osal: arch: c66: bypass osalArch_TimestampInit for freertos

- With usage of TSC counter in freertos portable layer for runtime
  calculation, bypass osalArch_TimestampInit for freertos
  to avoid re-initialization of TSC counter.
- FreeRTOS initialize TSC counter as part of schedular start

- Also remove bypassing CycleprofilerP_init for FreeRTOS, since this is
  now internally handled in corresponding osalArch implementations

Signed-off-by: Don Dominic <a0486429@ti.com>
8 weeks ago[PDK-12327] osal: arch: r5: updates in timestamp implementation for freertos
Don Dominic [Wed, 1 Feb 2023 14:07:42 +0000 (19:37 +0530)]
[PDK-12327] osal: arch: r5: updates in timestamp implementation for freertos

- With usage of PMU counter in freertos portable layer for runtime
  calculation, osal timestamp related updates are required
  to avoid cases like re-initialization of PMU counter and duplicate
  counter overflow handling
  - Bypass osalArch_TimestampInit for FreeRTOS, since this is already
    initialized by during freertos schedular start
  - Reuse freertos portable layer implementation of reading PMU counter
    value in osalArch_TimestampGet64 to avoid duplicate overflow handle
  - To avoid duplicate overflow handle, bypass
    osalArch_TimestampCcntAutoRefresh for FreeRTOS, since
    its already handled by freertos portable layer in every OS ticks.

Signed-off-by: Don Dominic <a0486429@ti.com>
8 weeks ago[PDK-12327]freertos: r5f: port: use pmu counter for runtime calc in microseconds
Don Dominic [Wed, 1 Feb 2023 12:47:07 +0000 (18:17 +0530)]
[PDK-12327]freertos: r5f: port: use pmu counter for runtime calc in microseconds

Background:-
- PMU counter can't be used for runtime calc since PMU counter halts in
  wfi(IDLE) mode. Idle task runtime will be incorrect due to this and
  CPU Load will always be close to 100%
- Hence OS Tick Timer (DM Timer) was used for runtime calc
  - milliseconds was calculated based on no. of OS ticks. OS ticks gets
    incremented based on DM Timer Interrupts
  - microseconds was calculated based on DM Timer count

Issue/Impact:-
- DM Timer based runtime calculation adds overhead of reading DM Timer
  register each time to calculate microseconds
- This could also go wrong (off by ~1 ms) when DM Timer overflow occurred
  and the current run time calculation is invoked before servicing the
  DM Timer interrupt
- This delta can get accumulated in total runtime counter for a task and
  could result in total CPU load measurements to be > 100%
- Fixing DM Timer based Implementation to calculate microseconds would be
  hacky and may need additional DM Timer register read which will
  further increase the overhead

Fix:-
- De-scope usage of DM Timer count and use PMU Counter to calculate
  microseconds elapsed after last OS tick
  - Initialize PMU counter as part of scheduler start in
    vPortConfigTimerForRunTimeStats
  - Save PMU counter TS during each OS tick
    - This will also handle 32-bit PMU counter overflow
    - Hence remove usage of CycleprofilerP_refreshCounter in every
      OS tick interrupt
- For IDLE task, since PMU counter halts in wfi(IDLE) mode, idle task
  runtime counter value could be off by 1 OS tick

Signed-off-by: Don Dominic <a0486429@ti.com>
8 weeks agoMigrating to SYSFW version v08.06.01a REL.CORESDK.08.06.00.10 REL.CORESDK.08.06.00.11
Chandru Dhavamani [Wed, 1 Feb 2023 11:58:24 +0000 (17:28 +0530)]
Migrating to SYSFW version v08.06.01a

Signed-off-by: Chandru Dhavamani <chandru@ti.com>
8 weeks ago[PDK-12541][J721E]: Fix SBL profiling logs
Sai Ramakurthi [Wed, 1 Feb 2023 07:16:30 +0000 (12:46 +0530)]
[PDK-12541][J721E]: Fix SBL profiling logs

- Since j721e doesn't have mcu timer9, SBL profile info for j721e is one index ahead of other SOC's

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
8 weeks agoJ721S2: J784S4: Add BCDMA CH API Testcases to UDMA UT.
Lohith Kumar [Thu, 22 Dec 2022 12:19:38 +0000 (17:49 +0530)]
J721S2: J784S4: Add BCDMA CH API Testcases to UDMA UT.

- Add BCDMA CH params and API Tests to check UDMA API able to program BCDMA channels.
- BCDMA doesn't support global flow event, updated the TCs which checks programming
  of these events to support only UDMA instances.
- Add core specific checks to check whether BCDMA instance is applicable for specific core.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
8 weeks agoRemove Linux Binaries used to boot Linux from SBL
Sai Ramakurthi [Sun, 29 Jan 2023 03:00:58 +0000 (08:30 +0530)]
Remove Linux Binaries used to boot Linux from SBL

- Since these binaries already present under
sbl/tools/combined_appimage/bin/<board_name> removing here.
- Remove k3-<board_name>-common-proc-board.dtb since this needs to be
generated from ti-linux-kernel.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
8 weeks agolwip: unit test: added initial version of lwip OS port test app
Vaibhav Jindal [Thu, 12 Jan 2023 18:09:53 +0000 (23:39 +0530)]
lwip: unit test: added initial version of lwip OS port test app

added test app that validates lwip port api's for both safertos and freertos

Signed-off-by: Vaibhav Jindal <v-jindal@ti.com>
8 weeks agolwip: safertos: added support of safertos for lwip-port
Vaibhav Jindal [Thu, 12 Jan 2023 17:38:28 +0000 (23:08 +0530)]
lwip: safertos: added support of safertos for lwip-port

- added sys_arch.c for safertos, implements native api similar to freertos
- added required lwippools.h and lwipopts.h,
  to add required macros and lwip memory pools
- added sys_arch.h, perf.h and cc.h,
  to add required structures and function definitions

Signed-off-by: Vaibhav Jindal <v-jindal@ti.com>
8 weeks agolwip: freertos: renamed macros to make it OS agnostic, api sys_mbox_trypost_fromisr...
Vaibhav Jindal [Thu, 12 Jan 2023 17:27:55 +0000 (22:57 +0530)]
lwip: freertos: renamed macros to make it OS agnostic, api sys_mbox_trypost_fromisr updated

- renamed macros LWIP_FREERTOS_* to LWIP_* to make it OS agnostic
- changed the return type of sys_mbox_trypost_fromisr to ERR_OK in case there is a context switch
- called portYIELD_FROM_ISR in sys_mbox_trypost_fromisr
  so the application doesn't need to do a context switch
- added FreeRTOS.h and task.h header files to make consistent with other OS

Signed-off-by: Vaibhav Jindal <v-jindal@ti.com>
8 weeks agodiag: enet_icssg: removed unneeded enet_cfgserver from COMP_LIST_COMMON
Vaibhav Jindal [Sun, 25 Dec 2022 15:55:09 +0000 (21:25 +0530)]
diag: enet_icssg: removed unneeded enet_cfgserver from COMP_LIST_COMMON

enet_icssg is a baremetal application and has no dependency on enet_cfgserver
hence removed it from COMP_LIST_COMMON

Signed-off-by: Vaibhav Jindal <v-jindal@ti.com>
8 weeks agoPDK-12495: Board: Added support for spare area write in NAND flash library
M V Pratap Reddy [Mon, 30 Jan 2023 00:11:22 +0000 (05:41 +0530)]
PDK-12495: Board: Added support for spare area write in NAND flash library

 - App images flashed to OSPI NAND memory are not booting as RBL is
   checking spare area and might be stopping the boot process due to
   invalid data in spare area.
   Updated NAND flash library to include spare area write during data
   write operation.

8 weeks agoBoard: Fix for J721S2 & J784S4 board library klocwork error
M V Pratap Reddy [Tue, 31 Jan 2023 03:43:26 +0000 (09:13 +0530)]
Board: Fix for J721S2 & J784S4 board library klocwork error

8 weeks ago[PDK-12327] freertos: c66x: port: use TSC counter for runtime calc
Don Dominic [Tue, 24 Jan 2023 13:11:45 +0000 (18:41 +0530)]
[PDK-12327] freertos: c66x: port: use TSC counter for runtime calc

- Use TSC counter in C66x CPU for calculating current run time
- This reverts commit c6e34646389c5910fda8e1a2787bcc53a98aff24
  "[PDK-10107] FreeRTOS: C66x: Use OS Tick Timer instead of TSC Counter"
  which was updated along with R5F so that the portable layer would be
  having similar implementation for both ISA.
- Unlike R5F PMU counter halts during wfi(IDLE) mode,
  There is no such limitation in C66x to use TSC counter
- Also usage of TSC counter available in the CPU itself will be having
  lesser overhead compared to reading DM Timer (OS Tick Timer) registers
  each time for run time calculations
- This also fixes PDK-12327 on C66x, FreeRTOS task stats reporting total
  CPU load > 100%

Signed-off-by: Don Dominic <a0486429@ti.com>
8 weeks agoUDMA UT: Fixed inconsistent hang issue on C7x Cores
Lohith Kumar [Mon, 30 Jan 2023 14:36:04 +0000 (20:06 +0530)]
UDMA UT: Fixed inconsistent hang issue on C7x Cores

Global variable gUtils_prfObj is having garbage values
before profiling getting started initializing it with
0 resolved the inconsistent hangs on C7x.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
8 weeks agoOSPI: Configure Phy operating mode basing on input provided.
Lohith Kumar [Sat, 28 Jan 2023 11:56:09 +0000 (17:26 +0530)]
OSPI: Configure Phy operating mode basing on input provided.

Configure Phy to operate on master mode or bypass mode basing on
input provided by user. By default the operating mode of PHY will
be programmed basing on OSPI clk.
User can override phyOpMode parameter in OSPI_Params to choose
the operating mode of PHY.

Fixes: PDK-12406
Signed-off-by: Lohith Kumar <l-kumar@ti.com>
8 weeks ago[PDK-12531] freertos: c7x: port: account for scheduler start time
Don Dominic [Mon, 30 Jan 2023 14:34:01 +0000 (20:04 +0530)]
[PDK-12531] freertos: c7x: port: account for scheduler start time

Background:-
- TSC Counter is used to implement uiPortGetRunTimeCounterValue
- TSC can be accessed only in secure supervisor mode and TSC counter
  gets reset during boot time in secure supervisor mode.
- Scheduler start is done supervisor mode. So we don’t have option to
  reset TSC (will cause permission exception).
- But current implementation of uiPortGetRunTimeCounterValue is not
  taking into consideration when the scheduler is started

Impact:-
- This will result in the Timer Task Run time to be very high.
  This is because time from boot to scheduler start will is also get
  accounted in the Timer Task Run time, since this is the first task
  that will be executed after scheduler start.

Fix:-
- Account for Scheduler start time in uiPortGetRunTimeCounterValue
  calculations.
  - Store scheduler start TSC counter timestamp
  - Use the same in uiPortGetRunTimeCounterValue implementation to
    account for Scheduler start time

Signed-off-by: Don Dominic <a0486429@ti.com>
2 months ago[PDK-10891][PDK-10957][UART]: UART_Baremetal_DMA_TestApp FIFO Trigger level fix. REL.CORESDK.08.06.00.09
Mriganka Chakravarty [Sat, 28 Jan 2023 06:52:37 +0000 (12:22 +0530)]
[PDK-10891][PDK-10957][UART]: UART_Baremetal_DMA_TestApp FIFO Trigger level fix.

- Performed Cache invalidation of the FIFO trigger level data.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
2 months agoFix: PDK-12501: UDMA init fails on C7x if MAIN UDMA/BCDMA runs on same core
Lohith Kumar [Tue, 24 Jan 2023 16:55:02 +0000 (22:25 +0530)]
Fix: PDK-12501: UDMA init fails on C7x if MAIN UDMA/BCDMA runs on same core

UDMA init failing during interrupt registration on C7x cores if MAIN UDMA/BCDMA runs on same core.
This is due to usage of same interrupt number for both instances. Making use of different ranges
for different instances solves the problem.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
2 months agoMCSPI: Add 48 bit address support REL.CORESDK.08.06.00.08
Lohith Kumar [Wed, 25 Jan 2023 12:29:11 +0000 (17:59 +0530)]
MCSPI: Add 48 bit address support

Currrently MCSPI dma transfers resticted to 32 bit address space,
since the txBuf/rxBuf is void*, converting it to uint64_t to support
transfers upto 48 bit.

Fixes: PDK-12258
Signed-off-by: Lohith Kumar <l-kumar@ti.com>
2 months ago[PDK-12512][OSAL_SAFERTOS]: Enable LPSC_SPARE_0 for main domain cores on J7AHP
Mriganka Chakravarty [Fri, 27 Jan 2023 16:35:13 +0000 (22:05 +0530)]
[PDK-12512][OSAL_SAFERTOS]: Enable LPSC_SPARE_0 for main domain cores on J7AHP

- For J7AHP, main-domain timers 8 to 19 are connected to LPSC_PER_SPARE_0.
- MCU4_0 and MCU4_1 use DMTimer 8 and DMTimer 9 as tick timers.
- LPSC_SPARE_0 is not enabled by default.
- Added code to enable LPSC_SPARE_0 in prvSetupTimerPSC() for main domain cores.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
2 months ago[PDK] Static Analysis fixes for Board, GPIO, LPM, UART, OSAL
Jahnavi_Guvvala [Fri, 27 Jan 2023 16:35:08 +0000 (22:05 +0530)]
[PDK] Static Analysis fixes for Board, GPIO, LPM, UART, OSAL

Signed-off-by: Jahnavi_Guvvala <j-guvvala@ti.com>
2 months agoBug Fix: PDK-12324
Rishabh Garg [Fri, 27 Jan 2023 14:48:28 +0000 (20:18 +0530)]
Bug Fix: PDK-12324

- Enabled UART for all RTOS apps
- This is needed for IPC negative tests

Signed-off-by: Rishabh Garg <rishabh@ti.com>
2 months ago[PDK-12503][SBL][XIP]: Add separate target for SBL to boot XIP application
Sai Ramakurthi [Wed, 25 Jan 2023 13:04:41 +0000 (18:34 +0530)]
[PDK-12503][SBL][XIP]: Add separate target for SBL to boot XIP application

- Use SBL_updateXIPFlag() to update the global variable isXIPdefined
- isXIPdefined is used to check whether SBL is booting xip application
or not
- Add PASS string at the end of XIP application

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
2 months agoRevert "IPC: stack corruption of taskWaiter used in RPMessage_getRemoteEndPt"
Likhitha [Fri, 27 Jan 2023 12:00:45 +0000 (17:30 +0530)]
Revert "IPC: stack corruption of taskWaiter used in RPMessage_getRemoteEndPt"

This reverts commit a9c8e4160d737b27be34fe8462fbe20e3cf19e08.

2 months agoFix: UDMA: KW critical issues
Lohith Kumar [Fri, 27 Jan 2023 11:57:55 +0000 (17:27 +0530)]
Fix: UDMA: KW critical issues

KW throws UNINIT.STACK.MIGHT since udmapChanStats, bcdmaChanStats, udmapRtEnable,
bcdmaRtEnable, have not been initialised in the same function call.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
2 months ago[PDK-12508]: Change sbl_<boot_mode>_img_hs path to $(PDK_SBL_COMP_PATH)/board/k3
Sai Ramakurthi [Fri, 27 Jan 2023 08:57:38 +0000 (14:27 +0530)]
[PDK-12508]: Change sbl_<boot_mode>_img_hs path to $(PDK_SBL_COMP_PATH)/board/k3

- Earlier We have same APP names for both GP and HS. Since APP names
were same we change the path to store the generated files.
- Now since we have differnet APP names for GP and HS same path can be
used

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
2 months agoFix: UDMA UT: Hanging on C7x cores.
Lohith Kumar [Fri, 27 Jan 2023 10:02:38 +0000 (15:32 +0530)]
Fix: UDMA UT: Hanging on C7x cores.

- Issue caused due to optimisation of var `loadStatsTask` by C7x complier
in release mode. Making the variable global fixes the issue.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
2 months agokeywriter: Add variable check in generate_test_binaries.sh
Sheng Zhao [Tue, 17 Jan 2023 22:52:40 +0000 (16:52 -0600)]
keywriter: Add variable check in generate_test_binaries.sh

The generate_test_binaries.sh requires several exported variables.
PDK_INSTALL_PATH and SOC must be defined. PDK_KEYWR_COMP_PATH can
be derived.

Fixes: PDK-12459
Signed-off-by: Sheng Zhao <shengzhao@ti.com>
2 months agokeywriter: Set scripts to use bash
Sheng Zhao [Tue, 17 Jan 2023 20:43:26 +0000 (14:43 -0600)]
keywriter: Set scripts to use bash

Explicitly declare the script to be a bash script.

Fixes: PDK-12458
Signed-off-by: Sheng Zhao <shengzhao@ti.com>
2 months agokeywriter: Add j784s4 SoC files
Sheng Zhao [Tue, 13 Dec 2022 22:43:15 +0000 (16:43 -0600)]
keywriter: Add j784s4 SoC files

Add boardcfg snapshot based on latest j784s4 firmware build

Add j784s4 utils to enable VPP efuse via WKUP_GPIO_54

Add empty ti-fs-keywriter.bin. Fill expected size with zeros.

Fixes: PDK-12441
Signed-off-by: Sheng Zhao <shengzhao@ti.com>
2 months agokeywriter: Simplify macros in main.h
Sheng Zhao [Tue, 17 Jan 2023 17:28:42 +0000 (11:28 -0600)]
keywriter: Simplify macros in main.h

The macros are the same for J721E, J7200, and J721S2. Combine the
macros into the same code block.

Signed-off-by: Sheng Zhao <shengzhao@ti.com>
2 months agokeywriter: aesenc_smek.enc must be generated
Sheng Zhao [Sun, 18 Dec 2022 18:50:22 +0000 (12:50 -0600)]
keywriter: aesenc_smek.enc must be generated

Re-enable gen_sym_key_x509_extension to generate aesenc_smek.enc. Keep
the encrypt smek message if smek is given.

Fixes: PDK-12456
Signed-off-by: Sheng Zhao <shengzhao@ti.com>
2 months ago[FreeRTOS][SafeRTOS]: Pushing out the C7X support files into csl/arch. REL.CORESDK.08.06.00.06 REL.CORESDK.08.06.00.07
Mriganka Chakravarty [Sat, 21 Jan 2023 07:28:27 +0000 (12:58 +0530)]
[FreeRTOS][SafeRTOS]: Pushing out the C7X support files into csl/arch.

- SafeRTOS uses the same C7X support files as FreeRTOS.
- To avoid redundant code, we push the common support files to CSL.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
2 months ago[SafeRTOS]: Added SafeRTOS support for J784S4 and integrated new WHIS packages for...
Mriganka Chakravarty [Tue, 13 Dec 2022 12:38:51 +0000 (18:08 +0530)]
[SafeRTOS]: Added SafeRTOS support for J784S4 and integrated new WHIS packages for J721E and J721S2.

- Version of WHIS Packages:
  <J721E,R5F>:  009-004-199-024-219-001.
  <J721E,C7X>:  009-004-230-005-219-001.
  <J721E,C66>:  009-002-201-005-219-002.
  <J7200,R5F>:  009-002-199-024-243-001.
  <J721S2,R5F>: 009-004-199-024-235-002.
  <J721S2,C7X>: 009-004-230-005-235-001.
  <J784S4,R5F>: 009-004-199-024-251-001.
  <J784S4,C7X>: 009-004-230-005-251-001.
- **For the R5F on TDA4V-X packages, a lot of APIs have their names changed.**
  - This is not the case for DRA821(J7200), and hence the respective API calls is SOC protected accordingly.
  - There is a new SafeRTOS_utils_j7200_r5f.asm file, as the vDataAbort function has changed into vApplicationDataAbortHook for TDA4V-X SOCs, but not for DRA821.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
2 months agoMigrating to TIFS version v08_06_01 REL.CORESDK.08.06.00.04 REL.CORESDK.08.06.00.05
Don Dominic [Wed, 25 Jan 2023 07:37:50 +0000 (13:07 +0530)]
Migrating to TIFS version v08_06_01

Signed-off-by: Don Dominic <a0486429@ti.com>
2 months ago[PDK-10977] : Linker file changes to build sbl_boot_xip_test for j721s2,
Sai Ramakurthi [Wed, 25 Jan 2023 09:15:36 +0000 (14:45 +0530)]
[PDK-10977] : Linker file changes to build sbl_boot_xip_test for j721s2,
j784s4

- Change OCMRAM_SBL_SYSFW memory to 0x41C83000 since 0x41C3E000 is used
by SBL
- Issue mentioned in the JIRA is a validation issue

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
2 months agoReverted MCSPI driver changes
Rishabh Garg [Tue, 24 Jan 2023 13:51:48 +0000 (19:21 +0530)]
Reverted MCSPI driver changes

2 months ago[PDK-12106][OSAL_SafeRTOS]: HwiP_disable/restore can only be called from Privileged...
Mriganka Chakravarty [Thu, 19 Jan 2023 04:21:24 +0000 (09:51 +0530)]
[PDK-12106][OSAL_SafeRTOS]: HwiP_disable/restore can only be called from Privileged Mode on R5.

- Hwip_disable/restore should only be called from privileged mode.
- Added an Osal utils API: Osal_isInPrivilegeMode.
  - The API returns true if called from privileged mode, and false otherwise.
- Used Osal_isInPrivilegedMode to find the privilege mode of the task calling HwiP_disable/restore.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
2 months agoSafertos: UDMA UT: Build fix
Lohith Kumar [Tue, 24 Jan 2023 10:29:33 +0000 (15:59 +0530)]
Safertos: UDMA UT: Build fix

Safertos doesnot support LoadP_getCPULoad and LoadP_getTaskLoad API's.
Using utils_prf_baremetal.c to fix build.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
2 months agoFix: MCSPI Build failure
Lohith Kumar [Tue, 24 Jan 2023 10:17:20 +0000 (15:47 +0530)]
Fix: MCSPI Build failure

fix build failure due to modification of structure from
void * to uint64_t.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
2 months agoFix: MCSPI build failure.
Lohith Kumar [Tue, 24 Jan 2023 06:02:56 +0000 (11:32 +0530)]
Fix: MCSPI build failure.

MCSPI facing build failures after modifying the transaction
structure's  txBuf/rxBuf from void * to uint64_t. Fix all the
places where txBuf/rxBuf getting typecasted to void *.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
2 months agoFVID2 klocwork fixes for the MISRAC checker code MISRA.FUNC.UNUSEDPAR.2012
Asha [Fri, 20 Jan 2023 07:11:47 +0000 (12:41 +0530)]
FVID2 klocwork fixes for the MISRAC checker code MISRA.FUNC.UNUSEDPAR.2012

Signed-off-by: Asha <x1101668@ti.com>
2 months agoFix: UDMA UT linking failures.
Lohith Kumar [Mon, 23 Jan 2023 15:36:39 +0000 (21:06 +0530)]
Fix: UDMA UT linking failures.

Add udma_test_proxy.c udma_test_ring_monitor.c those got removed
from makefile with commit 956aaad9e19, creating build failures
for UDMA UT.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
2 months ago[PDK-12487][SBL]: Add separate target for SBL to measure boot performance.
Sai Ramakurthi [Mon, 19 Dec 2022 13:29:27 +0000 (18:59 +0530)]
[PDK-12487][SBL]: Add separate target for SBL to measure boot performance.

- Add sbl_boot_perf_cust_img to measure boot performance using
sbl_boot_perf_test.
- Remove dead code.
- Remove unused linker files
- cleaned up sbl_boot_perf_test code

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
2 months agoBug Fix: PDK-12324
Rishabh Garg [Tue, 17 Jan 2023 09:28:54 +0000 (14:58 +0530)]
Bug Fix: PDK-12324

- Board init was added to all IPC libraries
- Intent was to enable DM traces and hence Board Init should be done
only for mcu1_0
- Made the fix in example

Signed-off-by: Rishabh Garg <rishabh@ti.com>
2 months agoFix: PDK-12437: UDMA UT prints CPU load as 100%
Lohith Kumar [Mon, 23 Jan 2023 09:38:56 +0000 (15:08 +0530)]
Fix: PDK-12437: UDMA UT prints CPU load as 100%

- UDMA UT was using baremetal calculation instead of
  using freeRTOS API's to profile CPU usage and
  always prints 100% cpu usage. This commit uses freeRTOS
  API's to profile UDMA UT.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>