• 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 » OMAP™ Applications Processors » OMAP 4 Forum » Android ICS on Custom board LCD Issue
Share
OMAP™ Applications Processors
  • Forums
Options
  • Subscribe via RSS

Android ICS on Custom board LCD Issue

Android ICS on Custom board LCD Issue

This question is answered
Haran Ashok
Posted by Haran Ashok
on Aug 08 2012 03:47 AM
Intellectual940 points

I am currently trying to boot Android ICS Blaze tablet build on my custom board in which the LCD has a resolution of 1920*1200 at 58fps.The Android boots properly and the logo comes on the LCD but as soon as the home screen comes the LCD starts flickering and i see GFX_FIFO_UNDERFLOW continuously ..

        omapdss DISPC error: GFX_FIFO_UNDERFLOW, disabling GFX
        omapdss DISPC error: SYNC_LOST, disabling LCD

Even the HDMI also, seems to be supporting only resolutions till 1280x720

I am currently using this release notes http://omappedia.org/wiki/4AI.1.5_OMAP4_Icecream_Sandwich_Release_Notes.

I have few questions ..
1. Are high resolutions (1920x1200) supported without any latency ?
2. Suggest some patches to resolve GFX_FIFO_UNDERFLOW error ...


android
Report Abuse
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Venkat Ramana Peddigari
    Posted by Venkat Ramana Peddigari
    on Aug 08 2012 06:52 AM
    Verified Answer
    Verified by Haran Ashok
    Expert4055 points

    Hi Haran,

    As per my discussions with DSS R & D team, following are the suggestions for your above queries.

    1. HDMI should be supporting resolutions up to 1080p. Ensure that the HDMI driver clock source is selected as PRCM source. If not it can lead to SYNC LOST.

    2. High resolutions 1920 x 1200 do have impact on the performance as there is lot of bandwidth requirements for OMAP4460. But we do have OMAP4470 based tablet device with 1920 x 1200 support with no impact on performance as it allows higher L3 frequency along with ability to prioritize the DSS when required among L3 initiators.

    3. GFX_FIFO_UNDERFLOW is a known issue due to limited size of GFX pipeline internal buffers which is not sufficient for resolutions such as 1080p & 1920 x 1200.

    To address this issue, you can have simple fix by swapping the internal buffers of Writeback Pipeline and GFX pipeline as Writeback pipeline can suffice its needs with smaller internal buffers.

    This can be achieved by setting the register bits of DISPC_GLOBAL_BUFFER accordingly at the probe time. Please refer to the OMAP4460 TRM for details on this register.

    Default reset values for GFX TOP and BOTTOM internal buffers is 0x0 and for Writeback TOP and BOTTOM internal buffers is 0x4. Need to swap these values in the above register. In the default releases from TI, we do not modify this register as we only test with panels less than 1080p resolution.

    If you are not planning to use Writeback pipeline, then you can set even Writeback TOP and Bottom internal buffers as 0x0 so that they get assigned to GFX pipeline.

    FYI, GFX pipeline internal FIFO Size = 0x500 * 16 & for VID1, VID2, VID3 & Writeback Pipelines FIFO Size = 0x800 * 16.

    In addition to the above change, ensure that the fifo size is initialized properly for the GFX pipeline in the following API of dispc.c ($KERNELDIR/drivers/video/omap2/dss)

    static void dispc_read_plane_fifo_sizes(void)
    {
            u32 size;
            int plane;
            u8 start, end;

            dss_feat_get_reg_field(FEAT_REG_FIFOSIZE, &start, &end);

            for (plane = 0; plane < ARRAY_SIZE(dispc.fifo_size); ++plane) {
                    size = FLD_GET(dispc_read_reg(DISPC_OVL_FIFO_SIZE_STATUS(plane)),
                            start, end);
                    //dispc.fifo_size[plane] = size;

                    if(plane == 0) {

                        // if you have swapped the internal buffers of writeback and gfx pipeline by modifying the DISPC_GLOBAL_BUFFER register

                       dispc.fifo_size[plane] = (0x800 * 16);

                                          (OR)

                        // if you have assigned even the internal buffers of writeback to gfx pipeline by modifying the DISPC_GLOBAL_BUFFER register

                       dispc.fifo_size[plane] = ((0x800 + 0x500) * 16);

                    }

                     else

                        dispc.fifo_size[plane] = size;


            }
    }

    The above changes would ensure GFX_FIFO_UNDERFLOW will not happen.

    In addition, you have to ensure that the PRCM clock source is chosen for the LCD panel of yours since it has 1920x1200 resolution.

    Please let us know if you need ffurther clarifications.

    Thanks & Best Regards,

    Venkat

    Please click the Verify Answer button on this post if it answers your question
    _____________________________________________

    Be sure to read the OMAP4 Forum Guidelines & FAQ-

    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Haran Ashok
    Posted by Haran Ashok
    on Aug 13 2012 04:03 AM
    Intellectual940 points

    Hi Venkat,
    Your fix is working ... Now , i can see GFX and Video on my 1920x1200 without any GFX_FIFO_UNDERFLOW errors ...

    The following are the patches we applied ..

    int dispc_enable_plane(enum omap_plane plane, bool enable)
    {
        REG_FLD_MOD(DISPC_OVL_ATTRIBUTES(plane), enable ? 1 : 0, 0, 0);
        // Quick hack.. give WB buffers to gfx:
            // This will Prevent GFX_FIFO_UNDERFLOWS ...
           + dispc_write_reg(DISPC_GLOBAL_BUFFER, 0x006D2240);
    }

    static void dispc_read_plane_fifo_sizes(void)
    {
            u32 size;
            int plane;
            u8 start, end;

            dss_feat_get_reg_field(FEAT_REG_FIFOSIZE, &start, &end);

            for (plane = 0; plane < ARRAY_SIZE(dispc.fifo_size); ++plane) {
                    size = FLD_GET(dispc_read_reg(DISPC_OVL_FIFO_SIZE_STATUS(plane)),
                            start, end);
    #if 0     // Hack ... Give WB buffers to GFX ..
                    dispc.fifo_size[plane] = size;
    #else
                    if(plane == OMAP_DSS_GFX)
                            dispc.fifo_size[plane] = ((0x800 +  0x500) * 16);
                    else
                            dispc.fifo_size[plane] = size;
    #endif
            }
    }


    Thanks for your valuable reply.

    Regards

    Haran

    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Venkat Ramana Peddigari
    Posted by Venkat Ramana Peddigari
    on Aug 13 2012 04:09 AM
    Expert4055 points

    Hi Haran,

    Thanks for sharing the update along with the patch details in the above post as it would be useful for other community members who wants to enable 1920 x 1200 LCD panel on their device.

    Best Regards,

    Venkat

    Please click the Verify Answer button on this post if it answers your question
    _____________________________________________

    Be sure to read the OMAP4 Forum Guidelines & FAQ-

    Report Abuse
    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