qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Fwd: Re: i8042 buffer size?]
@ 2009-05-20 16:30 Tomasz Chmielewski
  2009-05-25 22:09 ` Marcelo Tosatti
  0 siblings, 1 reply; 6+ messages in thread
From: Tomasz Chmielewski @ 2009-05-20 16:30 UTC (permalink / raw)
  To: qemu-devel

As a follow up to "i8042.c: No controller found..." thread - below are 
the scancodes which Linux receives, and a comment from a former i8042 
Linux maintainer (Vojtech Pavlik fro SuSE Labs):


> May 20 12:25:09: 18 81 7f 18 81 7f 18 8e 53 28 00 ff 28 00

> May 20 13:45:43: 09 00 00 08 00 00 18 ff 00 18 ff 00 18 fe 01 08

> May 20 13:57:06: 08 7f 7b 08 7f 00 08 26 00 28 00 fc 38 fe fa 38

> May 20 14:01:55: 38 ea 97 28 00 ff 28 00 ff 28 00 ff 28 00 ff 28 00 ff 28 00 ff 38 ff ff 28 00 ff 28 00 ff 28 00

> May 20 14:14:35: 28 00 ff 28 00 fe 28 00 f9 38 ff f7 28 00 f8 38 fd f2 38 f7 cb 38 fe f5 38 fc e3 38 fe f2 38 fe f2 38 fe f1 38 fe f0 38 fe f1 38 fe f2 38 fe f5 38 fe f5

> May 20 14:15:01: 18 f9 01 18 ff 02 08 00 02 08 00 03 18 fe 06 18 fe 07 18 fc 09 18 fd 09 18 fb 09 18 fa 0a 18 fe 0b 18 fb 08 18 fe 07 18 ff 03 08 00 01 08 00 01 08 00 01 09 00 00 08 00 00 08 00 01 28 00 fe 38 ff ff 28 00 fe 18 ff 00 28 00 ff 18 ff 00 28 00 ff 18 ff 00 09 00 00 08 00 00 18 fb 00 18 f8 00 18 f9 00 18 fe 00 18 ff 01 18 fe 01 18 f9 02 18 fe 00 09 00 00

> May 20 14:20:54: 09 00 00 08 00 00 18 ff 00 18 fc 00 18 fa 00 18 f9 00 18 f9 00 18 fa 00 18 f8 00 18 f7 00 18 f8 00 18 fa 00 18 fa 00 18 fa 00 18 fa 00 18 fc 00 18 fc 00 18 fd 00 38 ff ff 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 fe 00 18 ff 00 18 ff 00 18 fe 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 08 00 01 18 ff 00 18 ff 00 18 ff 01 18 ff 00 08 00 01 18 ff 00 18 fe 02 18 ff 00 18 ff 00 18 ff 01 18 fd 00 18 fd 00 18 fa 00 18 f7 00 18 f7 00 18 f4 00 18 f3 00 18 ef 00 18 ee 01 18 ed 03 18 ec 04 18 e9 02 08 7f 08 08 7f 00 08 44 00 09 00 00 19 fc 01 08 00 00 38 81 ff 18 92 00 

This looks seriously like uninitialized memory (12-bit FAT perhaps?) -
and very much like a Qemu bug. It doesn't even make sense if interpreted
as keyboard scancodes - 00 is reserved and ff is an error condition.


-- 
Tomasz Chmielewski
http://wpkg.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [Fwd: Re: i8042 buffer size?]
  2009-05-20 16:30 [Qemu-devel] [Fwd: Re: i8042 buffer size?] Tomasz Chmielewski
@ 2009-05-25 22:09 ` Marcelo Tosatti
  2009-05-25 22:20   ` Tomasz Chmielewski
  0 siblings, 1 reply; 6+ messages in thread
From: Marcelo Tosatti @ 2009-05-25 22:09 UTC (permalink / raw)
  To: Tomasz Chmielewski; +Cc: qemu-devel

On Wed, May 20, 2009 at 06:30:03PM +0200, Tomasz Chmielewski wrote:
> As a follow up to "i8042.c: No controller found..." thread - below are  
> the scancodes which Linux receives, and a comment from a former i8042  
> Linux maintainer (Vojtech Pavlik fro SuSE Labs):
>
>
>> May 20 12:25:09: 18 81 7f 18 81 7f 18 8e 53 28 00 ff 28 00
>
>> May 20 13:45:43: 09 00 00 08 00 00 18 ff 00 18 ff 00 18 fe 01 08
>
>> May 20 13:57:06: 08 7f 7b 08 7f 00 08 26 00 28 00 fc 38 fe fa 38
>
>> May 20 14:01:55: 38 ea 97 28 00 ff 28 00 ff 28 00 ff 28 00 ff 28 00 ff 28 00 ff 38 ff ff 28 00 ff 28 00 ff 28 00
>
>> May 20 14:14:35: 28 00 ff 28 00 fe 28 00 f9 38 ff f7 28 00 f8 38 fd f2 38 f7 cb 38 fe f5 38 fc e3 38 fe f2 38 fe f2 38 fe f1 38 fe f0 38 fe f1 38 fe f2 38 fe f5 38 fe f5
>
>> May 20 14:15:01: 18 f9 01 18 ff 02 08 00 02 08 00 03 18 fe 06 18 fe 07 18 fc 09 18 fd 09 18 fb 09 18 fa 0a 18 fe 0b 18 fb 08 18 fe 07 18 ff 03 08 00 01 08 00 01 08 00 01 09 00 00 08 00 00 08 00 01 28 00 fe 38 ff ff 28 00 fe 18 ff 00 28 00 ff 18 ff 00 28 00 ff 18 ff 00 09 00 00 08 00 00 18 fb 00 18 f8 00 18 f9 00 18 fe 00 18 ff 01 18 fe 01 18 f9 02 18 fe 00 09 00 00
>
>> May 20 14:20:54: 09 00 00 08 00 00 18 ff 00 18 fc 00 18 fa 00 18 f9 00 
>> 18 f9 00 18 fa 00 18 f8 00 18 f7 00 18 f8 00 18 fa 00 18 fa 00 18 fa 00 
>> 18 fa 00 18 fc 00 18 fc 00 18 fd 00 38 ff ff 18 ff 00 18 ff 00 18 ff 00 
>> 18 ff 00 18 ff 00 18 ff 00 18 fe 00 18 ff 00 18 ff 00 18 fe 00 18 ff 00 
>> 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 08 00 01 18 ff 00 18 ff 00 
>> 18 ff 01 18 ff 00 08 00 01 18 ff 00 18 fe 02 18 ff 00 18 ff 00 18 ff 01 
>> 18 fd 00 18 fd 00 18 fa 00 18 f7 00 18 f7 00 18 f4 00 18 f3 00 18 ef 00 
>> 18 ee 01 18 ed 03 18 ec 04 18 e9 02 08 7f 08 08 7f 00 08 44 00 09 00 00 
>> 19 fc 01 08 00 00 38 81 ff 18 92 00 
>
> This looks seriously like uninitialized memory (12-bit FAT perhaps?) -
> and very much like a Qemu bug. It doesn't even make sense if interpreted
> as keyboard scancodes - 00 is reserved and ff is an error condition.

Tomasz, 

Can you provide a recipe on how to reproduce this?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [Fwd: Re: i8042 buffer size?]
  2009-05-25 22:09 ` Marcelo Tosatti
@ 2009-05-25 22:20   ` Tomasz Chmielewski
  2009-05-25 22:57     ` Tomasz Chmielewski
  0 siblings, 1 reply; 6+ messages in thread
From: Tomasz Chmielewski @ 2009-05-25 22:20 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: qemu-devel

Marcelo Tosatti wrote:

>>> 18 ff 00 18 ff 00 18 ff 00 18 fe 00 18 ff 00 18 ff 00 18 fe 00 18 ff 00 
>>> 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 08 00 01 18 ff 00 18 ff 00 
>>> 18 ff 01 18 ff 00 08 00 01 18 ff 00 18 fe 02 18 ff 00 18 ff 00 18 ff 01 
>>> 18 fd 00 18 fd 00 18 fa 00 18 f7 00 18 f7 00 18 f4 00 18 f3 00 18 ef 00 
>>> 18 ee 01 18 ed 03 18 ec 04 18 e9 02 08 7f 08 08 7f 00 08 44 00 09 00 00 
>>> 19 fc 01 08 00 00 38 81 ff 18 92 00 
>> This looks seriously like uninitialized memory (12-bit FAT perhaps?) -
>> and very much like a Qemu bug. It doesn't even make sense if interpreted
>> as keyboard scancodes - 00 is reserved and ff is an error condition.
> 
> Tomasz, 
> 
> Can you provide a recipe on how to reproduce this?

I used it with KVM, but it doesn't look KVM specific. I'll see if it 
happens with "pure" Qemu.

To reproduce:

- start a guest; connect to VNC
- type on the keyboard (just tap as much keys as you can) as you see 
BIOS, bootloader, Linux booting
- if it didn't work on the first time, reboot the guest, type on the 
keyboard, change windows with your mouse etc. (make the VNC window 
"always on top" usually helps to have focus)

I can reproduce it almost always.


-- 
Tomasz Chmielewski
http://wpkg.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [Fwd: Re: i8042 buffer size?]
  2009-05-25 22:20   ` Tomasz Chmielewski
@ 2009-05-25 22:57     ` Tomasz Chmielewski
  2009-05-28  8:44       ` Tomasz Chmielewski
  0 siblings, 1 reply; 6+ messages in thread
From: Tomasz Chmielewski @ 2009-05-25 22:57 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: qemu-devel

Tomasz Chmielewski wrote:
> Marcelo Tosatti wrote:
> 
>>>> 18 ff 00 18 ff 00 18 ff 00 18 fe 00 18 ff 00 18 ff 00 18 fe 00 18 ff 
>>>> 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 18 ff 00 08 00 01 18 ff 00 18 
>>>> ff 00 18 ff 01 18 ff 00 08 00 01 18 ff 00 18 fe 02 18 ff 00 18 ff 00 
>>>> 18 ff 01 18 fd 00 18 fd 00 18 fa 00 18 f7 00 18 f7 00 18 f4 00 18 f3 
>>>> 00 18 ef 00 18 ee 01 18 ed 03 18 ec 04 18 e9 02 08 7f 08 08 7f 00 08 
>>>> 44 00 09 00 00 19 fc 01 08 00 00 38 81 ff 18 92 00 
>>> This looks seriously like uninitialized memory (12-bit FAT perhaps?) -
>>> and very much like a Qemu bug. It doesn't even make sense if interpreted
>>> as keyboard scancodes - 00 is reserved and ff is an error condition.
>>
>> Tomasz,
>> Can you provide a recipe on how to reproduce this?
> 
> I used it with KVM, but it doesn't look KVM specific. I'll see if it 
> happens with "pure" Qemu.

I just reproduced it with "pure" Qemu, no kqemu or kvm module.

I booted off SystemRescueCd: http://www.sysresccd.org/Download

The system was started with this command line:

/usr/bin/qemu -boot d -m 256 -cdrom 
'/usr/src/systemrescuecd-x86-1.2.0.iso' -net nic,vlan=0 -net user,vlan=0 
-localtime &


I was just tapping the keys on the keyboard during BIOS phase, 
bootloader and kernel booting.


-- 
Tomasz Chmielewski
http://wpkg.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [Fwd: Re: i8042 buffer size?]
  2009-05-25 22:57     ` Tomasz Chmielewski
@ 2009-05-28  8:44       ` Tomasz Chmielewski
  2009-05-28 11:49         ` Marcelo Tosatti
  0 siblings, 1 reply; 6+ messages in thread
From: Tomasz Chmielewski @ 2009-05-28  8:44 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: qemu-devel

Tomasz Chmielewski wrote:

>>> Tomasz,
>>> Can you provide a recipe on how to reproduce this?
>>
>> I used it with KVM, but it doesn't look KVM specific. I'll see if it 
>> happens with "pure" Qemu.
> 
> I just reproduced it with "pure" Qemu, no kqemu or kvm module.

Hi Marcelo,

Were you able to reproduce it on your system?


-- 
Tomasz Chmielewski
http://wpkg.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [Fwd: Re: i8042 buffer size?]
  2009-05-28  8:44       ` Tomasz Chmielewski
@ 2009-05-28 11:49         ` Marcelo Tosatti
  0 siblings, 0 replies; 6+ messages in thread
From: Marcelo Tosatti @ 2009-05-28 11:49 UTC (permalink / raw)
  To: Tomasz Chmielewski; +Cc: qemu-devel

On Thu, May 28, 2009 at 10:44:17AM +0200, Tomasz Chmielewski wrote:
> Tomasz Chmielewski wrote:
>
>>>> Tomasz,
>>>> Can you provide a recipe on how to reproduce this?
>>>
>>> I used it with KVM, but it doesn't look KVM specific. I'll see if it  
>>> happens with "pure" Qemu.
>>
>> I just reproduced it with "pure" Qemu, no kqemu or kvm module.
>
> Hi Marcelo,
>
> Were you able to reproduce it on your system?

Tomasz,

Haven't got around to it yet, but haven't forgot either.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-05-28 11:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-20 16:30 [Qemu-devel] [Fwd: Re: i8042 buffer size?] Tomasz Chmielewski
2009-05-25 22:09 ` Marcelo Tosatti
2009-05-25 22:20   ` Tomasz Chmielewski
2009-05-25 22:57     ` Tomasz Chmielewski
2009-05-28  8:44       ` Tomasz Chmielewski
2009-05-28 11:49         ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).