qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH][RESEND] Serial: DOS Plus regression
@ 2010-03-25 12:58 Roy Tam
  2010-03-26 22:16 ` Aurelien Jarno
  0 siblings, 1 reply; 3+ messages in thread
From: Roy Tam @ 2010-03-25 12:58 UTC (permalink / raw)
  To: qemu-devel

The commit in r1049 (serial interrupt fix (Hampa Hug)) prevents
booting Digital Research DOSPlus. Following patch partially reverts
that commit and makes DOSPlus booting in QEMU again.

Sign-off-by: Roy Tam <roytam@gmail.com>

--

diff --git a/hw/serial.c b/hw/serial.c
index f3ec36a..2ae550e 100644
--- a/hw/serial.c
+++ b/hw/serial.c
@@ -401,10 +401,6 @@ static void serial_ioport_write(void *opaque,
                      s->poll_msl = 0;
                 }
             }
-            if (s->lsr & UART_LSR_THRE) {
-                s->thr_ipending = 1;
-                serial_update_irq(s);
-            }
         }
         break;
     case 2:

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

* Re: [Qemu-devel] [PATCH][RESEND] Serial: DOS Plus regression
  2010-03-25 12:58 [Qemu-devel] [PATCH][RESEND] Serial: DOS Plus regression Roy Tam
@ 2010-03-26 22:16 ` Aurelien Jarno
  2010-03-26 23:38   ` Roy Tam
  0 siblings, 1 reply; 3+ messages in thread
From: Aurelien Jarno @ 2010-03-26 22:16 UTC (permalink / raw)
  To: Roy Tam; +Cc: qemu-devel

On Thu, Mar 25, 2010 at 08:58:13PM +0800, Roy Tam wrote:
> The commit in r1049 (serial interrupt fix (Hampa Hug)) prevents
> booting Digital Research DOSPlus. Following patch partially reverts
> that commit and makes DOSPlus booting in QEMU again.

I guess that this patch has been introduced to fix an issue. Are you
sure your partial revert is correct and is not going to create a 
regression? What the documentation says?

> Sign-off-by: Roy Tam <roytam@gmail.com>
> 
> --
> 
> diff --git a/hw/serial.c b/hw/serial.c
> index f3ec36a..2ae550e 100644
> --- a/hw/serial.c
> +++ b/hw/serial.c
> @@ -401,10 +401,6 @@ static void serial_ioport_write(void *opaque,
>                       s->poll_msl = 0;
>                  }
>              }
> -            if (s->lsr & UART_LSR_THRE) {
> -                s->thr_ipending = 1;
> -                serial_update_irq(s);
> -            }
>          }
>          break;
>      case 2:
> 
> 
> 

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

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

* Re: [Qemu-devel] [PATCH][RESEND] Serial: DOS Plus regression
  2010-03-26 22:16 ` Aurelien Jarno
@ 2010-03-26 23:38   ` Roy Tam
  0 siblings, 0 replies; 3+ messages in thread
From: Roy Tam @ 2010-03-26 23:38 UTC (permalink / raw)
  To: Aurelien Jarno; +Cc: qemu-devel

2010/3/27 Aurelien Jarno <aurelien@aurel32.net>:
> On Thu, Mar 25, 2010 at 08:58:13PM +0800, Roy Tam wrote:
>> The commit in r1049 (serial interrupt fix (Hampa Hug)) prevents
>> booting Digital Research DOSPlus. Following patch partially reverts
>> that commit and makes DOSPlus booting in QEMU again.
>
> I guess that this patch has been introduced to fix an issue. Are you
> sure your partial revert is correct and is not going to create a
> regression? What the documentation says?

In other words, I can't find other implementations (such as Bochs)
checks LSR_THRE in IER. And the log message in r1049 doesn't say any
regressions too. As a result I assume checking LSR_THRE in IER in
r1049 is wrong implementation. Partial reverting r1049 are tested and
no regression created(tested with DOS/Windows/*nix guests, if they
work correctly before applying this patch).

>
>> Sign-off-by: Roy Tam <roytam@gmail.com>
>>
>> --
>>
>> diff --git a/hw/serial.c b/hw/serial.c
>> index f3ec36a..2ae550e 100644
>> --- a/hw/serial.c
>> +++ b/hw/serial.c
>> @@ -401,10 +401,6 @@ static void serial_ioport_write(void *opaque,
>>                       s->poll_msl = 0;
>>                  }
>>              }
>> -            if (s->lsr & UART_LSR_THRE) {
>> -                s->thr_ipending = 1;
>> -                serial_update_irq(s);
>> -            }
>>          }
>>          break;
>>      case 2:
>>
>>
>>
>
> --
> Aurelien Jarno                          GPG: 1024D/F1BCDB73
> aurelien@aurel32.net                 http://www.aurel32.net
>

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

end of thread, other threads:[~2010-03-26 23:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-25 12:58 [Qemu-devel] [PATCH][RESEND] Serial: DOS Plus regression Roy Tam
2010-03-26 22:16 ` Aurelien Jarno
2010-03-26 23:38   ` Roy Tam

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).