• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » Linux » Linux forum » dm365 memory map & linux
Share
Linux
  • Forum
Options
  • Subscribe via RSS

dm365 memory map & linux

dm365 memory map & linux

This question is not answered
WingEdLizard
Posted by WingEdLizard
on Jan 06 2011 10:10 AM
Intellectual595 points

In the SPRS457B ( dm365 dmsoc) document, it lists (on the first page) memory as

  16K Instruction cache

    8K data cache

  32K Ram

  16K ROM

 

Later in the document (section 2.6) , it shows a memory map with an Instruction & Data RAM blocks.

Is the Instruction 'ARM RAM0' the same memory as the Data RAM0?  Do they share the same memory ( just mapped differently to separate the Data and Instruction memories)?

The later kernels have an 'Audio dma over/under run fix', related to using the Internal RAM as a bounce buffer, but I don't see anybody using the sram_alloc() system call in the kernel. After linux boots are both of these blocks used as data?

dm365.c:

static struct map_desc dm365_io_desc[] = { ...
        {
                .virtual        = SRAM_VIRT,
                .pfn            = __phys_to_pfn(0x00010000),
                .length         = SZ_32K,
                /* MT_MEMORY_NONCACHED requires supersection alignment */
                .type           = MT_DEVICE,
        },
};

 

 


RAM0 RAM1 Instruction Data memory map
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Jon Povey
    Posted by Jon Povey
    on May 09 2012 01:41 AM
    Prodigy120 points

    Hi Brett,

    I wonder if you're still digging into DM365 audio corruption issues, as I am doing the same thing. I'd be interested in comparing notes.

    I have seen similar clicks to those you describe in other threads, and have been playing with the sram ping/pong stuff in git kernel 3.0. I only get clicks while recording raw audio through ALSA, even when not encoding, and I get no clicks when recording H.264 video + AAC audio in my own DMAI app. I do sometimes see chunks of 32 samples doubled up, though! So blocks of 32 samples, A B C sometimes records as ABBC, which screws up all the timings and lip sync.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • WingEdLizard
    Posted by WingEdLizard
    on May 09 2012 11:00 AM
    Intellectual595 points

    We've told TI about this problem.  It has to do with the using EDMA registers to get the current position in the ring buffer.  The docs say you can't use the counters while the DMA is running.  It reports too much data sometimes. 

    Look at how linux/sound/soc/davinci/davinci-pcm.c:davinci_pcm_pointer() uses edma_get_position() to determine the offset into the ring buffer.

    If you figure out a fix, send it to TI.

    wl


    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jon Povey
    Posted by Jon Povey
    on May 09 2012 23:34 PM
    Prodigy120 points

    Thanks. It looks like that may have already been fixed in 52e2c5d38ea6f13a19c29da7ba5183e6fac55400:

    http://comments.gmane.org/gmane.linux.alsa.devel/89280

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use