Debugging vivante imx6 issues, possible address change

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debugging vivante imx6 issues, possible address change

Jump to solution
1,172 Views
kevin_chaves
Contributor III

So first off i'd like to say I'm completely new to linux development so there are a lot of things i just don't know. So if you answer you might want to word your answers for a 5 year old :smileywink:.

Long story short we have a prototype board that we changed the ddr3 to lpddr2, but for some reason the starting address changed and the opengl is broken. I'm not really sure which piece of the vivante i need to look at. Any opengl app we try to run just causes a seg fault, we suspect its the ddr change. Most of the work has been outsourced but they are not going to finish in time so I wanted to try helping.

Labels (3)
0 Kudos
1 Solution
767 Views
VladanJovanovic
NXP Employee
NXP Employee

If your address range starts at 0x80000000 you'll have to change phys_baseaddr for GPU device in platform-viv_gpu.c to 0x80000000.

You'll also have to update some VPU/IPU files, but I believe that is handled already in latest BSP releases.

View solution in original post

0 Kudos
4 Replies
768 Views
VladanJovanovic
NXP Employee
NXP Employee

If your address range starts at 0x80000000 you'll have to change phys_baseaddr for GPU device in platform-viv_gpu.c to 0x80000000.

You'll also have to update some VPU/IPU files, but I believe that is handled already in latest BSP releases.

0 Kudos
766 Views
kevin_chaves
Contributor III

There's also one more thing you have to change. in the memory reserve function you have to make sure to add the offset to the new space.

if(imx6_gpu_pdata.reserved_mem_size) {

     phys = memblock_alloc_base(imx6q_gpu_pdata.reserved_mem_size,

                                                 SZ_4K, (SZ_2G + SZ_1G));

...

}

for reference

Re: Vivante and opengl broken on imx6 board

767 Views
YixingKong
Senior Contributor IV

Kevin

We are sorry for getting back to you so late. Are you still stuck with the issue? If you have somehow to resolved the

issue, can we close the discussion? If you still need help, please feel free to reply with an update to this discussion.

Thanks,
Yixing

0 Kudos
767 Views
kevin_chaves
Contributor III

I'm all set, I actually forgot I had this reqeust and opened another by mistake. The other one has a solution. So I'm not sure how to look up previous posts which... leads me to make more posts

0 Kudos