All of lore.kernel.org
 help / color / mirror / Atom feed
* Serial Port Driver does not handle interrupt
@ 2009-11-09 15:54 Erik Rull
  2009-11-16 22:59 ` Erik Rull
  2009-11-16 23:01 ` Erik Rull
  0 siblings, 2 replies; 6+ messages in thread
From: Erik Rull @ 2009-11-09 15:54 UTC (permalink / raw)
  To: kvm

Hi all,

I've tested two kvm versions 77 and 88, both with the same behaviour:
I add a serial device with -serial /dev/ttyS0 to my guest and launched 
HyperTerm on my Windows Guest.
Additionally I plugged in a loopback plug on the serial connector that just 
routes back the data send back to the receive line (TXD -> RXD).
When I enter characters on the Hyperterm all characters are displayed 
except the last one that was sent.
When I plug in a real serial device and request its status via Hyperterm I 
get only back the first 16 chars (I expect 50) when I send an additional 
dummy character (sizeof: 16550 FIFO buffer). On my normal Windows PC it 
works as expected - so it seems to be an issue with kvm.

In the linux host, I don't see any changes in /proc/interrupts, the driver 
is opened and exclusively on this interrupt line.

Within the host the serial line works without any problems, and there, the 
interrupt counts increase during normal operation with a software that runs 
on the host and that uses this serial line.

What must I do to bring the serial line to real life with a complete 
communication without any data lost caused by missing interrupts? At the 
moment this is a key issue that has to be solved to continue my work with kvm.

Any Ideas? I also tested other IRQ lines and other ttyS* on the system - 
same behaviour.

Thanks in advance,

Erik

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

* Re: Serial Port Driver does not handle interrupt
  2009-11-09 15:54 Serial Port Driver does not handle interrupt Erik Rull
@ 2009-11-16 22:59 ` Erik Rull
  2009-11-16 23:01 ` Erik Rull
  1 sibling, 0 replies; 6+ messages in thread
From: Erik Rull @ 2009-11-16 22:59 UTC (permalink / raw)
  To: Erik Rull; +Cc: kvm

Erik Rull wrote:
> Hi all,
> 
> I've tested two kvm versions 77 and 88, both with the same behaviour:
> I add a serial device with -serial /dev/ttyS0 to my guest and launched 
> HyperTerm on my Windows Guest.
> Additionally I plugged in a loopback plug on the serial connector that 
> just routes back the data send back to the receive line (TXD -> RXD).
> When I enter characters on the Hyperterm all characters are displayed 
> except the last one that was sent.
> When I plug in a real serial device and request its status via Hyperterm 
> I get only back the first 16 chars (I expect 50) when I send an 
> additional dummy character (sizeof: 16550 FIFO buffer). On my normal 
> Windows PC it works as expected - so it seems to be an issue with kvm.
> 
> In the linux host, I don't see any changes in /proc/interrupts, the 
> driver is opened and exclusively on this interrupt line.
> 
> Within the host the serial line works without any problems, and there, 
> the interrupt counts increase during normal operation with a software 
> that runs on the host and that uses this serial line.
> 
> What must I do to bring the serial line to real life with a complete 
> communication without any data lost caused by missing interrupts? At the 
> moment this is a key issue that has to be solved to continue my work 
> with kvm.
> 
> Any Ideas? I also tested other IRQ lines and other ttyS* on the system - 
> same behaviour.
> 
> Thanks in advance,
> 
> Erik
> -- 
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

fixed, apic on host side was disabled, kvm / qemu seems to need it.

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

* Re: Serial Port Driver does not handle interrupt
  2009-11-09 15:54 Serial Port Driver does not handle interrupt Erik Rull
  2009-11-16 22:59 ` Erik Rull
@ 2009-11-16 23:01 ` Erik Rull
  2009-11-16 23:27   ` Rodrigo Campos
  1 sibling, 1 reply; 6+ messages in thread
From: Erik Rull @ 2009-11-16 23:01 UTC (permalink / raw)
  To: Erik Rull; +Cc: kvm

Erik Rull wrote:
> Hi all,
> 
> I've tested two kvm versions 77 and 88, both with the same behaviour:
> I add a serial device with -serial /dev/ttyS0 to my guest and launched 
> HyperTerm on my Windows Guest.
> Additionally I plugged in a loopback plug on the serial connector that 
> just routes back the data send back to the receive line (TXD -> RXD).
> When I enter characters on the Hyperterm all characters are displayed 
> except the last one that was sent.
> When I plug in a real serial device and request its status via Hyperterm 
> I get only back the first 16 chars (I expect 50) when I send an 
> additional dummy character (sizeof: 16550 FIFO buffer). On my normal 
> Windows PC it works as expected - so it seems to be an issue with kvm.
> 
> In the linux host, I don't see any changes in /proc/interrupts, the 
> driver is opened and exclusively on this interrupt line.
> 
> Within the host the serial line works without any problems, and there, 
> the interrupt counts increase during normal operation with a software 
> that runs on the host and that uses this serial line.
> 
> What must I do to bring the serial line to real life with a complete 
> communication without any data lost caused by missing interrupts? At the 
> moment this is a key issue that has to be solved to continue my work 
> with kvm.
> 
> Any Ideas? I also tested other IRQ lines and other ttyS* on the system - 
> same behaviour.
> 
> Thanks in advance,
> 
> Erik
> -- 
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

fixed, apic on host side was disabled, kvm / qemu seems to need it.


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

* Re: Serial Port Driver does not handle interrupt
  2009-11-16 23:01 ` Erik Rull
@ 2009-11-16 23:27   ` Rodrigo Campos
  2009-11-17 18:00     ` Erik Rull
  0 siblings, 1 reply; 6+ messages in thread
From: Rodrigo Campos @ 2009-11-16 23:27 UTC (permalink / raw)
  To: Erik Rull; +Cc: kvm

On Tue, Nov 17, 2009 at 12:01:08AM +0100, Erik Rull wrote:
> Erik Rull wrote:
> >Any Ideas? I also tested other IRQ lines and other ttyS* on the
> >system - same behaviour.
> 
> fixed, apic on host side was disabled, kvm / qemu seems to need it.

I think I hit the same issue. What did you do exactly to solve it ? Enable a
kernel option ? May I ask which one ? :)

Sorry, I dont have the hardware right now (so I can't play with apic options). I
will have it in a few weeks, so that's why I am asking :)




Thanks a lot,
Rodrigo

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

* Re: Serial Port Driver does not handle interrupt
  2009-11-16 23:27   ` Rodrigo Campos
@ 2009-11-17 18:00     ` Erik Rull
  2009-11-17 18:40       ` Rodrigo Campos
  0 siblings, 1 reply; 6+ messages in thread
From: Erik Rull @ 2009-11-17 18:00 UTC (permalink / raw)
  To: Rodrigo Campos; +Cc: kvm

Rodrigo Campos wrote:
> On Tue, Nov 17, 2009 at 12:01:08AM +0100, Erik Rull wrote:
>> Erik Rull wrote:
>>> Any Ideas? I also tested other IRQ lines and other ttyS* on the
>>> system - same behaviour.
>> fixed, apic on host side was disabled, kvm / qemu seems to need it.
> 
> I think I hit the same issue. What did you do exactly to solve it ? Enable a
> kernel option ? May I ask which one ? :)
> 
> Sorry, I dont have the hardware right now (so I can't play with apic options). I
> will have it in a few weeks, so that's why I am asking :)
> 

I enabled the APIC stuff in Kernel and removed my lapic noapic boot 
parameters. APIC is enabled if you look into /proc/interrupts and the IRQ 
type is something with apic and not pc / xt.

Also ensure that the IRQ line of the serial port matches those of your 
linux drivers! Otherwise the interrupt gets lost and you'll see some 
strange behaviours (Chars missing, delayed responses,...).

Best regards,

Erik

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

* Re: Serial Port Driver does not handle interrupt
  2009-11-17 18:00     ` Erik Rull
@ 2009-11-17 18:40       ` Rodrigo Campos
  0 siblings, 0 replies; 6+ messages in thread
From: Rodrigo Campos @ 2009-11-17 18:40 UTC (permalink / raw)
  To: Erik Rull; +Cc: kvm

On Tue, Nov 17, 2009 at 07:00:56PM +0100, Erik Rull wrote:
> Rodrigo Campos wrote:
> >On Tue, Nov 17, 2009 at 12:01:08AM +0100, Erik Rull wrote:
> >>Erik Rull wrote:
> >>>Any Ideas? I also tested other IRQ lines and other ttyS* on the
> >>>system - same behaviour.
> >>fixed, apic on host side was disabled, kvm / qemu seems to need it.
> >
> >I think I hit the same issue. What did you do exactly to solve it ? Enable a
> >kernel option ? May I ask which one ? :)
> >
> >Sorry, I dont have the hardware right now (so I can't play with apic options). I
> >will have it in a few weeks, so that's why I am asking :)
> >
> 
> I enabled the APIC stuff in Kernel and removed my lapic noapic boot
> parameters. APIC is enabled if you look into /proc/interrupts and
> the IRQ type is something with apic and not pc / xt.

Ahh, thanks :)

> 
> Also ensure that the IRQ line of the serial port matches those of
> your linux drivers! Otherwise the interrupt gets lost and you'll see
> some strange behaviours (Chars missing, delayed responses,...).

I will check that too.




Thanks a lot,
Rodrigo

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

end of thread, other threads:[~2009-11-17 18:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-09 15:54 Serial Port Driver does not handle interrupt Erik Rull
2009-11-16 22:59 ` Erik Rull
2009-11-16 23:01 ` Erik Rull
2009-11-16 23:27   ` Rodrigo Campos
2009-11-17 18:00     ` Erik Rull
2009-11-17 18:40       ` Rodrigo Campos

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.