element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Avnet Boards General Accessing AXI DMA using HP3 port
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 2 replies
  • Subscribers 355 subscribers
  • Views 449 views
  • Users 0 members are here
Related

Accessing AXI DMA using HP3 port

Former Member
Former Member over 10 years ago

Hi,
  We are  working on linux 3.15.0 kernel from analog devices on my ZED board.

We want to transfer data b/w PS and PL using axi-dma on HP port 3.

My config base address is at 0x40400000.

Here is my device tree


axi_dma_0: axidma@40400000 {
                        compatible = "xlnx,axi-dma";
                        #address-cells = <1>;
                        #size-cells = <1>;
                        #dma-cells = <1>;
                        #dma-channels = <1>;
                        interrupt-parent = <&gic>;
                        interrupts = <0 29 4 0 30 4>;
                        reg = <0x40400000 0x1000>;
                        dma-channel@40400000 {
                                compatible = "xlnx,axi-dma-mm2s-channel";
                                interrupts = <0 29 0x4>;
                                xlnx,datawidth = <0x40>;
                                xlnx,device-id = <0x0>;
                                #xlnx,genlock-mode = <0x0>;
                                #xlnx,include-dre = <0x0>;
                        };
                        dma-channel@40400030 {
                                compatible = "xlnx,axi-dma-s2mm-channel";
                                interrupts = <0 30 0x4>;
                                xlnx,datawidth = <0x40>;
                                xlnx,device-id = <0x0>;
                                #xlnx,genlock-mode = <0x0>;
                                #xlnx,include-dre = <0x0>;
                        };


I could see the dma channel registered in /sys/class/dma

dma1chan0 -> ../../devices/soc0/fpga-axi@0/40400000.axidma/dma/dma1chan0
lrwxrwxrwx 1 root root 0 Jan  1  1970 dma1chan1 -> ../../devices/soc0/fpga-axi@0/40400000.axidma/dma/dma1chan1


Is there any application to access this from user space.

Above method is using kernel drivers.

Other method i tried using memorymapping the base address and trying to access the registers, this also does not work.

Any pointers will be helpful.

Thanks in advance.

Ramprasad

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 10 years ago

    I guess you need a device driver to use this axidma to send data through HP port.... Even if you have an entry in the device tree there is still a need of driver to do the transaction...

    Hope this helps you...... Might be a late reply for your question......

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • metinburak_
    0 metinburak_ over 10 years ago

    You should use the kernel drivers, not the traditional mmap way. If you like I can provide you some code for transfering data

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube