AnsweredAssumed Answered

How can I save the gpu data in imx6q platform?

Question asked by wang zhigang on Oct 22, 2014
Latest reply on Oct 23, 2014 by igorpadykov

hi,everyone

    Recently, I want to save the gpu data which in the range of 0x75000000~0x80000000.because when I hibernate and restore my system.my screen is abnormal.someone tell me the reason is that the texture used in GPU is not restored.so I want to save the gpu data to solve the screen abnormal problem.

  but I can not save the gpu data ,because my system is panic when I memcpy the gpu data to kernel memory.I do it like that:

  src=phys_to_virt(0x75000000);

  memcpy(dst,src,5000000);

I know there is someting to wrong with me.but I don't know how to copy gpu data into kernel memory.and I know the gpu data do not belong to kernel memory,

Could you tell me how to copy gpu data into kernel memory,and then copy back? or how to restore the texture used in GPU?

my env is :

linux:linux 3.0.35.

platform:imx6q.

Best wishes!


                         wangzg

Outcomes