P5020DS IOMMU access with PCI driver

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

P5020DS IOMMU access with PCI driver

1,861件の閲覧回数
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,854件の閲覧回数
ufedor
NXP Employee
NXP Employee

Please consider using NXP Professional Engineering Services:

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

0 件の賞賛
返信