Dma over PCI device (device tree)

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

Dma over PCI device (device tree)

778 Views
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.

0 Kudos
2 Replies

424 Views
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 Kudos

424 Views
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 Kudos