<?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>i.MX ProcessorsのトピックRe: mxc_hdmi hotplug breaks Weston multi-buffering when use-g2d=1 and FB_MULTI_BUFFER != 1</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/mxc-hdmi-hotplug-breaks-Weston-multi-buffering-when-use-g2d-1/m-p/1753786#M215405</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225216"&gt;@dennis_sparkcharge&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try to fix&amp;nbsp;&lt;SPAN&gt;yres_virtual in&amp;nbsp;mxc_hdmi_set_mode function.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 02:37:32 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2023-11-08T02:37:32Z</dc:date>
    <item>
      <title>mxc_hdmi hotplug breaks Weston multi-buffering when use-g2d=1 and FB_MULTI_BUFFER != 1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mxc-hdmi-hotplug-breaks-Weston-multi-buffering-when-use-g2d-1/m-p/1751336#M215148</link>
      <description>&lt;P&gt;When &lt;FONT face="courier new,courier"&gt;use-g2d=1&lt;/FONT&gt; in &lt;FONT face="courier new,courier"&gt;/etc/xdg/weston/weston.ini&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;FB_MULTI_BUFFER&lt;/FONT&gt; is &amp;gt; 1 or not set, &lt;FONT face="courier new,courier"&gt;weston-imx/libweston/renderer-g2d/g2d-renderer.c:fb_query_screen_info()&lt;/FONT&gt; executes an &lt;FONT face="courier new,courier"&gt;FBIOPUT_VSCREENINFO&lt;/FONT&gt; ioctl to set the framebuffer's &lt;FONT face="courier new,courier"&gt;yres_virtual&lt;/FONT&gt; to a multiple of the framebuffer's physical Y resolution. In this configuration, repainting is handled with the &lt;FONT face="courier new,courier"&gt;FBIOPAN_DISPLAY&lt;/FONT&gt; ioctl.&lt;/P&gt;&lt;P&gt;When an HDMI hotplug connect event happens in the &lt;FONT face="courier new,courier"&gt;mxc_hdmi.c&lt;/FONT&gt; kernel driver, &lt;FONT face="courier new,courier"&gt;mxc_hdmi_set_mode()&lt;/FONT&gt; will call &lt;FONT face="courier new,courier"&gt;fb_vidmode_to_var()&lt;/FONT&gt;, which overwrites the framebuffer's &lt;FONT face="courier new,courier"&gt;yres_virtual&lt;/FONT&gt; with the same value as &lt;FONT face="courier new,courier"&gt;yres&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;Once this has happened, the display stops updating on every repaint because g2d-renderer's &lt;FONT face="courier new,courier"&gt;FBIOPAN_DISPLAY&lt;/FONT&gt; ioctls start failing. &lt;FONT face="courier new,courier"&gt;/run/user/0/weston.log&lt;/FONT&gt; gets a line saying "FBIOPAN_DISPLAY Failed" every time this happens.&lt;/P&gt;&lt;P&gt;This is the default configuration for Yocto when &lt;FONT face="courier new,courier"&gt;use-nxp-bsp&lt;/FONT&gt; is set, so I would imagine this is affecting a lot of users. It is exacerbated by the fact that sometimes, changing the framebuffer resolution (e.g. with &lt;FONT face="courier new,courier"&gt;fbset&lt;/FONT&gt;) will cause a hotplug plugout/plugin cycle, so changing it right before starting Weston (e.g. in an &lt;FONT face="courier new,courier"&gt;ExecStartPre=&lt;/FONT&gt; on &lt;FONT face="courier new,courier"&gt;weston.service&lt;/FONT&gt;) risks triggering this behavior.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 20:07:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mxc-hdmi-hotplug-breaks-Weston-multi-buffering-when-use-g2d-1/m-p/1751336#M215148</guid>
      <dc:creator>dennis_sparkcharge</dc:creator>
      <dc:date>2023-11-06T20:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: mxc_hdmi hotplug breaks Weston multi-buffering when use-g2d=1 and FB_MULTI_BUFFER != 1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mxc-hdmi-hotplug-breaks-Weston-multi-buffering-when-use-g2d-1/m-p/1751424#M215152</link>
      <description>&lt;P&gt;Steps to reproduce:&lt;/P&gt;&lt;P&gt;1. Start Weston with `use-g2d=1` in `weston.ini` and `FB_MULTI_BUFFER` unset or set to a value &amp;gt; 1&lt;BR /&gt;2. unplug the display and plug it back in&lt;BR /&gt;3. `tail -f /run/user/0/weston.log` while interacting with Weston&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 20:07:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mxc-hdmi-hotplug-breaks-Weston-multi-buffering-when-use-g2d-1/m-p/1751424#M215152</guid>
      <dc:creator>dennis_sparkcharge</dc:creator>
      <dc:date>2023-11-06T20:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: mxc_hdmi hotplug breaks Weston multi-buffering when use-g2d=1 and FB_MULTI_BUFFER != 1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mxc-hdmi-hotplug-breaks-Weston-multi-buffering-when-use-g2d-1/m-p/1753786#M215405</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225216"&gt;@dennis_sparkcharge&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try to fix&amp;nbsp;&lt;SPAN&gt;yres_virtual in&amp;nbsp;mxc_hdmi_set_mode function.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 02:37:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mxc-hdmi-hotplug-breaks-Weston-multi-buffering-when-use-g2d-1/m-p/1753786#M215405</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2023-11-08T02:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: mxc_hdmi hotplug breaks Weston multi-buffering when use-g2d=1 and FB_MULTI_BUFFER != 1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mxc-hdmi-hotplug-breaks-Weston-multi-buffering-when-use-g2d-1/m-p/1755785#M215577</link>
      <description>&lt;P&gt;I don't think that would be an appropriate place to fix the problem, since mxc_hdmi_set_mode doesn't have access to information about how many multibuffers Weston initially configured. It could try to infer it from the ratio of physical to virtual y resolution in the original settings, but that seems pretty brittle.&lt;/P&gt;&lt;P&gt;At any rate, this was intended to be a bug report, not a direct request for help. Is there a more appropriate place to direct bug reports?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 22:16:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mxc-hdmi-hotplug-breaks-Weston-multi-buffering-when-use-g2d-1/m-p/1755785#M215577</guid>
      <dc:creator>dennis_sparkcharge</dc:creator>
      <dc:date>2023-11-10T22:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: mxc_hdmi hotplug breaks Weston multi-buffering when use-g2d=1 and FB_MULTI_BUFFER != 1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mxc-hdmi-hotplug-breaks-Weston-multi-buffering-when-use-g2d-1/m-p/1755979#M215593</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225216"&gt;@dennis_sparkcharge&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide test log about weston and kernel?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 03:04:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mxc-hdmi-hotplug-breaks-Weston-multi-buffering-when-use-g2d-1/m-p/1755979#M215593</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2023-11-13T03:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: mxc_hdmi hotplug breaks Weston multi-buffering when use-g2d=1 and FB_MULTI_BUFFER != 1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mxc-hdmi-hotplug-breaks-Weston-multi-buffering-when-use-g2d-1/m-p/1758513#M215839</link>
      <description>&lt;P&gt;Attached:&lt;/P&gt;&lt;P&gt;* journal.txt created with `journalctl -b | grep -P 'kernel|[Ww]eston|dennis@' &amp;gt; journal.txt` showing kernel debug messages from `mxc_hdmi.c` and `mxc_ipuv3_fb.c` as well as messages prefixed with `dennis@sparkcharge.io` that I wrote to the logs describing the actions I was taking&lt;BR /&gt;* weston.ini showing `use-g2d=1`&lt;BR /&gt;* weston.service showing the use of strace to observe ioctls (note that the buggy behavior occurs regardless of using strace)&lt;BR /&gt;* weston.log showing the "FBIOPAN_DISPLAY" messages starting after the hotplug event&lt;BR /&gt;* weston.strace showing FBIOPAN_DISPLAY ioctls succeeding before the hotplug, and then two out of three failing after the hotplug event&lt;/P&gt;&lt;P&gt;I didn't attach `/etc/default/weston`, but it was an empty file.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 16:06:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mxc-hdmi-hotplug-breaks-Weston-multi-buffering-when-use-g2d-1/m-p/1758513#M215839</guid>
      <dc:creator>dennis_sparkcharge</dc:creator>
      <dc:date>2023-11-16T16:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: mxc_hdmi hotplug breaks Weston multi-buffering when use-g2d=1 and FB_MULTI_BUFFER != 1</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mxc-hdmi-hotplug-breaks-Weston-multi-buffering-when-use-g2d-1/m-p/1774270#M217329</link>
      <description>&lt;P&gt;Sorry, forgot to update here, i have reported this issue. No reply util now.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 00:29:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mxc-hdmi-hotplug-breaks-Weston-multi-buffering-when-use-g2d-1/m-p/1774270#M217329</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2023-12-14T00:29:55Z</dc:date>
    </item>
  </channel>
</rss>

