Basic info on p3041 PAMU settings for DMA from ELBC device

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Basic info on p3041 PAMU settings for DMA from ELBC device

1,155 次查看
david-snc
Contributor I

I'm trying to understand how the PAMU interacts with the P3041 DMA 0 for doing a transfer from a device on the ELBC to RAM. we are using an OS that enables the PAMU and sets up a default configuration for the PAMU LIODN for the DMA 0 Device. we can read from the ELBC device in software and it is mapped correctly from the CPU side. When we try to DMA from the device to RAM we get a 'transaction error'. If we disable the PAMU completely it works. My problem is I don't completely understand how the DSA window and the window size need to be configured.

Here is how i am guessing the PAMU window works ( assume i am wrong so please correct me): assume the ELBC device has a size of 4K and is non-cached. I should set the DSA window to a location in RAM with the same size, 4K(and following the rules on size, alignment etc). Then I can only DMA from the ELBC device to that 4K region in RAM. and if i want to dma from an offset in the ELBC device, i would have to dma to the same offset in the DSA window. Also, since the ELBC device is cache-disabled, do I still set the PAACE bit for coherence-required? Does the coherence required bit refer just to the RAM area and not the source ELBC device?

thanks

标签 (2)
标记 (2)
0 项奖励
2 回复数

759 次查看
lunminliang
NXP Employee
NXP Employee

Hello david howard,

Basically, if you want to use DMA to tranfer data from source address to destination address, you need to create the PAACE entries for both source and destination address, whenever they are in RAM or on LBC.

And this "destination address for DMA" is not same with the concept of "destination for DSA". DSA is used to translate IO address to real physical address, just similar with the MMU in CPU to translate virtual address to physical address.

So the PAMU must be able to translate the source/destination address of DMA engine issued. Both the source/destination address for DMA are IO address of PAMU, need to be authorized and translated by PAMU.


Have a great day,
Lunmin

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

0 项奖励

759 次查看
david-snc
Contributor I

Thank you Lunmin. we'll let you know how it goes.

dave howard

david.howard@sncorp.com

www.sncorp.com

Sierra Nevada Corporation

444 Salomon Circle

Sparks NV 89434

775 849 6227 direct

775 331 0222 front desk

CONFIDENTIALITY NOTICE:

This message is intended only for the use of the individual or entity to

which it is addressed and may contain information that is privileged,

confidential and exempt from disclosure under applicable law. If the

reader of this message is not the intended recipient, you are hereby

notified that any dissemination, distribution, or copying of this

communication is strictly prohibited by law.

WARNING: The technical data contained within this message/document(s) is

subject to the controls imposed by the International Traffic in Arms

Regulations (ITAR). Export of this technical data to foreign persons or

foreign entities inside or outside of the United States requires prior

written authorization by the U.S. Department of State Directorate of

Defense Trade Controls.

0 项奖励