Dma over PCI device (device tree)

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

Dma over PCI device (device tree)

834 次查看
manoloruiz
Contributor III

Hi,

I want to do dma transfers between PCi device and RAM in my T2080RDB. I have created a device driver but it does not work properly. It looks like it is not allow to write in the address that  I give to it .

I am wondering if I have to change something in the dbt or in the PCI configuration registers in my T2080rdb.

Any idea?

BR.

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

480 次查看
manoloruiz
Contributor III

Hi Lunmin,

Thank very much for your answer. I have solved the problem. I used pci_set_dma_mask function in order to provide an address below 2GB. My PCI device only is able to acces the first 2 GB.

Best Regards

0 项奖励

480 次查看
lunminliang
NXP Employee
NXP Employee

Hello,

Could you please provide more information:

1. What version of Linux kernel using? SDK version?

2. What device driver trying to create?

3. What address trying to access?

4. Are you trying to access that address from user space or kernel space?

Thanks.

BR

Lunmin

0 项奖励