TDA4VH-Q1: Init check params error when using mmalib matrix multiplication functions

Part Number: TDA4VH-Q1

Tool/software:

Hi TI,

I am trying to use MMALIB functions to rotate/flip images. I have created a custom kernel for these functionalities.  

Below is a function I have implemented to flip the image. I am calling this function in the kernel process function to flip the image.

I am passing 512x1024 image in the flip kernel.

static vx_status Img_Flip(const uint8_t *Src_data, uint8_t *Dst_data)
{
    vx_status status = VX_SUCCESS;
 
    MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_InitArgs Mutiply_InitArgs;
    int32_t handleSize_multiply = MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_getHandleSize(&Mutiply_InitArgs);
    MMALIB_kernelHandle MultiplyKernelHandle = (MMALIB_kernelHandle)tivxMemAlloc(handleSize_multiply, TIVX_MEM_EXTERNAL_SCRATCH);
    if(MultiplyKernelHandle == NULL)
    {
        printf("#ERROR# Unable to allocate memory for matrix multiply kernel\n");
        status = VX_FAILURE;
    }
 
    MMALIB_STATUS status_init_multiply_check= MMALIB_ERR_FAILURE;
    MMALIB_STATUS status_init_multiply = MMALIB_ERR_FAILURE;
    MMALIB_STATUS status_opt = MMALIB_ERR_FAILURE;
    printf("[flip kernel]mvxlib_src1.dim_x: %d, mvxlib_src1.dim_y: %d\n", mvxlib_src1.dim_x, mvxlib_src1.dim_y);
    printf("[flip kernel]vxlib_src1_mult.dim_x: %d, vxlib_src1_mult.dim_y: %d\n", vxlib_src1_mult.dim_x, vxlib_src1_mult.dim_y);
    printf("[flip kernel]mvxlib_dst1.dim_x: %d, mvxlib_dst1.dim_y: %d\n", mvxlib_dst1.dim_x, mvxlib_dst1.dim_y);
    status_init_multiply_check = MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init_checkParams(MultiplyKernelHandle,
                                                                                                &mvxlib_src1,
                                                                                                &vxlib_src1_mult,
                                                                                                &mvxlib_dst1,
                                                                                                &Mutiply_InitArgs);
 
 
    if (status_init_multiply_check == MMALIB_SUCCESS)
    {
        Mutiply_InitArgs.funcStyle = MMALIB_FUNCTION_OPTIMIZED;
        status_init_multiply = MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init(MultiplyKernelHandle,
                                                                                    &mvxlib_src1,
                                                                                    &vxlib_src1_mult,
                                                                                    &mvxlib_dst1,
                                                                                    &Mutiply_InitArgs);
    }
    else
        printf("Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init_checkParams with status %d\n", status_init_multiply_check);
 
    if (status_init_multiply == MMALIB_SUCCESS)
    {
        status_opt = MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_exec_checkParams(
            MultiplyKernelHandle,
            (uint8_t *)Src_data,
            (uint8_t *)gp_flip_ident_mat,
            (uint8_t *)Dst_data);
    }
     else
        printf("Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init \n");           
    if (status_opt == MMALIB_SUCCESS)
    {
        status_opt = MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_exec(
            MultiplyKernelHandle,
            (uint8_t *)Src_data,
            (uint8_t *)gp_flip_ident_mat,
            (uint8_t *)Dst_data);
    }
    else
        printf("Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_exec_checkParams \n");
 
    tivxMemFree(MultiplyKernelHandle, handleSize_multiply, TIVX_MEM_EXTERNAL_SCRATCH);
 
    return status;
}

logs are below:

[C7x_2 ]    165.668093 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    165.668126 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    165.668149 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    165.669413 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    165.669446 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    165.669472 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    165.672179 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    165.672210 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    165.786510 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    165.786543 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    165.786567 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    165.786599 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init_checkParams with status 2

[C7x_2 ]    165.786635 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init 

[C7x_2 ]    165.786667 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_exec_checkParams 

[C7x_2 ]    165.786821 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    165.786852 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    165.786880 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    165.786911 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init_checkParams 

[C7x_2 ]    165.786941 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init 

[C7x_2 ]    165.786971 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_exec_checkParams 

[C7x_2 ]    165.789237 s: [flip kernel]mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    165.789274 s: [flip kernel]vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    165.789303 s: [flip kernel]mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    165.789338 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init_checkParams with status 2

[C7x_2 ]    165.789368 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init 

[C7x_2 ]    165.920574 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    165.920603 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init_checkParams 

[C7x_2 ]    165.920637 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init 

[C7x_2 ]    165.920669 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_exec_checkParams 

[C7x_2 ]    165.923119 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    165.923152 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    165.923177 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    165.923210 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init_checkParams with status 2

[C7x_2 ]    165.923241 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init 

[C7x_2 ]    165.923271 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_exec_checkParams 

[C7x_2 ]    165.923440 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    165.923471 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    165.923497 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    165.923526 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init_checkParams 

[C7x_2 ]    165.923555 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init 

[C7x_2 ]    165.923586 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_exec_checkParams 

[C7x_2 ]    165.926286 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    165.926319 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.068025 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.068058 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.068082 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.069297 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.069329 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.069355 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.072144 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.072177 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.072200 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.073389 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.073423 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.073449 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.076013 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.076045 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.076071 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.077263 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.077296 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.077322 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.193139 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.193172 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.193197 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.194527 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.194559 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.194585 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.197403 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.197440 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.197468 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.198629 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.198660 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.198686 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.201579 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.201612 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.201644 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.202864 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.202895 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.202921 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.205692 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.331993 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.332024 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.332047 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.333162 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.333234 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.333261 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.335663 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.335693 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.335718 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.336873 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.336905 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.336932 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.339662 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.339694 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.339719 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.340919 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.340952 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.340979 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.461502 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.461534 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.461560 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.481629 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.481663 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.481687 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.482992 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.483024 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.483052 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.489913 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.489945 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.489969 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.491096 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.491128 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.491155 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.493689 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.493721 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.493746 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.494856 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.494911 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.597043 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[run_graph_class_ii_iv:374] Running Graph [1]. Frame Execution Time [37907] usec

[C7x_2 ]    166.597075 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.597099 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.598251 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.598284 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.598310 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.601181 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.601214 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.601239 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.602655 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.602689 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.602716 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.606188 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.606220 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.606245 s: mvxlib_dst1.lt_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.867907 s: [flip kernel]vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.870848 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.870879 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.870904 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.872072 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    166.872105 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    166.872132 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    166.874361 s: [flip kernel]mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    166.874395 s: [flip kernel]vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    166.874424 s: [flip kernel]mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    166.874458 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init_checkParams with status 2[C7x_2 ]    167.002791 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    167.005581 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.005612 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    167.005645 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    167.006819 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    167.006853 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    167.006880 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    167.009418 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.009449 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    167.009473 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    167.010606 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    167.010644 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    167.010670 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    167.013546 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.138299 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.138330 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    167.138354 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    167.139473 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    167.139505 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    167.139531 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    167.139561 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init_checkParams 

[C7x_2 ]    167.139589 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init 

[C7x_2 ]    167.139619 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_exec_checkParams 

[C7x_2 ]    167.154681 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.154713 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    167.154738 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    167.155871 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    167.155904 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    167.155930 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    167.155959 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init_checkParams 

[C7x_2 ]    167.155988 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init 

[C7x_2 ]    167.156017 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_exec_checkParams 

[C7x_2 ]    167.158413 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.273758 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.273790 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    167.273814 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    167.275111 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    167.275144 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    167.275170 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    167.277925 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.277958 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    167.277982 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    167.279145 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    167.279177 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    167.279203 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    167.281843 s: [flip kernel]mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.281890 s: [flip kernel]vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    167.281919 s: [flip kernel]mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    167.283055 s: [flip kernel]vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    167.283092 s: [flip kernel]vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    167.422822 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.422853 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_m12, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    167.567542 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    167.678423 s: [flip kernel]mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.678458 s: [flip kernel]vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    167.678487 s: [flip kernel]mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    167.679445 s: [flip kernel]vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    167.679481 s: [flip kernel]vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    167.679512 s: [flip kernel]vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    167.679544 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init_checkParams 

[C7x_2 ]    167.679573 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init 

[C7x_2 ]    167.679602 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_exec_checkParams 

[C7x_2 ]    167.681904 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.681934 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    167.681958 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    167.683157 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    167.683192 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    167.683218 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    167.686011 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.686043 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    167.686067 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    167.812517 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.812552 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    167.812575 s: mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    167.813742 s: vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    167.813774 s: vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    167.813801 s: vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    167.818808 s: [flip kernel]mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.818843 s: [flip kernel]vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    167.818872 s: [flip kernel]mvxlib_dst1.dim_x: 512, mvxlib_dst1.dim_y: 1024

[C7x_2 ]    167.819848 s: [flip kernel]vxlib_src01m_uv.dim_x: 256, vxlib_src01m_uv.dim_y: 512

[C7x_2 ]    167.819883 s: [flip kernel]vxlib_src1m_mult_uv.dim_x: 256, vxlib_src1m_mult_uv.dim_y: 256

[C7x_2 ]    167.819915 s: [flip kernel]vxlib_dst1m_uv.dim_x: 256, vxlib_dst1m_uv.dim_y: 512

[C7x_2 ]    167.819947 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init_checkParams 

[C7x_2 ]    167.819976 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init 

[C7x_2 ]    167.820005 s: Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_exec_checkParams 

[C7x_2 ]    167.835032 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

[C7x_2 ]    167.835064 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

[C7x_2 ]    167.948859 s: mvxlib_src1.dim_x: 512, mvxlib_src1.dim_y: 1024

.[C7x_2 ]    167.948891 s: vxlib_src1_mult.dim_x: 512, vxlib_src1_mult.dim_y: 512

Now the issue is I am randomly getting this check params error

Error - MMALIB_LINALG_matrixMatrixMultiply_ixX_ixX_oxX_init_checkParams with return value as 2(meaning: Invalid parameter value)

I have checked the values of the parameters and could not find where the issue is. 

Please suggest.

Thanks and regards,

Lalit