<?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>1469</bug_id>
          
          <creation_ts>2011-09-10 09:32:56 +0000</creation_ts>
          <short_desc>qemuarm images have blue and red component channels reversed in X/pslash</short_desc>
          <delta_ts>2011-09-27 23:06:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>kernel-tooling</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>dvhart</cc>
    
    <cc>liming.wang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16128</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-09-10 09:32:56 +0000</bug_when>
    <thetext>If you look at X or at psplash the blue and red changes are reversed (the yocto dot on the logo is orange, not blue as it should be).

This is likely a kernel issue reporting the wrong bitmasks to userspace since the pslash code hasn&apos;t changed recently (and for X and psplash to be showing the same problem).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16227</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-09-15 15:06:01 +0000</bug_when>
    <thetext>Bruce, can you ask someone to look into this? I wonder if this may also be related to Bug 1260.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16234</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-09-15 17:53:05 +0000</bug_when>
    <thetext>We can have a look. I&apos;ve never noticed this myself (and have tested sato). The 
kernel has been stable for some time, so if this is kernel, it&apos;s been there since
we jumped to 3.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16247</commentid>
    <comment_count>3</comment_count>
    <who name="Liming Wang">liming.wang</who>
    <bug_when>2011-09-16 03:07:25 +0000</bug_when>
    <thetext>9728c1b6a724daefc413b44e10253cdbb5e06d08 imports this issue. Specially, following line leads to the issue:

+       /* Always clear BGR for RGB565: we do the routing externally */
+       if (fb-&gt;fb.var.green.length == 6)
+               regs-&gt;cntl &amp;= ~CNTL_BGR;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16248</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-09-16 03:22:41 +0000</bug_when>
    <thetext>Ok, this looks like an intentional upstream change and it therefore looks like the emulator is now &quot;wrong&quot; compared to what the real harware would do. We likely therefore need to fix qemu to handle this situation correctly. The function in question in pl110_update_display().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16250</commentid>
    <comment_count>5</comment_count>
      <attachid>238</attachid>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-09-16 06:46:36 +0000</bug_when>
    <thetext>Created attachment 238
Patch demonstrating fixed colours on qemuarm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16251</commentid>
    <comment_count>6</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-09-16 06:48:47 +0000</bug_when>
    <thetext>Who&apos;s running with getting the fix into the tree ? I just want to be sure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16258</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-09-16 07:59:14 +0000</bug_when>
    <thetext>Since I was experimenting and had a reproducer I&apos;ve put http://git.openembedded.org/cgit.cgi/openembedded-core-contrib/commit/?h=rpurdie/qemu&amp;id=d06781eab16881d2206a3306c66a0c4c1e178dde together so I&apos;ll take it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16259</commentid>
    <comment_count>8</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-09-16 08:03:41 +0000</bug_when>
    <thetext>Great. And the patch looks fine to my eye.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16266</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-09-16 09:25:18 +0000</bug_when>
    <thetext>Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=bb0cc3cfa69ce02a25e5b7b22df0e5554f6592fb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16540</commentid>
    <comment_count>10</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-09-27 23:06:21 +0000</bug_when>
    <thetext>Verified it with 1.1 M4 RC3 20110925 build.

Tree/Branch: poky/edison
Poky Commit: 41c564fe605fa4685fd27b1721e3424ac8a96db1</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>238</attachid>
            <date>2011-09-16 06:46:36 +0000</date>
            <delta_ts>2011-09-16 06:47:20 +0000</delta_ts>
            <desc>Patch demonstrating fixed colours on qemuarm</desc>
            <filename>bgr.patch</filename>
            <type>text/plain</type>
            <size>577</size>
            <attacher name="Richard Purdie">richard.purdie</attacher>
            
              <data encoding="base64">SW5kZXg6IHFlbXUtMC4xNC4wL2h3L3BsMTEwLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gcWVtdS0wLjE0LjAu
b3JpZy9ody9wbDExMC5jCTIwMTEtMDktMTYgMTQ6NDU6MzQuMjI4NjY4NTE0ICswMTAwCisrKyBx
ZW11LTAuMTQuMC9ody9wbDExMC5jCTIwMTEtMDktMTYgMTQ6NDU6MzguMzU4NjY4NTIwICswMTAw
CkBAIC0xNDEsMTAgKzE0MSwxMCBAQAogICAgICAgICBmcHJpbnRmKHN0ZGVyciwgInBsMTEwOiBC
YWQgY29sb3IgZGVwdGhcbiIpOwogICAgICAgICBleGl0KDEpOwogICAgIH0KLSAgICBpZiAocy0+
Y3IgJiBQTDExMF9DUl9CR1IpCisgICAgLy9pZiAocy0+Y3IgJiBQTDExMF9DUl9CR1IpCiAgICAg
ICAgIGJwcF9vZmZzZXQgPSAwOwotICAgIGVsc2UKLSAgICAgICAgYnBwX29mZnNldCA9IDE4Owor
ICAgIC8vZWxzZQorICAgIC8vICAgIGJwcF9vZmZzZXQgPSAxODsKIAogICAgIGlmIChzLT5jciAm
IFBMMTEwX0NSX0JFQk8pCiAgICAgICAgIGZuID0gZm50YWJsZVtzLT5icHAgKyA2ICsgYnBwX29m
ZnNldF07Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>