<?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>6810</bug_id>
          
          <creation_ts>2014-10-07 08:22:42 +0000</creation_ts>
          <short_desc>Qemu virtual wacom doesn&apos;t work with Linux 3.17</short_desc>
          <delta_ts>2015-02-06 10:10:05 +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-runtime</component>
          <version>1.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>ppc</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>major</bug_severity>
          <target_milestone>1.8 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mihail Stanciu">stanciux.mihail</reporter>
          <assigned_to name="Cristian Iorga">cristian.iorga</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bruce.ashfield</cc>
    
    <cc>cristian.iorga</cc>
    
    <cc>ionutx.chisanovici</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>tom.zanussi</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          <qa_contact name="Mihail Stanciu">stanciux.mihail</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>46154</commentid>
    <comment_count>0</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2014-10-07 08:22:42 +0000</bug_when>
    <thetext>Affected BSP: qemuppc
Affected image: core-image-sato-sdk
Affected build: 1.7.rc3: 5367855fe56db0c09b8fa7bb423b9de18d11eecc
AB link: http://autobuilder.yoctoproject.org/pub/releases/yocto-1.7.rc3/machines/qemu/qemuppc/core-image-sato-sdk-qemuppc.ext

Steps to reproduce:
1. Download ext3 &amp; kernel files from AB

2. Source an environment

3. runqemu qemuppc core-image-sato-sdk

Expected behaviour: Mouse and keyboard input should be recognised by qemu.
Observed behaviour: Mouse input does not register in qemu window</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46155</commentid>
    <comment_count>1</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-10-07 09:05:13 +0000</bug_when>
    <thetext>Reproducible also on qemux86-64.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46158</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-10-07 09:38:14 +0000</bug_when>
    <thetext>Does this happen every boot or just sometimes? or only with particular images?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46161</commentid>
    <comment_count>3</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-10-07 11:19:47 +0000</bug_when>
    <thetext>Actually, mouse clicks don&apos;t work, or maybe the interface is non-functional, mouse pointer is present and functional.
Bug is not erratic, is 100% reproducible in my books.
Like I said, it&apos;s also reproducible on qemux86-64 machine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46162</commentid>
    <comment_count>4</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-10-07 11:20:31 +0000</bug_when>
    <thetext>Reverting the kernel used by qemux86-64 to linux 3.14.19 solves the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46165</commentid>
    <comment_count>5</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2014-10-07 12:14:29 +0000</bug_when>
    <thetext>I suspect there are 2 different issues here.

For qemuppc, the cursor is not present and no input registers.

While checking for other images affected I encountered a different issue for qemumips, similar to what Cristian describes.
Cursor is present and clicks register, however the cursor position does not correspond to the place the clicks are registered.

Basically, I&apos;d have to click about 1cm to the left and about 1/2 of a cm above the button I wanted to affect. I hope this description helps you visualise the issue at hand.

Mihail</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46167</commentid>
    <comment_count>6</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2014-10-07 12:56:43 +0000</bug_when>
    <thetext>Additional testing done.

Mouse cursor location is bad on all qemu machines, except qemuppc, where it is not present at all.
Tests were done on core-image-sato-sdk images.

Also tested core-image-sato for qemumips, problem is present as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46172</commentid>
    <comment_count>7</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-10-07 14:28:34 +0000</bug_when>
    <thetext>Investigation started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46173</commentid>
    <comment_count>8</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-10-07 14:33:01 +0000</bug_when>
    <thetext>The most probable root cause is the lack of USB Wacom touchscreen driver from the 3.17 kernel config. USB Wacom driver has been renamed, and CONFIG_TABLET_USB_WACOM is no longer a valid kernel config option. Working on replacing with a valid option, that will restore touchscreen capability to qemu VMs (as is the case for qemux86-64 machine).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46180</commentid>
    <comment_count>9</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-10-07 21:33:33 +0000</bug_when>
    <thetext>Partial fix has been sent for review, work will continue on qemuppc as the issue is not solved in there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46246</commentid>
    <comment_count>10</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-10-09 15:24:26 +0000</bug_when>
    <thetext>*** Bug 6811 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46326</commentid>
    <comment_count>11</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2014-10-14 17:47:55 +0000</bug_when>
    <thetext>I see exactly the same behaviour on all qemu machines. The clicks go through, 
but they are dropped, or are offset. 

Is there some sort of missing calibration with the new hid driver ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46327</commentid>
    <comment_count>12</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-10-14 18:57:15 +0000</bug_when>
    <thetext>Yes.  As I understand it, the virtual tablet in qemu needs to report calibration data to the guest.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46711</commentid>
    <comment_count>13</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-10-31 16:27:10 +0000</bug_when>
    <thetext>QEMU BSPs are using Linux kernel 3.14.x for the moment, so the issue is no longer present.

This issue needs to be re-tested and fixed is needed after QEMU machines will switch to a newer Linux kernel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47218</commentid>
    <comment_count>14</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-11-26 19:31:53 +0000</bug_when>
    <thetext>Not sure about the status of this - it sounds like it&apos;s waiting for the qemu machines to move to 3.17, but the 3.17 move is waiting on this...  In any case this is also blocking yocto-bsp 3.17 updates, which are needed for master and dizzy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47297</commentid>
    <comment_count>15</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-12-02 18:51:51 +0000</bug_when>
    <thetext>Just to clarify, this bug will block the 1.7.1 point release, which from today&apos;s tech meeting, will occur just after 1.8 M1.

So it would seem that the target of 1.8 M4 needs adjusting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47298</commentid>
    <comment_count>16</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-12-02 19:00:15 +0000</bug_when>
    <thetext>The old driver was TABLET_USB_WACOM, which was moved to:

+config HID_USB_WACOM
+ tristate &quot;Wacom Intuos/Graphire tablet support (USB)&quot;
+ depends on HID
+ select POWER_SUPPLY
+ select NEW_LEDS
+ select LEDS_CLASS
+ help
+ Say Y here if you want to use the USB version of the Wacom Intuos
+ or Graphire tablet.

However, simply changing the config option doesn&apos;t help - the problem still exists with the new driver enabled.
 
The patches that moved it to the HID subsystem made a lot of changes, and the trouble with it started after the following patch:

commit 29b4739134c73a2873adec93346f09bb76d6a794
Author: Benjamin Tissoires &lt;benjamin.tissoires@redhat.com&gt;
Date:   Thu Jul 24 12:52:23 2014 -0700

    Input: wacom - switch from an USB driver to a HID driver

i.e. reverting the wacom patches in that patchset, including that one, we get a functional mouse again with no problems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47299</commentid>
    <comment_count>17</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-12-02 19:50:46 +0000</bug_when>
    <thetext>Why does this block 1.7.1?  1.7.x is still using kernel 3.14.  As far as I&apos;m aware this bug (which should be re-titled, I&apos;ll do that now) only impacts master as its an interaction between qemu and linux 3.17.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47300</commentid>
    <comment_count>18</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-12-02 20:02:00 +0000</bug_when>
    <thetext>Well, 1.7 was supposed to be 3.17, but this bug blocked it from happening for the release.

And in turn, the 1.7 yocto-bsp updates were blocked from going into 1.7 because 1.7 wasn&apos;t at 3.17, even though there&apos;s no real dependency of the yocto-bsp updates on what the 1.7 release itself selects as the default kernel version - the BSPs generated by yocto-bsp default to 3.17 and work just fine in either case.

It was seen as rather untoward to have yocto-bsp defaulting to 3.17 while the release was at 3.14, and the plan was to fix that in the point release.  So my interest is to get the point release to 3.17 so that all my yocto-bsp work isn&apos;t wasted.  And really, there&apos;s no reason we should be releasing two yocto releases in a row with the same kernel anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47301</commentid>
    <comment_count>19</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-12-02 20:16:04 +0000</bug_when>
    <thetext>I must be confused.  Poky 1.7 shipped with the 3.14 kernel used by default in the qemu machines, and the 3.17 kernel as an option.  Any patches to anything in poky can be merged into master and *important* fixes backported to the 1.7 branch.

This bug relates to how qemu images booted with kernel 3.17 don&apos;t have working input.  Fixing this needs to happen - and we&apos;re in discussion with the qemu maintainers about the best way forward - but patching the kernel and qemu, and then changing the default kernel isn&apos;t suitable for a point release.  Other patches, such as unrelated fixes to the kernel and yocto-bsp, may well be suitable for a point release and they can be considered independently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47302</commentid>
    <comment_count>20</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-12-02 20:29:01 +0000</bug_when>
    <thetext>When I posted the yocto-bsp udpates for 1.7, RP asked if we could wait until the point release to get them in.  The assumption being that the point release would be moving to 1.7.

Of course there&apos;s no way to fix the kernel problem without kernel patches.  I didn&apos;t realize it also meant patches to qemu, but whatever, if we can&apos;t pull in kernel or qemu patches into point releases, I&apos;ll just have to change my plans for yocto-bsp updates in the future i.e. to start working on them only after poky has pulled in the patches moving the qemu and core machines to a new kernel.  In the past, when we did that, it meant delaying the release (IIRC the 1.6 release was delayed for that and other reasons).

As it turns out, getting a head start carries its own risks, in this case a lot of wasted work and testing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47303</commentid>
    <comment_count>21</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-12-02 20:52:05 +0000</bug_when>
    <thetext>Just to be clear the only thing that I&apos;ll argue against merging into 1.7.1 is changing the default kernel for qemu* to 3.17, as that&apos;s too invasive for a point release.

Backing up I&apos;m not sure why yocto-bsp bugs are blocking on this, why would the kernel used by qemu have an impact on the yocto-bsp tool?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47304</commentid>
    <comment_count>22</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-12-02 20:59:02 +0000</bug_when>
    <thetext>The yocto-bsp bugs blocking on this are built on or will be built on top of the yocto-bsp updates, and I don&apos;t plan on reworking them for a pre-yocto-bsp-updates state.

So if the yocto-bsp updates can&apos;t go in, then either can the bugs on top of them.

Again, the kernel used by the poky qemu machines really has nothing technically to do with this - it&apos;s just that we can&apos;t have a situation where yocto-bsp generates BSPs with 3.17 kernels when the main release doesn&apos;t do so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47337</commentid>
    <comment_count>23</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-12-03 17:27:03 +0000</bug_when>
    <thetext>OK, so I won&apos;t bother worrying about this for 1.7.1 any more.

So I&apos;ve just resubmitted the yocto-bsp updates for master, which shouldn&apos;t have the same restrictions on pulling it in since this bug will be fixed by the 1.8 release (by then the kernel will be at 3.20 or so and I&apos;ll have to redo the yocto-bsp updates, but that&apos;s beside the point).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47441</commentid>
    <comment_count>24</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-12-08 21:14:33 +0000</bug_when>
    <thetext>Problem with wacom in qemu resolved with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ef7ea3869ce34b59df146d74e9c7c96ae8a2de2a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48603</commentid>
    <comment_count>25</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2015-02-06 10:10:05 +0000</bug_when>
    <thetext>Verified on master: 22c38e2d8a058619e3d05534b5e830b750aa4241</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>