This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM623: Extended OTP API - YOCTO - Application user space

Part Number: AM623


Tool/software:

Hi Team,

 I'm trying to  how to use extended OTP read write execution using my YOCTO application,

what needs to be built my processor. I have a yocto build application which I guess needs to use the TISCI API to write/read extended OTP data.

I'm trying to figure out how to add the relevant source files and include the proper header files, but I'm not sure exactly how to go about it.

When I look at some of the example code in the MCU PLUS SDK 10_00_00_14 there are certain header (deiver/sciclient.h, ext_otp.h etc.....)I get the impression this is code meant for the R5 and/or the M4.

The code layout and structure isn't clear to me and I'm just not sure how to get started trying to operate extended OTP from a linux application running . Is there a more specific guide for this?

regards,

-RJ

  • Hi RJ,
    As noted in the referenced e2e.
    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1369137/am623-read-extended-otp-from-linux-application/5275327#5275327
    "calling the TISCI APIs for the extended OTP WR/RD requires "secure host".
    https://software-dl.ti.com/tisci/esd/latest/2_tisci_msgs/security/extended_otp.html#sec-api-ext-otp-read-otp-mmr"
    Some references:
    - The extended OTP write/read with the TISCI APIs in R5 core ("secure host")
    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1235880/faq-how-to-update-ids-usb-pcie-pid-vid-mac-id-by-programming-extended-otp-on-am6x
    - SOC_UID read with the TISCI API from OPTEE running on A53 TZ ("secure host")
    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1383076/faq-am625-how-to-read-soc_uid-on-am6x-soc
    Best,
    -Hong

  • Hi, Hong.

    I read the thread, but it is not precisely relevant to my query, which is basically whether there is a driver for read and write operations on ext OTP from my YOCTO built user space. Could you also share some examples?

    "calling the TISCI APIs for the extended OTP WR/RD requires "secure host".

    What is exactly meant by Secure Host.


    NOTE: when i search through my kernel i saw a -*- TI System control interface (TISCI) message protocol , its already enabled in kernel.  


    I hope my question is clear!



    -RJ

  • Hi RJ,
    Sorry for delayed response as I was out of office last week.

    "calling the TISCI APIs for the extended OTP WR/RD requires "secure host".
    ">software-dl.ti.com/.../extended_otp.html

    On virtual "secure host" on AM62x, refer to the link
    https://software-dl.ti.com/tisci/esd/09_01_08/5_soc_doc/am62x/hosts.html
    where, the secure host ID=10 is used for ATF, and the secure host ID=11 is used for OPTEE in Linux SDK.

    Yes, there're TISCI driver in ATF, OPTEE, and Linux kernel.
    Best,
    -Hong

  • Hi Hong,

    Thanks for the replay!

    Yes, there're TISCI driver in ATF, OPTEE, and Linux kernel

    can you share the exact driver thread  , therefore i can call TISCI API in my Linux  user space for WR/RD operations.

    is there any modification required for driver ?

    can you also share any example for linux userspace build for extended OTP WR/RD .

    Thanks,

    -RJ

  • Hi RJ,
    Some reference on the TISCI driver code in ATF and OPTEE
    - ATF
    https://git.ti.com/cgit/atf/arm-trusted-firmware/tree/plat/ti/k3/common/drivers/ti_sci?h=10.00.07
    - OPTEE
    https://git.ti.com/cgit/optee/ti-optee-os/tree/core/arch/arm/plat-k3/drivers?h=10.00.07

    There're extended OTP reference driver code in OPTEE, and you'll need to add user space application to interact with the OPTEE extended OTP driver...
    Best,
    -Hong

  • Hi Hong,

    Thanks for the response !

    Linux kernel.

     Can you also share the Linux kernel driver for TISCI .

    There're extended OTP reference driver code in OPTEE, and you'll need to add user space application to interact with the OPTEE extended OTP driver...

    I had gone through driver  code able to saw the reference driver code , first of all i didn't plan to execute it with OPTEE, if I'm moving forward with OPTEE driver for extended OTP  what all changes i have to made for my build ?

    Regards,

    -RJ

  • Hi RJ,
    1/. The kernel tisci driver is under the folder
    https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/drivers/firmware?h=10.01.01
    2/. You'll need to add userspace application to interact the extended OTP driver in OPTEE...
    I'd recommend to refer to the OPTEE online resource to get started with OPTEE...
    https://optee.readthedocs.io/en/latest/general/about.html
    Best,
    -Hong

  • Hi Hong ,

    Q1 . Is there any way to  WR/RD extended OTP without using TISCI API , if yes how ?

    Q2 . Why extended OTP reference driver is only available in OPTEE, 

    I'd recommend to refer to the OPTEE online resourc

          when i refereed this OPTEE resources its  a long way process to do  build  OPTEE OS to my LINUX build. Why this recommendation when my aim is              only  for RD/WR in extended OTP.

    Q3. My plan is to not go for with OPTEE , how can i implement the extended OTP driver in kernel TISCI driver .

    regards,

    -RJ

  • Hi RJ,
    1/. no
    2/. and 3/.
    The rational is restricting access to the OTP efuse by "secure host".

    calling the TISCI APIs for the extended OTP WR/RD requires "secure host".
    ">software-dl.ti.com/.../extended_otp.html
    On virtual "secure host" on AM62x, refer to the link
    https://software-dl.ti.com/tisci/esd/09_01_08/5_soc_doc/am62x/hosts.html
    where, the secure host ID=10 is used for ATF, and the secure host ID=11 is used for OPTEE in Linux SDK.

    But the host-id for Linux kernel is "12" which is not a "secure host".
    https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/arch/arm64/boot/dts/ti/k3-am62-main.dtsi?h=10.01.01#n186

    2/. You'll need to add userspace application to interact the extended OTP driver in OPTEE...

    or ATF.

    Best,
    -Hong

  • Hi Hong,

    From our analysis we found ti_sci drivrer at the location optee_os/core/arch/arm/plat-k3/drivers/ti_sci.c 

    and

    otp key writing pseudo TA at the location optee_os/core/pta/k3/otp.c

    We have created a linux user space client application for the "otp pseudo trusted application" for reading the content in the MMR register

    #include <err.h>
    #include <stdio.h>
    #include <string.h>
    
    /* OP-TEE TEE client API (built by optee_client) */
    #include <tee_client_api.h>
    
    
    #define PTA_K3_OTP_KEYWRITING_UUID \
    	{ 0xacc50f40, 0x0613, 0x4abd, \
    		{ 0x8d, 0xfe, 0xa9, 0x64, 0xcb, 0x74, 0xeb, 0x69} }
    		
    #define TA_OTP_KEYWRITING_CMD_READ_MMR		0
    
    
    
    int main(int argc, char *argv[])
    {
    	TEEC_Result res;
    	TEEC_Context ctx;
    	TEEC_Session sess;
    	TEEC_Operation op;
    	TEEC_UUID uuid = PTA_K3_OTP_KEYWRITING_UUID;
    	uint32_t err_origin;
    
    
    	/* Initialize a context connecting us to the TEE */
    	res = TEEC_InitializeContext(NULL, &ctx);
    	if (res != TEEC_SUCCESS)
    		errx(1, "TEEC_InitializeContext failed with code 0x%x", res);
    
    
    	res = TEEC_OpenSession(&ctx, &sess, &uuid, TEEC_LOGIN_PUBLIC, NULL, NULL, &err_origin);		       
    	if (res != TEEC_SUCCESS)
    		errx(1, "TEEC_Opensession failed for pseudo TA 0x%x origin 0x%x", res, err_origin);
    
    			
    
    	memset(&op, 0, sizeof(op));
    
    	op.paramTypes = TEEC_PARAM_TYPES(TEEC_VALUE_INPUT,
    					 TEEC_VALUE_OUTPUT,
    					 TEEC_NONE, TEEC_NONE);
        op.params[0].value.a = 3;
    
    	// Invoke a command on the Pseudo TA
    	res = TEEC_InvokeCommand(&sess, TA_OTP_KEYWRITING_CMD_READ_MMR, &op, &err_origin);
    	if (res != TEEC_SUCCESS) {
    		errx(1, "Invoke command failed with code 0x%x origin 0x%x",
    			res, err_origin);
    	}
    
    	printf("read val = %0x\n", op.params[1].value.a);
    
    
    
    	TEEC_CloseSession(&sess);
    
    	TEEC_FinalizeContext(&ctx);
    
    	return 0;
    }
    But while executing the code, it showing error response "Invoke command failed with code 0xffff0001 origin 0x4". From the further analysis we found that this response error code is means TEE_ERROR_ACCESS_DENIED.
    The question is 
    Can we use this otp pseudo TA for Extended OTP reading/writing purpose or what is the correct method.
    What will be the reason for this 0xffff0001 (TEE_ERROR_ACCESS_DENIED) error code (using optee-os version 3.16.0)
  • Hi Joman,
    Have we configured the security board configurations on the extended OTP?
    https://software-dl.ti.com/tisci/esd/latest/3_boardcfg/BOARDCFG_SEC.html#extended-otp-array-configuration
    Best,
    -Hong

  • Hi Hong,

    No, we haven't configured extended OTP configurations yet. 

    Can you please guide us how to configure this. Is there any example code available for reference?

    Is it possible to configure from linux/optee?

  • Let's use the sec-cfg.yaml as an example
    https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/am62x/sec-cfg.yaml?h=10.01.03#n247

    -        write_host_id: 0
    -        otp_entry:
    -            -  # 1
    -                host_id: 0
    -                host_perms: 0
    ...
    +        write_host_id: 11
    +        otp_entry:
    +            -  # 1
    +                host_id: 11
    +                host_perms: 2
    + // make the same change for giving OPTEE read access for all 32 extended OTP rows

    Best,
    -Hong

  • Hi,

    changed otp_config section in board/ti/am62x/sec-cfg.yaml according to above example, but still getting the same error (Invoke command failed with code 0xffff0001 origin 0x4) while reading the extended otp.

  • I'd recommend you debug the issue directly on your setup.
    You may want to start with testing the extended OTP reading within the OPTEE driver itself first. Once you verified it works when calling within the OPTEE driver, you may move to next level - PTA, userspace app etc...
    Best,
    -Hong

  • Hi, 

    I Have tried with driver level testing and found 

    The sysfw version is:    SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.8--v09.02.08 (Kool Koala)')  

    And the further analysis of "k3_sec_proxy_recv"

          We found that the receive message header is providing

                   hdr->flags is showing 0 for receive message.

          But other parameter in the header providing the correct value        

                   hdr->host is  11

                   hdr->type is  0x9022

    So in my understanding the ti_sci driver is expecting TI_SCI_FLAG_RESP_GENERIC_ACK flag in "k3_sec_proxy_recv" response messages but it actually showing 0 value.

    I have changed security configuration in the u-boot source code and recompiled and replaced tiboot3.bin and tispl.bin, changed entire image also still not working. But i am not sure that security configurations successfully applied or not.

    How can I check security configurations correctly applied or not?

    Can i use yocto Kirkstone version bsp for development?

  • We'll need to check the updated secure board config is built into the first stage BL (tiboot3.bin).
    Can we capture the TIFS trace/log?
    https://software-dl.ti.com/tisci/esd/latest/4_trace/trace.html
    Best,
    -Hong

  • I have changed board/ti/am62x/board-cfg.yaml and added following configurations values

             trace_dst_enables 0x0001 (Traces to UART enabled)

             trace_src_enables 0x0004 (Traces from security management are allowed).

    The u-boot patch file added below for more information

    ---
     board/ti/am62x/board-cfg.yaml |   4 +-
     board/ti/am62x/sec-cfg.yaml   | 130 +++++++++++++++++-----------------
     2 files changed, 67 insertions(+), 67 deletions(-)
    
    diff --git a/board/ti/am62x/board-cfg.yaml b/board/ti/am62x/board-cfg.yaml
    index a26ef55bd45..cac5107547b 100644
    --- a/board/ti/am62x/board-cfg.yaml
    +++ b/board/ti/am62x/board-cfg.yaml
    @@ -32,5 +32,5 @@ board-cfg:
             subhdr:
                 magic: 0x020C
                 size: 8
    -        trace_dst_enables : 0x00
    -        trace_src_enables : 0x00
    +        trace_dst_enables : 0x0001
    +        trace_src_enables : 0x0004
    diff --git a/board/ti/am62x/sec-cfg.yaml b/board/ti/am62x/sec-cfg.yaml
    index bd5ed418e89..43ec0af8852 100644
    --- a/board/ti/am62x/sec-cfg.yaml
    +++ b/board/ti/am62x/sec-cfg.yaml
    @@ -248,104 +248,104 @@ sec-cfg:
             subhdr:
                 magic: 0x4081
                 size: 69
    -        write_host_id : 0
    +        write_host_id : 11
             otp_entry:
                 - #1
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #2
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #3
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #4
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #5
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #6
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #7
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #8
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #9
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #10
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #11
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #12
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #13
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #14
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #15
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #16
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #17
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #18
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #19
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #20
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #21
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #22
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #23
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #24
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #25
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #26
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #27
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #28
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #29
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #30
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #31
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
                 - #32
    -                host_id: 0
    -                host_perms: 0
    +                host_id: 11
    +                host_perms: 2
         dkek_config:
             subhdr:
                 magic: 0x5170
    -- 
    2.34.1

    And tried to monitor TIFS UART port messages ( /dev/ttyUSB1 in my case /dev/ttyUSB0 using as linux debug console). But it only showing two messages

    0x20800000

    0x20800001

    As per these values, Message coming from Security Domain (1), Action is Security Init (2).

    The meaning of first message is security Init started, and second message is security Ini ended. And it is not providing any information regarding sec configuration values activated or not.

  • I'm attaching a reference TIFS log with the following configurations

    -        trace_dst_enables : 0x00
    -        trace_src_enables : 0x00
    +        trace_dst_enables : 0x0D
    +        trace_src_enables : 0x3F

    Best,
    -Hong

    Configuring trace data version to: 0x03007
    ?
    ?
    ?
    ?
    2
    B2e2B
    R2?
    
    2
    B2e2B
    R2?
    *2
    B2e2B
    R2?
    
    2
    B2e2B
    R2?
    *RRRR0x40C120
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0040C120:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: c120
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0040C120:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: c120
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0040C000:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: c000
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0040C100:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: c100
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0040C120:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: c120
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0040C120:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: c120
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0040C005:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: c005
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0042C000:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c000
    0x008200FA:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 250
    0x0042C400:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c400
    0x008200FA:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 250
    0x0042C100:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c100
    0x008200FA:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 250
    0x0042C401:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c401
    0x008200FA:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 250
    0x0042C101:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c101
    0x008200FA:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 250
    0x0042C101:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c101
    0x008200FA:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 250
    0x00400002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 2
    0x0080000A:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 10
    0x04003007:   BasePort: TRACE_DATA_VERSION(OSAL/Baseport trace data version): Trace version major: 0x03 Trace version minor: 0x007
    0x04400928:   BasePort:   SYSFW_VERSION(System Firmware version): version: 9 subversion: 2 patch: 8
    0x0042C001:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c001
    0x008200FA:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 250
    0x00400200:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 200
    0x0080000A:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 10
    0x00420021:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: 21
    0x00820024:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 36
    0x0042000C:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c
    0x00820024:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 36
    0x4F8A00FF: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x00FF
    0x4F8B0001: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0001
    0x4F80001C: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 28
    0x4F8A00FF: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x00FF
    0x4F8B0001: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0001
    0x4F80001A: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 26
    0x4F8A00FF: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x00FF
    0x4F8B0001: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0001
    0x4F80001E: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 30
    0x4F8A00FF: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x00FF
    0x4F8B0001: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0001
    0x4F80001A: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 26
    0x4F8A00FF: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x00FF
    0x4F8B0001: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0001
    0x4F80001E: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 30
    0x00420002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: 2
    0x00820024:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 36
    0x04003007:   BasePort: TRACE_DATA_VERSION(OSAL/Baseport trace data version): Trace version major: 0x03 Trace version minor: 0x007
    0x04400928:   BasePort:   SYSFW_VERSION(System Firmware version): version: 9 subversion: 2 patch: 8
    0x004F0200:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 15 Message ID: 200
    0x008F00FE:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 15 Host ID: 254
    0x00400022:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 22
    0x0080000A:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 10
    0x004F0022:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 15 Message ID: 22
    0x008F00FE:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 15 Host ID: 254
    0x00400002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 2
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x04003007:   BasePort: TRACE_DATA_VERSION(OSAL/Baseport trace data version): Trace version major: 0x03 Trace version minor: 0x007
    0x04400928:   BasePort:   SYSFW_VERSION(System Firmware version): version: 9 subversion: 2 patch: 8
    0x00409033:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 9033
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x00409034:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 9034
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x00409029:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 9029
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x00409002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 9002
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x00409002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 9002
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x00409001:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 9001
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x00409000:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 9000
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x00420002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: 2
    0x0082000C:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 12
    0x04003007:   BasePort: TRACE_DATA_VERSION(OSAL/Baseport trace data version): Trace version major: 0x03 Trace version minor: 0x007
    0x04400928:   BasePort:   SYSFW_VERSION(System Firmware version): version: 9 subversion: 2 patch: 8
    0x0042C120:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c120
    0x0082000C:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 12
    0x0042C120:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c120
    0x0082000C:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 12
    0x00420002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: 2
    0x0082000C:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 12
    0x04003007:   BasePort: TRACE_DATA_VERSION(OSAL/Baseport trace data version): Trace version major: 0x03 Trace version minor: 0x007
    0x04400928:   BasePort:   SYSFW_VERSION(System Firmware version): version: 9 subversion: 2 patch: 8
    0x00420002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: 2
    0x0082000C:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 12
    0x04003007:   BasePort: TRACE_DATA_VERSION(OSAL/Baseport trace data version): Trace version major: 0x03 Trace version minor: 0x007
    0x04400928:   BasePort:   SYSFW_VERSION(System Firmware version): version: 9 subversion: 2 patch: 8
    

  • =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2024.11.08 16:59:55 =~=~=~=~=~=~=~=~=~=~=~=
    0x4F8A0000
    0x4F8B0000
    0x4F80001C
    0x4003007
    0x4400928
    0x20800000
    0x20800001
    0x4F8A00FF
    0x4F8B0001
    0x4F80001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4C40001C
    0x4F8A00FF
    0x4F8B0001
    0x4F80001A
    0x4F8A00FF
    0x4F8B0001
    0x4F80001E
    0x4F8A00FF
    0x4F8B0001
    0x4F80001A
    0x4F8A00FF
    0x4F8B0001
    0x4F80001E
    0x400002
    0x800023
    0x4003007
    0x4400928
    0x40C120
    0x800023
    0x40C120
    0x800023
    0x40C120
    0x800023
    0x40C000
    0x800023
    0x40C100
    0x800023
    0x40C120
    0x800023
    0x40C120
    0x800023
    0x40C005
    0x800023
    0x42C000
    0x8200FA
    0x42C400
    0x8200FA
    0x42C100
    0x8200FA
    0x42C401
    0x8200FA
    0x42C101
    0x8200FA
    0x42C101
    0x8200FA
    0x400002
    0x80000A
    0x4003007
    0x4400928
    0x42C001
    0x8200FA
    0x400200
    0x80000A
    0x420021
    0x820024
    0x42000C
    0x820024
    0x4F8A00FF
    0x4F8B0001
    0x4F80001C
    0x4F8A00FF
    0x4F8B0001
    0x4F80001A
    0x4F8A00FF
    0x4F8B0001
    0x4F80001E
    0x4F8A00FF
    0x4F8B0001
    0x4F80001A
    0x4F8A00FF
    0x4F8B0001
    0x4F80001E
    0x420002
    0x820024
    0x4003007
    0x4400928
    0x4F0200
    0x8F00FE
    0x400022
    0x80000A
    0x4F0022
    0x8F00FE
    0x400002
    0x80000B
    0x4003007
    0x4400928
    0x409033
    0x80000B
    0x409034
    0x80000B
    0x409029
    0x80000B
    0x409002
    0x80000B
    0x409002
    0x80000B
    0x409001
    0x80000B
    0x409000
    0x80000B
    0x420002
    0x82000C
    0x4003007
    0x4400928
    0x42C120
    0x82000C
    0x42C120
    0x82000C
    0x420002
    0x82000C
    0x4003007
    0x4400928
    0x420002
    0x82000C
    0x4003007
    0x4400928
    0x420002
    0x82000C
    0x4003007
    0x4400928
    0��,1L�8'0#8��!&R0�&N�0*4�0�I�8�0���0G&.�02*4�"�L�838���0G10,%8-��0*�89R0�&.�02*4�"�L�838���0G10,%�0��L�M�8'0#8��!&R0�&N�0*4�0�I�8�8���0��0L�8'0#8��!&R0�&N�0*4�0���4�l�0G&.�02*4�"�L�838�l�0G#
    0,#8M�70L�80�6�G�,058M�20L�0��L�M�8'0#8��!&R0�&N�0*4�0�I�8�4���0��,1L�8'0#8��!&R0�&N�0*4�0�I�8�0���0G&.�02*4�"�L�838���0G10,%8-��0*�89R0�&.�02*4�"�L�838���0G10,%�0��0L�8'0#8��!&R0�&N�0*4�0���4�l�0G&.�02*4�"�L�838�l�0G#
    0,#8M�70L�80�6�G�,068M�20L�0��,1L�8'0#8��!&R0�&N�0*4�0�I�8�0���0G&.�02*4�"�L�838���0G10,%8-��0*�89R0�&.�02*4�"�L�838���0G10,%�0��L�M�8'0#8��!&R0�&N�0*4�0�I�8�4���0��L8L�8'0#8��!&R0�&N�0*4�0�N�8�0�,*��4���3�02*4�"�L�838�,*�0�N�83�02*4�"�L�838�,*�0�N�83�02*4�"�L�838���0G5
    0,%8-�4����0l�0G&.�02*4�"�L�838�,*�0�N�8˰�5�*��1S0����5f*4�!&R0�&N�0*4�0�I�8�0���0G5,0,6�0��0L�8'0#8��!&R0�&N�0*4�0���4�l�0G&.�02*4�"�L�838�l�0G#
    0,#8M�70L�80�6�G�,078M�20L�0��,1L�8'0#8��!&R0�&N�0*4�0�I�8�0���0G&.�02*4�"�L�838���0G10,%8-��0*�80M�83�02*4�"�L�838���0G10,%�0��,1L�8'0#8��!&R0�&N�0*4�0�I�8�0���0G&.�02*4�"�L�838���0G10,%8-��0*�80M�83�02*4�"�L�838���0G10,%�0��,1L�8'0#8��!&R0�&N�0*4�0�I�8�0���0G&.�02*4�"�L�838���0G10,%8-��0*�89R0�&.�02*4�"�L�838���0G10,%�0��L�M�8'0#8��!&R0�&N�0*4�0�I�8�4���0��L8L�8'0#8��!&R0�&N�0*4�0�N�8�0�,*��4���3�02*4�"�L�838�,*�0�N�83�02*4�"�L�838�,*�0�N�83�02*4�"�L�838���0G5
    0,%8-�4����0l�0G&.�02*4�"�L�838�,*�0�N�8˰�5�*���S0����5v*4�!&R0�&N�0*4�0�I�8�0���0G5,0,7�0��0L�8'0#8��!&R0�&N�0*4�0���4�l�0G&.�02*4�"�L�838�l�0G#
    0,#8M�70L�80�6�G�,088M�20L�0��,1L�8'0#8��!&R0�&N�0*4�0�I�8�0���0G&.�02*4�"�L�838���0G10,%8-��0*�80M�83�02*4�"�L�838���0G10,%�0��,1L�8'0#8��!&R0�&N�0*4�0�I�8�0���0G&.�02*4�"�L�838���0G10,%8-��0*�80M�83�02*4�"�L�838���0G10,%�0��,1L�8'0#8��!&R0�&N�0*4�0�I�8�0���0G&.�02*4�"�L�838���0G10,%8-��0*�89R0�&.�02*4�"�L�838���0G10,%�0��L�M�8'0#8��!&R0�&N�0*4�0�I�8�8���0��L8L�8'0#8��!&R0�&N�0*4�0�N�8�0�,*4�!&R0�&N�0*4�0�N�8�0�,*4�!&R0�&N�0*4�0�I�8�8���0G��0#8-�3���3�02*4�"�L�838�,*�0�N�85
    0l�0G&.�02*4�"�L�838�,*�0�N�8˰(�l�0G9L�5*�V%��L�83�02*4�"�L�838���0G3
    0,%8m��l�0��0L�8'0#8��!&R0�&N�0*4�0���4�l�0G&.�02*4�"�L�838�l�0G#
    0,#8M�70L�80�6�G�,098M�20L�0��,1L�8'0#8��!&R0�&N�0*4�0�I�8�0���0G&.�02*4�"�L�838���0G10,%8-��0*�80M�83�02*4�"�L�838���0G10,%�0��,1L�8'0#8��!&R0�&N�0*4�0�I�8�0���0G&.�02*4�"�L�838���0G10,%8-��0*�80M�83�02*4�"�L�838���0G10,%�0��0L�8'0#8M�70L�800l�0��0L�8'0#8M�70L�800l�0��0L�8'0#8M�70L�800l�0��0L�8'0#8M�70L�800l�0��0L�8'0#8M�70L�800l�0��0L�8'0#8M�70L�800l�0��0L�8'0#8M�70L�800l�0��0L�8'0#8M�70L�800l�0��0L�8'0#8M�70L�800l�0��0L�8'0#8M�70L�800l

    I have tried above steps and collected the logs please find the attached putty.log file. For my case the messages only contain numbers and not showing any detailed messages like "BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35". Also after some time message seems like corrupted.

  • Hi,

    Attaching my parsed trace logs here. It is not showing any error message. 

    But the main problem I noticed is it is showing garbage values after a point of time, is this because of sysfw crash? 

    Configuring trace data version to: 0x03007
    0x4F8A0000: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x0000
    0x4F8B0000: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0000
    0x4F80001C: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 28
    0x04003007:   BasePort: TRACE_DATA_VERSION(OSAL/Baseport trace data version): Trace version major: 0x03 Trace version minor: 0x007
    0x04400928:   BasePort:   SYSFW_VERSION(System Firmware version): version: 9 subversion: 2 patch: 8
    0x20800000:   Security: SEC_INIT(Security post boardconfig initialization): Start(0) or End(1): 0
    0x20800001:   Security: SEC_INIT(Security post boardconfig initialization): Start(0) or End(1): 1
    0x4F8A00FF: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x00FF
    0x4F8B0001: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0001
    0x4F80001C: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4C40001C: Resource Management: IRQ_IA_MAP_VINT(Map an event to an IA virtual interrupt): IA device ID: 28
    0x4F8A00FF: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x00FF
    0x4F8B0001: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0001
    0x4F80001A: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 26
    0x4F8A00FF: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x00FF
    0x4F8B0001: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0001
    0x4F80001E: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 30
    0x4F8A00FF: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x00FF
    0x4F8B0001: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0001
    0x4F80001A: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 26
    0x4F8A00FF: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x00FF
    0x4F8B0001: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0001
    0x4F80001E: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 30
    0x00400002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 2
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x04003007:   BasePort: TRACE_DATA_VERSION(OSAL/Baseport trace data version): Trace version major: 0x03 Trace version minor: 0x007
    0x04400928:   BasePort:   SYSFW_VERSION(System Firmware version): version: 9 subversion: 2 patch: 8
    0x0040C120:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: c120
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0040C120:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: c120
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0040C120:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: c120
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0040C000:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: c000
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0040C100:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: c100
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0040C120:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: c120
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0040C120:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: c120
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0040C005:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: c005
    0x00800023:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 35
    0x0042C000:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c000
    0x008200FA:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 250
    0x0042C400:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c400
    0x008200FA:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 250
    0x0042C100:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c100
    0x008200FA:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 250
    0x0042C401:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c401
    0x008200FA:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 250
    0x0042C101:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c101
    0x008200FA:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 250
    0x0042C101:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c101
    0x008200FA:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 250
    0x00400002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 2
    0x0080000A:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 10
    0x04003007:   BasePort: TRACE_DATA_VERSION(OSAL/Baseport trace data version): Trace version major: 0x03 Trace version minor: 0x007
    0x04400928:   BasePort:   SYSFW_VERSION(System Firmware version): version: 9 subversion: 2 patch: 8
    0x0042C001:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c001
    0x008200FA:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 250
    0x00400200:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 200
    0x0080000A:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 10
    0x00420021:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: 21
    0x00820024:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 36
    0x0042000C:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c
    0x00820024:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 36
    0x4F8A00FF: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x00FF
    0x4F8B0001: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0001
    0x4F80001C: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 28
    0x4F8A00FF: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x00FF
    0x4F8B0001: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0001
    0x4F80001A: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 26
    0x4F8A00FF: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x00FF
    0x4F8B0001: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0001
    0x4F80001E: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 30
    0x4F8A00FF: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x00FF
    0x4F8B0001: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0001
    0x4F80001A: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 26
    0x4F8A00FF: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group given in RM boardcfg message: 0x00FF
    0x4F8B0001: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device group of configured resource: 0x0001
    0x4F80001E: Resource Management: DEVGRP_VALIDATE(Validating device group of resource): Device ID being validated: 30
    0x00420002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: 2
    0x00820024:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 36
    0x04003007:   BasePort: TRACE_DATA_VERSION(OSAL/Baseport trace data version): Trace version major: 0x03 Trace version minor: 0x007
    0x04400928:   BasePort:   SYSFW_VERSION(System Firmware version): version: 9 subversion: 2 patch: 8
    0x004F0200:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 15 Message ID: 200
    0x008F00FE:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 15 Host ID: 254
    0x00400022:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 22
    0x0080000A:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 10
    0x004F0022:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 15 Message ID: 22
    0x008F00FE:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 15 Host ID: 254
    0x00400002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 2
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x04003007:   BasePort: TRACE_DATA_VERSION(OSAL/Baseport trace data version): Trace version major: 0x03 Trace version minor: 0x007
    0x04400928:   BasePort:   SYSFW_VERSION(System Firmware version): version: 9 subversion: 2 patch: 8
    0x00409033:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 9033
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x00409034:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 9034
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x00409029:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 9029
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x00409002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 9002
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x00409002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 9002
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x00409001:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 9001
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x00409000:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 0 Message ID: 9000
    0x0080000B:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 0 Host ID: 11
    0x00420002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: 2
    0x0082000C:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 12
    0x04003007:   BasePort: TRACE_DATA_VERSION(OSAL/Baseport trace data version): Trace version major: 0x03 Trace version minor: 0x007
    0x04400928:   BasePort:   SYSFW_VERSION(System Firmware version): version: 9 subversion: 2 patch: 8
    0x0042C120:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c120
    0x0082000C:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 12
    0x0042C120:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: c120
    0x0082000C:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 12
    0x00420002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: 2
    0x0082000C:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 12
    0x04003007:   BasePort: TRACE_DATA_VERSION(OSAL/Baseport trace data version): Trace version major: 0x03 Trace version minor: 0x007
    0x04400928:   BasePort:   SYSFW_VERSION(System Firmware version): version: 9 subversion: 2 patch: 8
    0x00420002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: 2
    0x0082000C:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 12
    0x04003007:   BasePort: TRACE_DATA_VERSION(OSAL/Baseport trace data version): Trace version major: 0x03 Trace version minor: 0x007
    0x04400928:   BasePort:   SYSFW_VERSION(System Firmware version): version: 9 subversion: 2 patch: 8
    0x00420002:   BasePort: TISCI_MSG_RECEIVED(TISCI Message interrupt handled): Queue ID: 2 Message ID: 2
    0x0082000C:   BasePort: TISCI_MSG_SENDER_HOST_ID(Message from secure host received): Queue ID: 2 Host ID: 12
    0x04003007:   BasePort: TRACE_DATA_VERSION(OSAL/Baseport trace data version): Trace version major: 0x03 Trace version minor: 0x007
    0x04400928:   BasePort:   SYSFW_VERSION(System Firmware version): version: 9 subversion: 2 patch: 8
    0,1'0#8302*4"L8380G10,%8!&R0&N0*400G100800G&2*4"L8380G10%0LM8'0#8!&R0&N0*40I800L8'0#8!&R0G&N0*404l0G&.2*4"L8386G#
    0,#8M70L0641M8100LM'0#8&R0&N*40I84V0,1L'0#8m&R0&'*40I80VG&.02*4"38G10,%80*89R0&2*4"L838VG10,%00L8'0#8!&R0&N0*400#
    0,#8!&R0G&N0*404l0G"l008M80f*4200,1L'0#8&R0&.*40I80VG&.02*4"L380G10,%80*89R0&2*4"L838VG10,%0LM'0#8m&R0&'*40I84V0L8'0#8e&R0&'*40N80,*4302*4"L38,*0N8302*4"L838,*0N8302*4"38G5
    0,%85
    0l0Gm0#8&R0&N*40N80*0S09Lf*-0S0F&.02*4"L8380G50,%8f00L8'0#8!&R0&N0*404l0G&2*4"L838l0G#
    0#8M7006Y41S0GL0001L8'0#8!&R0&N0*40I800G&2*4"L8380G10%8-0*80M302*4"L8380G10,%01L8'0#8!&R0G&N0*40I800G&2*4"L838VG10,%8-0*80M302*4"L8380G10,%0,1L8'0#8!&R0&N*40R010,%8!&R0G&N0*40I800G1t008-00G&.2*4"38G10,%0LM'0#8&R0&*40I84V0L8L8'0#8!&R0&N*400,*4a302*4"L838,*0N8302*4"L838*0302*4"L8380G50,%8-0l0G&.2*4"38,*0N5*S0V
    *4!&R0&N*40I80\G5,0,70G0L8'0#8!&R0&N0*40a4l0G&.02*4"L838l0G#
    0,#8M70L806G,088M20L0,1'0#8!&R0F&N0*40I800G&.2*4"L838TG10,%8-0*80M8302*4"L8380G10%0,1L8'0#8!&R0G&N0*40I800G&.2*4"L838VG10,%8-0*80M302*4"L8380G10,%01L8'0#8!&R0&N0*40I800G&2*4"L8380G10%8-0*89R0&.02*4"L8380G10,%0LM'0#8&R0&.*40I88V0&8L8'0#8!&R0&N0*40N80,*4!&R0&.*40N80*4!&R0&N0*40I80G0#8-0l0G&2*4"L838*05
    0lG&.02*4"L838,*0N8l0G9L
    *V%302*4"L380G3
    0,%87l00L8'0#8&R0&N*404lG&.02*4"L38l0G#
    0,#8M0*480*4200G,1L8'0#8!&R0&N0*400G&.02*4"L8380G10,%8-0*80M8302*4"38G10,%0,1L'0#8&R0&.*40I80VG&.02*4"L380G10,%80*80M8302*4"L838VG10,%00L8'0#8M7000l00L'0#8M0L800l00L8'0#8M70L800600L'0#8M0*4800L8'0#8M70L800600L8'0#8M0L800l00L8'0#8M0L800l00L8'0#8M70L00l00L8'0#8M70L00l00L8'0#8M70L00l
    

  • It looks like the "Message ID: 9022" is not logged or received by TISCI.
    Best,
    -Hong

  • Can we re-test by moving the "write_host_id" entry after 32 entries of "otp_entry" in
    https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/am62x/sec-cfg.yaml?h=10.01.08#n251
    Here is the reference on Extended OTP array configuration in secure board config
    https://software-dl.ti.com/tisci/esd/latest/3_boardcfg/BOARDCFG_SEC.html#extended-otp-array-configuration
    Best,
    -Hong

  • Hi Hong,

    Thank you for the details

    I have changed the sec-cfg.yaml according to OTP array configuration please find the attached file.

    # SPDX-License-Identifier: GPL-2.0+
    # Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
    #
    # Security management configuration for AM62
    #
    
    ---
    
    sec-cfg:
        rev:
            boardcfg_abi_maj : 0x0
            boardcfg_abi_min : 0x1
        processor_acl_list:
            subhdr:
                magic: 0xF1EA
                size: 164
            proc_acl_entries:
                - #1
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #2
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #3
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #4
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #5
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #6
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #7
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #8
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #9
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #10
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #11
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #12
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #13
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #14
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #15
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #16
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #17
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #18
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #19
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #20
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #21
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #22
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #23
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #24
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #25
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #26
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #27
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #28
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #29
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #30
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #31
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
                - #32
                    processor_id: 0
                    proc_access_master: 0
                    proc_access_secondary: [0, 0, 0]
        host_hierarchy:
            subhdr:
                magic: 0x8D27
                size: 68
            host_hierarchy_entries:
                - #1
                    host_id: 0
                    supervisor_host_id: 0
                - #2
                    host_id: 0
                    supervisor_host_id: 0
                - #3
                    host_id: 0
                    supervisor_host_id: 0
                - #4
                    host_id: 0
                    supervisor_host_id: 0
                - #5
                    host_id: 0
                    supervisor_host_id: 0
                - #6
                    host_id: 0
                    supervisor_host_id: 0
                - #7
                    host_id: 0
                    supervisor_host_id: 0
                - #8
                    host_id: 0
                    supervisor_host_id: 0
                - #9
                    host_id: 0
                    supervisor_host_id: 0
                - #10
                    host_id: 0
                    supervisor_host_id: 0
                - #11
                    host_id: 0
                    supervisor_host_id: 0
                - #12
                    host_id: 0
                    supervisor_host_id: 0
                - #13
                    host_id: 0
                    supervisor_host_id: 0
                - #14
                    host_id: 0
                    supervisor_host_id: 0
                - #15
                    host_id: 0
                    supervisor_host_id: 0
                - #16
                    host_id: 0
                    supervisor_host_id: 0
                - #17
                    host_id: 0
                    supervisor_host_id: 0
                - #18
                    host_id: 0
                    supervisor_host_id: 0
                - #19
                    host_id: 0
                    supervisor_host_id: 0
                - #20
                    host_id: 0
                    supervisor_host_id: 0
                - #21
                    host_id: 0
                    supervisor_host_id: 0
                - #22
                    host_id: 0
                    supervisor_host_id: 0
                - #23
                    host_id: 0
                    supervisor_host_id: 0
                - #24
                    host_id: 0
                    supervisor_host_id: 0
                - #25
                    host_id: 0
                    supervisor_host_id: 0
                - #26
                    host_id: 0
                    supervisor_host_id: 0
                - #27
                    host_id: 0
                    supervisor_host_id: 0
                - #28
                    host_id: 0
                    supervisor_host_id: 0
                - #29
                    host_id: 0
                    supervisor_host_id: 0
                - #30
                    host_id: 0
                    supervisor_host_id: 0
                - #31
                    host_id: 0
                    supervisor_host_id: 0
                - #32
                    host_id: 0
                    supervisor_host_id: 0
        otp_config:
            subhdr:
                magic: 0x4081
                size: 69
            otp_entry:
                - #1
                    host_id: 11
                    host_perms: 2
                - #2
                    host_id: 11
                    host_perms: 2
                - #3
                    host_id: 11
                    host_perms: 2
                - #4
                    host_id: 11
                    host_perms: 2
                - #5
                    host_id: 11
                    host_perms: 2
                - #6
                    host_id: 11
                    host_perms: 2
                - #7
                    host_id: 11
                    host_perms: 2
                - #8
                    host_id: 11
                    host_perms: 2
                - #9
                    host_id: 11
                    host_perms: 2
                - #10
                    host_id: 11
                    host_perms: 2
                - #11
                    host_id: 11
                    host_perms: 2
                - #12
                    host_id: 11
                    host_perms: 2
                - #13
                    host_id: 11
                    host_perms: 2
                - #14
                    host_id: 11
                    host_perms: 2
                - #15
                    host_id: 11
                    host_perms: 2
                - #16
                    host_id: 11
                    host_perms: 2
                - #17
                    host_id: 11
                    host_perms: 2
                - #18
                    host_id: 0
                    host_perms: 2
                - #19
                    host_id: 11
                    host_perms: 2
                - #20
                    host_id: 11
                    host_perms: 2
                - #21
                    host_id: 11
                    host_perms: 2
                - #22
                    host_id: 11
                    host_perms: 2
                - #23
                    host_id: 11
                    host_perms: 2
                - #24
                    host_id: 11
                    host_perms: 2
                - #25
                    host_id: 11
                    host_perms: 2
                - #26
                    host_id: 11
                    host_perms: 2
                - #27
                    host_id: 11
                    host_perms: 2
                - #28
                    host_id: 11
                    host_perms: 2
                - #29
                    host_id: 11
                    host_perms: 2
                - #30
                    host_id: 11
                    host_perms: 2
                - #31
                    host_id: 11
                    host_perms: 2
                - #32
                    host_id: 11
                    host_perms: 2
            write_host_id : 11
        dkek_config:
            subhdr:
                magic: 0x5170
                size: 12
            allowed_hosts: [128, 0, 0, 0]
            allow_dkek_export_tisci : 0x5A
            rsvd: [0, 0, 0]
        sa2ul_cfg:
            subhdr:
                magic: 0x23BE
                size : 0
            auth_resource_owner: 0
            enable_saul_psil_global_config_writes: 0x5A
            rsvd: [0, 0]
        sec_dbg_config:
            subhdr:
                magic: 0x42AF
                size: 16
            allow_jtag_unlock : 0x5A
            allow_wildcard_unlock : 0x5A
            allowed_debug_level_rsvd: 0
            rsvd: 0
            min_cert_rev : 0x0
            jtag_unlock_hosts: [0, 0, 0, 0]
        sec_handover_cfg:
            subhdr:
                magic: 0x608F
                size: 10
            handover_msg_sender : 0
            handover_to_host_id : 0
            rsvd: [0, 0, 0, 0]
    

    here my observation is 

    Reading Procedure:

    After applying this change, reading extended OTP through optee is working. Now i can able to read all the mmr registers without error, except 17th (because i used host_id: 0 for the 18th row in the sec-cfg.yaml).

    Writing Procedure:
    enabled VPP using gpioset gpiochip2 4=1 
    Used following code for test write
            op.params[0].value.a = 0;
            op.params[1].value.a = 7;
            op.params[1].value.b = 0xffff;

            // Invoke a command on the Pseudo TA
            res = TEEC_InvokeCommand(&sess, TA_OTP_KEYWRITING_CMD_WRITE_ROW, &op, &err_origin);
    After writing i have tried to read MMR 0 again but it is showing value "1". 
    my doubt is if want to set the 0th row 5th bit then what will be the values of row index, value and mask?
    Linux boot error:
    I found the following ti-sci error message while booting the linux. what is its meaning? 
    root@am62xx-art:~# dmesg | grep ti-sci
    [ 1.021127] ti-sci 44043000.system-controller: ABI: 4.0 (firmware rev 0x000a '10.1.8--v10.01.08 (Fiery Fox)')
    [ 2.658273] ti-sci-clk 44043000.system-controller:clock-controller: recalc-rate failed for dev=81, clk=20, ret=-19
    [ 3.290154] ti-sci-intr bus@f0000:interrupt-controller@a00000: Interrupt Router 3 domain created
    [ 3.318053] ti-sci-inta 48000000.interrupt-controller: Interrupt Aggregator domain 28 created
    [ 8.882022] ti-sci-clk 44043000.system-controller:clock-controller: is_prepared failed for dev=81, clk=20, ret=-19
    [ 12.362508] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_set_rate+0x4c/0x60)
    [ 12.362508] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: xudma_navss_psil_pair+0x2c/0x40)
    [ 12.362559] ti-sci 44043000.system-controller: RM_PSIL:Mbox send fail -110
    [ 12.372037] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 14.154523] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 14.164573] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 14.170752] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 14.934134] ti-sci 44043000.system-controller: Message for 1 is not expected!
    [ 14.955333] ti-sci 44043000.system-controller: Message for 0 is not expected!
          
                    
  • Hi Jomon,
    Thanks for your update on good progress.
    Some reference on the extended OTP array layout in the OTP efuse.
    - TIFS
    https://software-dl.ti.com/tisci/esd/latest/6_topic_user_guides/extended_otp.html
    https://software-dl.ti.com/tisci/esd/latest/6_topic_user_guides/key_writer.html#extended-otp
    - "Chapter 8 One-Time Programmable Security Keys and Values" in K3 Security Hardware Architecture TRM.
    https://dr-download.ti.com/authenticated/secure/software-development/application-software-framework/MD-W5I8h4voaD/09.01.00.05/SPRUIM0C-C-windows-installer.exe?

    The TISCI error messages looks like from DM (PM/RM services) which're not relevant from the extended OTP operations.

    Best,
    -Hong