Vivante GPU driver can't load into kernel

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Vivante GPU driver can't load into kernel

ソリューションへジャンプ
10,744件の閲覧回数
junsun
Contributor II

We have encountered a strange problem on our customiezed board based on i.mx6q platform.

The LTIB package is L3.0.35_12.05.01.01_GA_source.tar.gz

Steps to reproduce the problem are listed below

1. Build the GPU driver ( galcore.ko ) in module way.

2. Poweron the board.

3. insmod the driver module (galcore.ko ) into kernel from usb disk.

4. The driver probe process is halted forever.

After added some debug infor in to kernel source code, we found the probe process is halted in _ResetGPU() function which is located in

../drivers/mxc/gpu-viv/arch/XAQ2/hal/kernel/gc_hal_kernel_hardware.c

Then we checked why the _ResetGPU can't work. We found that GPU idle register value and control register value are always 0x0. Below is the code.

for(;;)

       /* Disable clock gating. */

        gcmkONERROR(gckOS_WriteRegisterEx(Os,

                                     Core,

                    Hardware->powerBaseAddress +

                    0x00104,

                    0x00000000));

          ......

      

          gcmkONERROR(gckOS_ReadRegisterEx(Os,

                                         Core,

                                         0x00004,

                                         &idle));

        printk("@@GPU idle_reg: 0x%x\n",idle);

        gcmkONERROR(gckOS_ReadRegisterEx(Os,

                                         Core,

                                         0x00000,

                                         &control));

         printk("@@GPU control_reg: 0x%x\n",control);

         

          ......

                  

ラベル(2)
タグ(1)
1 解決策
5,794件の閲覧回数
andre_silva
NXP Employee
NXP Employee

You don´t have to use the driver generated by the source code. Instead, you use the driver built in kernel. The only things you get from the gpu source is the libraries... the .ko comes from kernel.

元の投稿で解決策を見る

0 件の賞賛
返信
24 返答(返信)
459件の閲覧回数
andre_silva
NXP Employee
NXP Employee

is it only happening on the sololite board?

regards,

Andre

0 件の賞賛
返信
459件の閲覧回数
JohnKaye
Contributor II

Yes, only on the sololite. What is the sequence to enable and access the GPU registers from u-boot?

Thanks,

-John

0 件の賞賛
返信
459件の閲覧回数
andre_silva
NXP Employee
NXP Employee

Hi John,

I´m going to search for this information and let you know soon as Possible.

regards,

Andre

0 件の賞賛
返信
458件の閲覧回数
JohnKaye
Contributor II

Thanks Andre. I appreciate it! Cheers, -John

0 件の賞賛
返信