P5020DS IOMMU access with PCI driver

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

P5020DS IOMMU access with PCI driver

1,916 次查看
gulaschsuppm
Contributor I

Dear NXP Support Team,

we have a proprietary PCI card connected to a P5020DS board running a Linux image.

We have a Linux driver for the PCI card working on x86 architecture following roughly these steps:

- pci_enable_device

- pci_request_regions

- pci_resource_len/start

- ioremap

We are trying to port this driver to the PPC architecture, but run into the following problems.

A ioremap it is not possible to access the "ioremapped" memory via readl. The kernel just hangs. Our suspicion is that the PAMU on the P5020 prevents us from communicating via IOMMU with the PCI device. How can we enable read access via IOMMU throught the PAMU in linux? Is there something else that we need to do to be able to access our PCI device behind the PAMU?

We use the untouched dtb from arch/powerpc/boot/dts/fsl/p5020*. I have attached the boot output and the Kernel Config.

Kind regards,

Max

标签 (1)
标记 (3)
0 项奖励
回复
1 回复

1,909 次查看
ufedor
NXP Employee
NXP Employee

Please consider using NXP Professional Engineering Services:

https://www.nxp.com/support/support/nxp-engineering-services:SW-SUPPORT

0 项奖励
回复