<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10456</bug_id>
          
          <creation_ts>2016-10-19 08:20:14 +0000</creation_ts>
          <short_desc>X can not launch on qemumips64</short_desc>
          <delta_ts>2017-09-12 07:27:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-oe-core</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Armin Kuster">akuster</assigned_to>
          <cc>akuster</cc>
    
    <cc>bruce.ashfield</cc>
    
    <cc>jku</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>kexin.hao</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>yi.zhao</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67350</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-10-19 08:20:14 +0000</bug_when>
    <thetext>Git rev: morty/4b94b498e21aeba945fe7e72a6b7c4bb0314fb83

Steps:
1. Build core-image-sato for qemumips64
2. Run &quot;runqemu qemumips64&quot; to boot up the image

The X server doesn&apos;t and the screen is black. But the system already start up. I can ssh with it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67419</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2016-10-20 15:02:18 +0000</bug_when>
    <thetext>Yi, did this work on 2.1 or 2.2? If so then it&apos;s a Medium+ bug but if not then it&apos;s an enhancement and likley something that we would not do unless there&apos;s a clear motivation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67443</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-10-21 08:51:37 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Yi, did this work on 2.1 or 2.2? If so then it&apos;s a Medium+ bug but if not
&gt; then it&apos;s an enhancement and likley something that we would not do unless
&gt; there&apos;s a clear motivation.

Hi Randy,

This is a regression bug, used to work on 2.1 and in previous testing for 2.2 it also works.

Thanks,
Yi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69359</commentid>
    <comment_count>3</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-12-23 00:41:25 +0000</bug_when>
    <thetext>This issue still happens on 2.3 M1 rc1 build</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70649</commentid>
    <comment_count>4</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-02-12 12:55:53 +0000</bug_when>
    <thetext>I&apos;m 99% sure X can in fact launch correctly: you can even start apps if you guess where to click. The issue almost certainly arrived at b9d90ace0055 &quot;poky: Update to linux-yocto 4.8 for qemu* machines&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70658</commentid>
    <comment_count>5</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-02-13 11:42:07 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; I&apos;m 99% sure X can in fact launch correctly: you can even start apps if you
&gt; guess where to click. The issue almost certainly arrived at b9d90ace0055
&gt; &quot;poky: Update to linux-yocto 4.8 for qemu* machines&quot;.

I tested this: That commit does introduce the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70673</commentid>
    <comment_count>6</comment_count>
    <who name="dengke">dengke.du</who>
    <bug_when>2017-02-14 01:24:59 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; I&apos;m 99% sure X can in fact launch correctly: you can even start apps if you
&gt; &gt; guess where to click. The issue almost certainly arrived at b9d90ace0055
&gt; &gt; &quot;poky: Update to linux-yocto 4.8 for qemu* machines&quot;.
&gt; 
&gt; I tested this: That commit does introduce the issue.

Yes, I change PREFERRED_VERSION_linux-yocto_qemumips64 in poky.conf to &quot;4.4%&quot; on the latest oe-core upstream, it is ok for the core-image-sato, I will work on this continuely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70679</commentid>
    <comment_count>7</comment_count>
    <who name="dengke">dengke.du</who>
    <bug_when>2017-02-14 05:33:13 +0000</bug_when>
    <thetext>I tested it on kernel 4.9, that is ok.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70955</commentid>
    <comment_count>8</comment_count>
    <who name="dengke">dengke.du</who>
    <bug_when>2017-02-27 05:58:32 +0000</bug_when>
    <thetext>This is because the Upstream commit in 4.8: 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
commit d03516df837587368fc6e75591f6329c072b9eb5
Author: Matthew Leach &lt;matthew.leach@codethink.co.uk&gt;
Date:   Tue Jun 21 16:19:49 2016 +0100

    tty: serial: 8250: add CON_CONSDEV to flags
    
    When using the 8250 as a boot console and the main console results in
    messages being printed twice.  The console framework will only
    unregister boot consoles if a new console is registered with the
    CON_CONSDEV flag set.
    
    Set this flag for the univ8250 console to prevent double-registration.
    
    Signed-off-by: Matthew Leach &lt;matthew.leach@codethink.co.uk&gt;
    Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The version 4.4 kernel didn&apos;t contain, and the 4.9 kernel have been reverted it. I
have backport the reverted patch to yocto-2.2.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71077</commentid>
    <comment_count>9</comment_count>
    <who name="dengke">dengke.du</who>
    <bug_when>2017-03-06 05:21:23 +0000</bug_when>
    <thetext>The fixed commit was:

  http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-4.8/commit/?h=standard/mti-malta64&amp;id=57061c1d3c2e35b4676cc431098899a3f3d8eb19</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73637</commentid>
    <comment_count>10</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2017-06-02 06:56:40 +0000</bug_when>
    <thetext>This issue still happens on 2.2.2 rc1.

Git rev: morty/d05941ae4567def4a288894717e5f550da246107

The patch had been merged into linux-yocto-4.8 repo, but seems the SRCREV_machine_qemumips64 did not update.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73698</commentid>
    <comment_count>11</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-06-05 20:59:48 +0000</bug_when>
    <thetext>Bruce, can you do an upgrade for morty?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73757</commentid>
    <comment_count>12</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-06-06 16:12:49 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; This issue still happens on 2.2.2 rc1.
&gt; 
&gt; Git rev: morty/d05941ae4567def4a288894717e5f550da246107
&gt; 
&gt; The patch had been merged into linux-yocto-4.8 repo, but seems the
&gt; SRCREV_machine_qemumips64 did not update.

The issue is the fix went in just after the 4.8.20 sync. Our current version is 4.8.18. The offending commit went in @ v4.10-rc3-5.



the mip32 fix went in earlier than other machines.
http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-4.8/commit/?h=standard/mti-malta32&amp;id=ecc76d8ac3c3d03fac582de1013ff02847b0d86d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73764</commentid>
    <comment_count>13</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-06-06 16:56:28 +0000</bug_when>
    <thetext>ok. digging a bit more in linux-yocto-4.8, the offending commit went in with via


d03516d tty: serial: 8250: add CON_CONSDEV to flags

back in 4.7 so we should have seen this issue since day one for Morty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73765</commentid>
    <comment_count>14</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-06-06 16:58:38 +0000</bug_when>
    <thetext>Do we know if this was tested with morty when it was released?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73766</commentid>
    <comment_count>15</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-06-06 17:14:15 +0000</bug_when>
    <thetext>(In reply to comment #14)
&gt; Do we know if this was tested with morty when it was released?

According to Comment 2 this was tested on 2.2 and was working correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73773</commentid>
    <comment_count>16</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-06-06 20:50:17 +0000</bug_when>
    <thetext>(In reply to comment #15)
&gt; (In reply to comment #14)
&gt; &gt; Do we know if this was tested with morty when it was released?
&gt; 
&gt; According to Comment 2 this was tested on 2.2 and was working correctly.

ah, missed that. Then the commit noted should not fix this as 2.2 release with

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
commit d03516df837587368fc6e75591f6329c072b9eb5
Author: Matthew Leach &lt;matthew.leach@codethink.co.uk&gt;
Date:   Tue Jun 21 16:19:49 2016 +0100

    tty: serial: 8250: add CON_CONSDEV to flags

if I am not mistaken Morty released mips64 with
SRCREV_machine_qemumips64 ?= &quot;64f96ba530e58456070f26b0f3fcce3f64988b72&quot;

git log --oneline -4 drivers/tty/serial/8250/8250_core.c
5db4f7f Revert &quot;tty/serial/8250: use mctrl_gpio helpers&quot;
4ef03d3 tty/serial/8250: use mctrl_gpio helpers
d03516d tty: serial: 8250: add CON_CONSDEV to flags &lt;-- the fixed noted reverts this.

issue may be else were</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73776</commentid>
    <comment_count>17</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-06-06 22:33:19 +0000</bug_when>
    <thetext>errors I am seeing:

INIT: version 2.88 booting
Error, no support currently for 8 bpp frame buffers
Trying to change pixel format...
Error, failed to switch to a 32 bpp 8,8,8 frame buffer

later

bluetoothd
hwclock: can&apos;t open &apos;/dev/misc/rtc&apos;: No such file or directory
[   39.369758] 
[   39.369758] do_page_fault(): sending SIGSEGV to bluetoothd for invalid read access from 0000000000000030
[   39.369882] epc = 0000007db56dfc88 in libc-2.24.so[7db5650000+192000]
[   39.369915] ra  = 0000007db56ed744 in libc-2.24.so[7db5650000+192000]
[   39.369919] 
Starting syslogd/klogd: done
 * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon                       [ ok ]
Starting Telephony daemon

Poky (Yocto Project Reference Distro) 2.2.2 qemumips64 /dev/ttyS0

qemumips64 login: D-BUS per-session daemon address is: unix:abstract=/tmp/dbus-ZAGNgQtPr1,guid=a3ad8bf3051e42c54ec8f96759372d3e
Using calibration data stored in /etc/pointercal.xinput
Using calibration data stored in /etc/pointercal.xinput
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed

** (process:467): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
alloc color failed
matchbox: Cant find a keycode for keysym 269025056
matchbox: ignoring key shortcut XF86Calendar=!$contacts

matchbox: Cant find a keycode for keysym 2809
matchbox: ignoring key shortcut telephone=!$dates

matchbox: Cant find a keycode for keysym 269025050
matchbox: ignoring key shortcut XF86Start=!matchbox-remote -desktop

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
[settings daemon] Forking. run with -n to prevent fork
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Activating service name=&apos;org.a11y.atspi.Registry&apos;
Successfully activated service &apos;org.a11y.atspi.Registry&apos;
SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry

** (matchbox-panel:489): WARNING **: Failed to load applet &quot;battery&quot; (/usr/lib/matchbox-panel/libbattery.so: cannot open shared object file: No such file or directory).
matchbox-wm: X error warning (0xa00002): BadWindow (invalid Window parameter) (opcode: 12)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73784</commentid>
    <comment_count>18</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-06-07 01:36:40 +0000</bug_when>
    <thetext>I manually updated the 4.8 kernel to 4.8.20 which includes the revert patch and I still have the issue.

I am going back to 2.2.1 to ensure my env will work and will march forward from there to see what change is doing this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73798</commentid>
    <comment_count>19</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-06-07 14:10:51 +0000</bug_when>
    <thetext>I forgot how bloody slow this machine is.

I went back to the original release point and I got the calibration screen, then  now Icons. I started clickin in the black space and I got the system to shutdown.

I saw the &quot;Black&quot; screen with the 2.2.1 and assumed there was a problem. I am going to retry 2.2.1 with a bit more patients this them to see if I the the calibration screen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73823</commentid>
    <comment_count>20</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-06-07 16:14:05 +0000</bug_when>
    <thetext>the linux-yocto-4.8 was updated to 4.8.24. I used that version and I get the full graphic display with the sato image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73888</commentid>
    <comment_count>21</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-06-08 14:23:22 +0000</bug_when>
    <thetext>Here is my take. This issue existed since Morty was shipped so its not a regressions for Morty. More of a known issue. It will be fixed once the kernel version moved past 4.8.19.

In order to fix this all machines will have new kernel versions. Not sure what it does to the QA testing process ( ie restarts things).

If you really want this fixed and don&apos;t mind slipping schedule then updating the kernel is fine. If schedule is important, then ship with this issue and it will be fixed in kernel sync.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74307</commentid>
    <comment_count>22</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-06-17 15:20:59 +0000</bug_when>
    <thetext>I pinged Bruce about the 4.8 kernel cache version being 22 and the linux-yocto sources having been synced to .24 and he sent a patchset to move both to latest for the 4.8 kernel . This fixed the qemumips64 X issue. I pushed these changes to my contrib branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74313</commentid>
    <comment_count>23</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-06-19 03:13:25 +0000</bug_when>
    <thetext>this works with the updated kernel</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76405</commentid>
    <comment_count>24</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-08-31 15:21:50 +0000</bug_when>
    <thetext>code in morty</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76749</commentid>
    <comment_count>25</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2017-09-12 07:27:04 +0000</bug_when>
    <thetext>Verified with 2.2.2 rc2
git rev: morty/60402978fe3648bf560b3386c6e9dd661cdf2083</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>