How to set PCIe EP's memory address?

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

How to set PCIe EP's memory address?

ソリューションへジャンプ
1,666件の閲覧回数
t_kuha
Contributor I

Hi, I have a question about how to change a PCIe device's memory address on i.MX6.

Now, I have a PCIe EP device connected to i.MX6 Quad (running Linux 3.14.52) and issuing lspci  command shows the following values for the device:

Memory at 01100000 (32-bit, non-prefetchable) [size=1M]
Memory at 01200000 (32-bit, non-prefetchable) [size=1M]

The question is how can I change these values (01100000/01200000)?

Should I modify device tree or Linux kernel's source code?

Regards,

ラベル(2)
0 件の賞賛
返信
1 解決策
1,373件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi t_kuha

please check PCI EP examples (0001-ENGR00268112-pcie-emaluate-the-pcie-ep-as-ram-device.patch.zip) on

i.MX6Q PCIe EP/RC Validation System 

for latest kernels one can look at sect.40.4 Using PCIe Endpoint and Running Tests attached Linux Manual

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

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,374件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi t_kuha

please check PCI EP examples (0001-ENGR00268112-pcie-emaluate-the-pcie-ep-as-ram-device.patch.zip) on

i.MX6Q PCIe EP/RC Validation System 

for latest kernels one can look at sect.40.4 Using PCIe Endpoint and Running Tests attached Linux Manual

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

0 件の賞賛
返信
1,373件の閲覧回数
t_kuha
Contributor I

igor,

Thank you for the reply.

I could change the addresses by modifying device tree.

Regards,

0 件の賞賛
返信