How can I save the gpu data in imx6q platform?

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

How can I save the gpu data in imx6q platform?

ソリューションへジャンプ
1,468件の閲覧回数
wangzhigang
Contributor III

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

0 件の賞賛
返信
1 解決策
1,310件の閲覧回数
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,311件の閲覧回数
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!
0 件の賞賛
返信
1,310件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi wang

if you wish to save any data you can reserve memory as

global array at linux starting, then use it as you wish.

Also in low power modes gpu may be powered off, check

REG1_TARG register PMU_REG_CORE in low power

routine.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信