AnsweredAssumed Answered

Problem about GPU's __ResetGPU

Question asked by jiongzhong liu on May 11, 2016
Latest reply on May 12, 2016 by igorpadykov

My board is a custom board based on IMX6Q sabresd,I used linux 3.10(yocto git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.10.17-1.0.2_ga)。I shall use this linux version.

there is a problem about GPU initialization,it initialize the GPU failed, and I found it is hang in gc_hal_kernel_hardware.c--->__RestGPU:

static gceSTATUS _ResetGPU(

    IN gckHARDWARE Hardware,

    IN gckOS Os,

    IN gceCORE Core

    )

{

.......

    for (;;)

    {

        ....

        gcmkONERROR(gckOS_WriteRegisterEx(Os,

                                          Core,

                                          0x00000,

                                          control));

        /* Read idle register. */

        gcmkONERROR(gckOS_ReadRegisterEx(Os,

                                         Core,

                                         0x00004,

                                         &idle));

        if ((((((gctUINT32) (idle)) >> (0 ? 0:0)) & ((gctUINT32) ((((1 ? 0:0) - (0 ? 0:0) + 1) == 32) ? ~0 : (~(~0 << ((1 ? 0:0) - (0 ? 0:0) + 1)))))) ) == 0)

        {

            continue;      -------------------------------------->( **************always continue there*********)

        }

        .....

    }

.....

}

 

It seems  the write register failed. Can any body tell me what cause this problem? thank you!

Outcomes