<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Bugs fixed in Linux imx6 HDMI driver in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393900#M57572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have successfully tested your patches, and I will share this input to the developers team in order to be evaluated and possibly to be added to next bsp release. Thanks for your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Nov 2015 17:35:53 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2015-11-30T17:35:53Z</dc:date>
    <item>
      <title>Bugs fixed in Linux imx6 HDMI driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393899#M57571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lately, I've been fixing some serious issues with the imx6 HDMI driver.&amp;nbsp; These issues have appeared in several previous discussions, however I've not yet seen any official resolution to this issue.&amp;nbsp;&amp;nbsp; Attaching a DVI or VGA monitor which does not support standard HDMI resolutions like 720p or 1080p caused the kernel to hang or crash.&amp;nbsp;&amp;nbsp; Attaching a DVI monitor through a HDMI-to-DVI adapter often caused the imx6 driver to detect bogus plugin events causing repeated flashing of the display.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the issues I've tracked down in the past couple of days and patches which address these issues.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The mxc_find_nearest_mode() is written to recursively call itself when a requested video mode did not match one of the standard video modes in its table.&amp;nbsp; The logic could easily get in an infinite recursion loop which caused a kernel hang followed by a crash when the stack was overrun.&lt;/LI&gt;&lt;LI&gt;The logic in mxc_hdmi.c was designed to effectively ignore the video mode timings returned by EDID parsing and instead just return the closest mode with a similar size and aspect ratio in the standard timings.&amp;nbsp; This often resulted in bogus resolutions like 720x576 when the requested resolution was 1024x768.&amp;nbsp; IMHO, the driver should always use the EDID timings if available.&lt;/LI&gt;&lt;LI&gt;The extended block parsing in mxc_edid_read() results in many bogus resolutions with the Asus and Dell monitors I tested.&amp;nbsp; For now, I just #ifdef'd the extended EDID parsing and only use the standard resolutions returned in the EDID.&lt;/LI&gt;&lt;LI&gt;The mxc_find_nearest_mode() function requires the custom VMODE bits FB_VMODE_ASPECT_4_3 and FB_VMODE_ASPECT_9_16 to be set in the fb_videomode table for matching an appropriate mode.&amp;nbsp; Unfortunately, it wasn't setting these bits when adding video modes from the EDID which prevented matching any of the EDID video timings.&lt;/LI&gt;&lt;LI&gt;The logic in mxc_hdmi.c required a monitor which supported the resolution provided in the mode_str of the dts file.&amp;nbsp; Since most of the dts files contained 1920x1080p resolution, the driver was pretty much DOA unless you gave it an explicit resolution on the linux command line.&lt;/LI&gt;&lt;LI&gt;The plugin logic didn't work when attaching a DVI monitor with a HDMI-&amp;gt;DVI adapter.&amp;nbsp; The mxc_hdmi.c driver was erroneously using a bit in the EDID to choose betwen using the HDMI_PHY_RX_SENSEx bits and the HDMI_PHY_HPD bits.&amp;nbsp; With an HDMI-&amp;gt;DVI adapter, this resulted in repeated plugin events every second and video resets.&amp;nbsp; I found that only checking the HDMI_PHY_RX_SENSEx bits and ignoring the HDMI_PHY_HPD bit worked for both HDMI and HDMI-&amp;gt;DVI connections.&amp;nbsp; Hoeever, I'd appreciate if someone with more knowledge of this hardware interface reviews this.&lt;/LI&gt;&lt;/OL&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attaching my patches to mxc_hdmi.c and mxc_edid.c which allows me to work with monitors that only support 800x600 and 1024x768.&amp;nbsp; However, I still have an issue with a 1024x768 resolution on one of my monitors.&amp;nbsp; This monitor displays the initial 1024x768@60 resolution generated by u-boot, but after linux boots, the same 1024x768@60 resolution fails.&amp;nbsp; Fortunately, the monitor works with a 1024x768@70 resolution which is provided by the EDID.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jonathan Olson&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336859"&gt;mxc_hdmi.patch.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Nov 2015 00:38:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393899#M57571</guid>
      <dc:creator>jonathanolson</dc:creator>
      <dc:date>2015-11-07T00:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Bugs fixed in Linux imx6 HDMI driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393900#M57572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have successfully tested your patches, and I will share this input to the developers team in order to be evaluated and possibly to be added to next bsp release. Thanks for your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 17:35:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393900#M57572</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2015-11-30T17:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bugs fixed in Linux imx6 HDMI driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393901#M57573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johnatan and all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks, really,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I applied your patch where possible, on kernel 3.14.28, that seems to be slightly different.&lt;/P&gt;&lt;P&gt;Seems it is producing some good results, but still studying it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;for what kernel branch/version is the related patch ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14494921243761333" data-renderedposition="302_8_1220_48" jivemacro_uid="_14494921243761333"&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((H_SIZE / 16) == (V_SIZE / 9))&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; if (H_SIZE * 9 / 16 == V_SIZE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode-&amp;gt;vmode |= FB_VMODE_ASPECT_16_9;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;Are these lines producing the same results btw ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;angelo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 13:41:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393901#M57573</guid>
      <dc:creator>angelo_d</dc:creator>
      <dc:date>2015-12-07T13:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Bugs fixed in Linux imx6 HDMI driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393902#M57574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;Hi Angelo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN&gt;1) These patches are against branch 3.14-1.0.x-mx6-sr of the repository at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/SolidRun/linux-fslc.git" rel="nofollow"&gt;https://github.com/SolidRun/linux-fslc.git&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Either aspect ratio form would work for standard 16:9 or 4:3 resolutions. I rewrote this expression when tracking down the errors in matching logic for the FB_VMODE_ASPECT_16_9 FB_VMODE_ASPECT_4_3 bits.&amp;nbsp; Turns out the problem was that it was not setting these bits for the resolutions added from the EDID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One issue I'm not certain about is the significance of the HDMI_PHY_RX_SENSEx and HDMI_PHY_HPD bits since I don't have any hardware documentation on these signals.&amp;nbsp; The previous logic did not work with a DVI monitor connected to the HDMI interface, since it was checking a bit in the EDID to determine if it was connected via HDMI or DVI.&amp;nbsp; Obviously, whether the monitor is DVI or HDMI doesn't indicate how it's connected to the iMX6 processor.&amp;nbsp; My updated logic which only checks HDMI_PHY_RX_SENSEx bits works for my use case where either an HDMI or DVI monitor is connected to an HDMI port on the processor.&amp;nbsp; However, I don't have a board with an actual DVI port (does anybody still use DVI?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan Olson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 16:41:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393902#M57574</guid>
      <dc:creator>jonathanolson</dc:creator>
      <dc:date>2015-12-07T16:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Bugs fixed in Linux imx6 HDMI driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393903#M57575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johnatan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i applied part of your patch ojn 3.14.28., really many thanks.&lt;/P&gt;&lt;P&gt;I have mainly some buffer underrun or overrun on HDMI audio.&lt;/P&gt;&lt;P&gt;Since i also hear audio faster and slower, I suspect this is due to bad resolution sync.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you know,&lt;/P&gt;&lt;P&gt;- Is audio working only for certain CEA modes (extension block) ?&lt;/P&gt;&lt;P&gt;- so, if the above assumtion is correct, i should keep CEA enabled always for audio, correct ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;angelo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 09:22:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393903#M57575</guid>
      <dc:creator>angelo_d</dc:creator>
      <dc:date>2015-12-23T09:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Bugs fixed in Linux imx6 HDMI driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393904#M57576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathon&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this patch configures the HDMI resolution based on EDID information&amp;nbsp;&lt;/P&gt;&lt;P&gt;or we still need to hard code mode_str in device tree file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 16:25:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393904#M57576</guid>
      <dc:creator>himanshugusain</dc:creator>
      <dc:date>2016-11-03T16:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Bugs fixed in Linux imx6 HDMI driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393905#M57577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a similar issue with a 1024x600 HDMI display. I have been looking on where to add the timings with no luck, is there a way to add these to the kernel?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 16:29:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393905#M57577</guid>
      <dc:creator>tannerb</dc:creator>
      <dc:date>2018-08-29T16:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Bugs fixed in Linux imx6 HDMI driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393906#M57578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Boundary Devices Nitrogen 6 Max board and i am facing the same issue as to how to add the custom HDMI display timing in the Linux kernel. Can anybody here share how to do this custom setting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2019 05:33:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/393906#M57578</guid>
      <dc:creator>kokshyangchin</dc:creator>
      <dc:date>2019-05-27T05:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bugs fixed in Linux imx6 HDMI driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/1193519#M165949</link>
      <description>&lt;P&gt;Is this patch still available? I would like to try and see if it helps with an issue I am having, non-cea 1024x768&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 23:14:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bugs-fixed-in-Linux-imx6-HDMI-driver/m-p/1193519#M165949</guid>
      <dc:creator>jgoncalves1</dc:creator>
      <dc:date>2020-12-03T23:14:54Z</dc:date>
    </item>
  </channel>
</rss>

