Skip to contentSkip to conversation

Serial: DOS Plus regression

PATCH RESEND In review Roy Tam 2 participants 3 messages Mar 25, 2010 – Mar 26, 2010

lore
Share & tools
lore

Roy Tam

author
#0 lore raw

PATCH RESEND 1/1 Serial: DOS Plus regression

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.

--

hw/serial.c +0 -4
index f3ec36a..2ae550e 100644
@@ -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:
#1 lore raw
Quoted 3 lines · Roy Tam

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?

Quoted 22 lines

--

hw/serial.c +0 -4
index f3ec36a..2ae550e 100644
@@ -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:
Signature · 2 lines
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net
author
#2 lore raw

2010/3/27 Aurelien Jarno <[email protected]>:

Quoted 8 lines · Roy Tam
Quoted 3 lines

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

Quoted 28 lines
Quoted 13 lines

--

hw/serial.c +0 -0
index f3ec36a..2ae550e 100644

hw/serial.c static void serial_ioport_write(void *opaque, · line 406

Quoted 10 lines
hw/serial.c +0 -4
@@ -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
[email protected] http://www.aurel32.net