Bug 99

Summary: No mouse action response in X window with qemumips images
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Jiajun Xu <jiajun.xu>
Component: meta-yoctoAssignee: Bruce Ashfield <bruce.ashfield>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: High CC: david.c.stewart, jessica.zhang, kevin.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw, xianchao.zhang, yongkang.you
Version: 0.9   
Target Milestone: 0.9 M4   
Hardware: x86   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---
Attachments:
Description Flags
No cursor in qemuarm, there is only one cursor, which is for host
none
No cursor in qemumips, there is only one cursor, which is for host none

Description Jiajun Xu 2010-07-08 06:08:34 UTC
Testing Env:	
Host: Ubuntu 10.04 LTS
Kernel: 2.6.32-21-generic-pae
Poky gitinfo(used to build qemu-native): aa416b6133bd55b5ba4d2fb6f5faef274ba511a0 (git.pokylinux.org:poky-wr +yocto-kernel-clean)

With the qemuarm and qemumips images(sato & sdk) from autobuilder, http://autobuilder.pokylinux.org/milestone/20100708-1/, there is no cursor after QEMU boot into X window. 

The command used to start qemu:
For qemuarm:
###########
runqemu qemuarm ext3 /home/jxu49/test/M1-new/osel/zImage-2.6.34+r1+git0+63a07cb64ccc3ceae619d3298545d602ab5ecd38-r1-qemuarm-20100708044042.bin /home/jxu49/test/M1-new/osel/poky-image-sato-qemuarm-20100708054323.rootfs.ext3

/home/jxu49/wr/poky-wr/build/tmp/sysroots/i686-linux/usr/bin/qemu-system-arm -kernel /home/jxu49/test/M1-new/osel/zImage-2.6.34+r1+git0+63a07cb64ccc3ceae619d3298545d602ab5ecd38-r1-qemuarm-20100708044042.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=/home/jxu49/wr/poky-wr/scripts/poky-qemu-ifup,downscript=/home/jxu49/wr/poky-wr/scripts/poky-qemu-ifdown -M versatilepb -hda /home/jxu49/test/M1-new/osel/poky-image-sato-qemuarm-20100708054323.rootfs.ext3 -no-reboot -show-cursor -usb -usbdevice wacom-tablet --append root=/dev/sda console=ttyAMA0,115200 console=tty ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=64M highres=off
###########

For qemumips:
###########
runqemu qemumips ext3 /home/jxu49/test/M1-new/osel/vmlinux-2.6.34+r1+git0+63a07cb64ccc3ceae619d3298545d602ab5ecd38-r1-qemumips-20100708054504.bin /home/jxu49/test/M1-new/osel/poky-image-sato-qemumips-20100708064935.rootfs.ext3

/home/jxu49/wr/poky-wr/build/tmp/sysroots/i686-linux/usr/bin/qemu-system-mips -kernel /home/jxu49/test/M1-new/osel/vmlinux-2.6.34+r1+git0+63a07cb64ccc3ceae619d3298545d602ab5ecd38-r1-qemumips-20100708054504.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=/home/jxu49/wr/poky-wr/scripts/poky-qemu-ifup,downscript=/home/jxu49/wr/poky-wr/scripts/poky-qemu-ifdown -M malta -hda /home/jxu49/test/M1-new/osel/poky-image-sato-qemumips-20100708064935.rootfs.ext3 -no-reboot -show-cursor -usb -usbdevice wacom-tablet -vga cirrus --append root=/dev/hda console=ttyS0 console=tty ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=64M
###########
Comment 1 Jiajun Xu 2010-07-08 06:12:44 UTC
Created attachment 11 [details]
No cursor in qemuarm, there is only one cursor, which is for host
Comment 2 Jiajun Xu 2010-07-08 06:13:28 UTC
Created attachment 12 [details]
No cursor in qemumips, there is only one cursor, which is for host
Comment 3 Jiajun Xu 2010-07-11 22:36:44 UTC
I tested with images with latest M1 build, http://autobuilder.pokylinux.org/milestone/20100710-1/. The cursor issue with qemuarm is fixed.

Now only qemumips has issue with mouse.
Comment 4 Bruce Ashfield 2010-07-22 11:00:01 UTC
This is somewhere in the USB emulation for the mips qemu
target, and doesn't appear to be a kernel issue. Trying to
find a BSP/qemu person for further debugging. 

I had tagged this in the wiki as a M3 issue at this point.
Comment 5 Bruce Ashfield 2010-09-30 08:33:41 UTC
kernel portion of this fix. Logging in bugzilla.


commit fd0bfb5bcd5d7007eb4e869ddafb525cc8b2906d
Author: Richard Griffiths <richard.griffiths@windriver.com>
Date:   Tue Sep 21 13:22:55 2010 -0700

    mousedev: mousedev patch for qemumips
    
    The consumers of the mousedev data in MIPS uperspace assume
    that the data is little endian. So if we are running on a
    big endian CPU we force the output data to be little endian.
    
    Note: this may be reverted if/when the consuming devices
    add options, or options are found that can byte swap the
    data in userspace. This is simply a commit of convienience
    to demonstrate an issue.
    
    Signed-off-by: Richard Griffiths <richard.griffiths@windriver.com>
    Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>

:100644 100644 f34b22b... e6dc33c... M  drivers/input/mousedev.c
Comment 6 Richard Purdie 2010-10-04 01:46:32 UTC
Patches merged into poky master now allow mouse data to pass for qemumips but its using the mousedevice, not a usb wacom tablet. This addresses this bug and the other issue will be refiled as a feature enhancement.
Comment 7 xianchao zhang 2010-10-08 22:51:59 UTC
With the nightly build image (20101007), this issue has been fixed.