element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
RIoTboard
  • Products
  • Dev Tools
  • Single-Board Computers
  • RIoTboard
  • More
  • Cancel
RIoTboard
Forum DMA Address
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RIoTboard to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 6 replies
  • Subscribers 25 subscribers
  • Views 952 views
  • Users 0 members are here
  • linux
Related

DMA Address

Former Member
Former Member over 9 years ago

i need to physical RAM memory test, in that case  i need to skip DMA address,Can you please tell me, how to find out DMA address which is mapped with physical memory and skip that physical address. i am want to add this code into my module.I am using linux 3.12 kernel.

  • Sign in to reply
  • Cancel

Top Replies

  • pettitda
    pettitda over 9 years ago in reply to Former Member +1
    If you're serious about testing the physical memory, then you need to do it before Linux is loaded. For example, if you are using uBoot for a bootloader then you would do the memory test there or even…
  • Former Member
    0 Former Member over 9 years ago

    i need to physical RAM memory test, in that case i dont want to check DMA pages,how to find out DMA pages.how its allocated in physical ram ? if it is allocated in physical RAM. Testing RAm then i need to skip DMA pages. how to do that please let me known.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 9 years ago

    Using DMESG look for:

    Virtual kernel memory layout:

        vector  : 0xffff0000 - 0xffff1000   (   4 kB)

        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

        DMA     : 0xfbe00000 - 0xffe00000   (  64 MB)

        vmalloc : 0xd9800000 - 0xf2000000   ( 392 MB)

        lowmem  : 0xc0000000 - 0xd9000000   ( 400 MB)

        pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)

        modules : 0xbf000000 - 0xbfe00000   (  14 MB)

          .init : 0xc0008000 - 0xc0047000   ( 252 kB)

          .text : 0xc0047000 - 0xc08cde00   (8732 kB)

          .data : 0xc08ce000 - 0xc095c890   ( 571 kB)

           .bss : 0xc095c8b4 - 0xc0ae4448   (1567 kB)

     

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 9 years ago in reply to clem57

    Then use https://www.kernel.org/doc/gorman/pdf/understand.pdf to translate

    C

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to clem57

    HI Sir,

     

    Thanks for your reply. but i write module in that i need to check physical memory. i test with 32 bit address at a time. example i will take address from page_align macro and passed it. first thing if that address is DMA address then i need to skip that address for that i want to write code.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • pettitda
    0 pettitda over 9 years ago in reply to Former Member

    If you're serious about testing the physical memory, then you need to do it before Linux is loaded.  For example, if you are using uBoot for a bootloader then you would do the memory test there or even lower if you have another layer under uBoot. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • tusharp
    0 tusharp over 9 years ago

    does this help ??

     

    https://community.freescale.com/docs/DOC-96412

    • 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 © 2025 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