Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Regular Visitor
memset
Posts: 30
Registered: ‎12-23-2009
0
Accepted Solution

Microblaze Linux support for AXI PCIe RC is missing?

Is where Linux driver available for LogiCORE IP AXI Bridge for PCI Root Complex (PCI host/PCI bridge)?

Datasheet DS820 says this core is supported by Linux, but in fact, its RC functionality can't be used in embdded Linux due to lack of the driver. Old PCI host bridge driver found in both mainline kernel and git.xilinx.com kernel doesn't seems to have any support for AXI PCIe RC.

Are any ready to use solutions exiests for this?

Thank you.

Expert Contributor
linnj
Posts: 1,038
Registered: ‎09-10-2008
0

Re: Microblaze Linux support for AXI PCIe RC is missing?

Work is still going on for PCIe to make it work properly in a software system. We are debating about putting it into the tree as a development (not released) driver.

Thanks.
John Linn
Regular Visitor
memset
Posts: 30
Registered: ‎12-23-2009
0

Re: Microblaze Linux support for AXI PCIe RC is missing?

Thanks for the reply, John. That's good news.

Is it possible to get this (incomplete) driver now?

It should be better anyway than reinventing the wheel by myself from the scratch.

Thanks!

Expert Contributor
linnj
Posts: 1,038
Registered: ‎09-10-2008
0

Re: Microblaze Linux support for AXI PCIe RC is missing?

Sure, we're discussing that now and yes I think we can. We will mark it as a development driver and not released so there would not be any support from Xilinx on it yet.
John Linn
Regular Visitor
memset
Posts: 30
Registered: ‎12-23-2009
0

Re: Microblaze Linux support for AXI PCIe RC is missing?

Good! But how to get it?
Should I wait for it to appear in linux-xlnx.git, or its going to be available as separate download?
Thank you very much!
Regular Visitor
memset
Posts: 30
Registered: ‎12-23-2009
0

Re: Microblaze Linux support for AXI PCIe RC is missing?

Now I can see the AXI PCIe RC driver for Microblaze in master-next of linux-xlnx.git.

Big thanks for the opportunity to have early access to this code!

Expert Contributor
linnj
Posts: 1,038
Registered: ‎09-10-2008
0

Re: Microblaze Linux support for AXI PCIe RC is missing?

Great! Let us know how it goes. The device tree generator repo was updated to help generate a device tree. Please remember this is not a released driver and I need to document that on the wiki. Thanks.
John Linn
Regular Visitor
memset
Posts: 30
Registered: ‎12-23-2009
0

Re: Microblaze Linux support for AXI PCIe RC is missing?

I'v tried it and, in short words, it works.
I'v got a minor headache with adding this code to mainline 3.4.4 kernel used in my project, but finally it worked. I'm getting some difficulties with MSI's and the ranges property generated by new device tree generator looks like a hack and angers kernel dts compiler, but in general that driver is good enough to use.

A question left: is it possible to use (emulate?) PCI IO resource with AXI PCIe RC? All bridge's AXIBAR's are of memory type by their nature and I'v failed to mimic one them as IO window - both with my own driver and with this one.
Expert Contributor
linnj
Posts: 1,038
Registered: ‎09-10-2008
0

Re: Microblaze Linux support for AXI PCIe RC is missing?

I asked the IP team about this and it sounds like you cannot do what you're asking.  I'm no expert on this so I don't have any insight myself.  Sorry.

John Linn
Regular Visitor
memset
Posts: 30
Registered: ‎12-23-2009
0

Re: Microblaze Linux support for AXI PCIe RC is missing?

No problems, for me the IO resource is not mandatory.

Thanks John for your help and for making AXI PCIe RC driver available!