Skip to contentSkip to conversation

hw/isa/smc37c669: Change the parallel I/O base to 378H

PATCH Applied Philippe Mathieu-Daudé 4 participants 5 messages Jun 14, 2018 – Jun 17, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/isa/smc37c669: Change the parallel I/O base to 378H

On the Alpha DP264 machine, the Cirrus VGA is I/O mapped in the 3C0H-3CFH range, thus I/O base used by the parallel device clashes, and since a4cb773928e the VGA is not working:

(qemu) info mtree
address-space: memory
0000000000000000-ffffffffffffffff (prio 0, i/o): system

    00000801fc000000-00000801fdffffff (prio 0, i/o): pci0-io
      ...
      00000801fc0003b4-00000801fc0003b5 (prio 0, i/o): vga
      00000801fc0003ba-00000801fc0003ba (prio 0, i/o): vga
      00000801fc0003bc-00000801fc0003c3 (prio 0, i/o): parallel
                                    ^^^                ^^^^^^^^
      00000801fc0003c0-00000801fc0003cf (prio 0, i/o): vga
                   ^^^
      00000801fc0003d4-00000801fc0003d5 (prio 0, i/o): vga
      00000801fc0003da-00000801fc0003da (prio 0, i/o): vga
      ...

As there is no particular reason to use this base address (introduced in 7bea0dd434e), change to 378H which is the default on PC machines.

---
RFC: http://lists.nongnu.org/archive/html/qemu-devel/2018-06/msg04011.html

 hw/isa/smc37c669-superio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/isa/smc37c669-superio.c +1 -1
index aa233c6967..64466a9373 100644
@@ -37,7 +37,7 @@ static bool is_parallel_enabled(ISASuperIODevice *sio, uint8_t index)
 
 static uint16_t get_parallel_iobase(ISASuperIODevice *sio, uint8_t index)
 {
-    return 0x3bc;
+    return 0x378;
 }
 
 static unsigned int get_parallel_irq(ISASuperIODevice *sio, uint8_t index)
Signature · 1 line
2.17.1
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 24 lines · Philippe Mathieu-Daudé

On the Alpha DP264 machine, the Cirrus VGA is I/O mapped in the 3C0H-3CFH range, thus I/O base used by the parallel device clashes, and since a4cb773928e the VGA is not working:

(qemu) info mtree
address-space: memory
0000000000000000-ffffffffffffffff (prio 0, i/o): system

    00000801fc000000-00000801fdffffff (prio 0, i/o): pci0-io
      ...
      00000801fc0003b4-00000801fc0003b5 (prio 0, i/o): vga
      00000801fc0003ba-00000801fc0003ba (prio 0, i/o): vga
      00000801fc0003bc-00000801fc0003c3 (prio 0, i/o): parallel
                                    ^^^                ^^^^^^^^
      00000801fc0003c0-00000801fc0003cf (prio 0, i/o): vga
                   ^^^
      00000801fc0003d4-00000801fc0003d5 (prio 0, i/o): vga
      00000801fc0003da-00000801fc0003da (prio 0, i/o): vga
      ...

As there is no particular reason to use this base address (introduced in 7bea0dd434e), change to 378H which is the default on PC machines.

Quoted 5 lines

---
RFC: http://lists.nongnu.org/archive/html/qemu-devel/2018-06/msg04011.html

r~

Reviewed-by on v1 1/1
#2 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 38 lines · Philippe Mathieu-Daudé

On the Alpha DP264 machine, the Cirrus VGA is I/O mapped in the 3C0H-3CFH range, thus I/O base used by the parallel device clashes, and since a4cb773928e the VGA is not working:

(qemu) info mtree
address-space: memory
0000000000000000-ffffffffffffffff (prio 0, i/o): system

     00000801fc000000-00000801fdffffff (prio 0, i/o): pci0-io
       ...
       00000801fc0003b4-00000801fc0003b5 (prio 0, i/o): vga
       00000801fc0003ba-00000801fc0003ba (prio 0, i/o): vga
       00000801fc0003bc-00000801fc0003c3 (prio 0, i/o): parallel
                                     ^^^                ^^^^^^^^
       00000801fc0003c0-00000801fc0003cf (prio 0, i/o): vga
                    ^^^
       00000801fc0003d4-00000801fc0003d5 (prio 0, i/o): vga
       00000801fc0003da-00000801fc0003da (prio 0, i/o): vga
       ...

As there is no particular reason to use this base address (introduced in 7bea0dd434e), change to 378H which is the default on PC machines.

---
RFC: http://lists.nongnu.org/archive/html/qemu-devel/2018-06/msg04011.html

  hw/isa/smc37c669-superio.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/isa/smc37c669-superio.c +0 -0
index aa233c6967..64466a9373 100644

hw/isa/smc37c669-superio.c static bool is_parallel_enabled(ISASuperIODevice *sio, uint8_t index) · line 43

Quoted 8 lines
hw/isa/smc37c669-superio.c +1 -1
@@ -37,7 +37,7 @@ static bool is_parallel_enabled(ISASuperIODevice *sio, uint8_t index)
 
  static uint16_t get_parallel_iobase(ISASuperIODevice *sio, uint8_t index)
  {
-    return 0x3bc;
+    return 0x378;
  }
 
  static unsigned int get_parallel_irq(ISASuperIODevice *sio, uint8_t index)

ATB,

Mark.

#4 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 24 lines · Philippe Mathieu-Daudé

On the Alpha DP264 machine, the Cirrus VGA is I/O mapped in the 3C0H-3CFH range, thus I/O base used by the parallel device clashes, and since a4cb773928e the VGA is not working:

(qemu) info mtree
address-space: memory
0000000000000000-ffffffffffffffff (prio 0, i/o): system

    00000801fc000000-00000801fdffffff (prio 0, i/o): pci0-io
      ...
      00000801fc0003b4-00000801fc0003b5 (prio 0, i/o): vga
      00000801fc0003ba-00000801fc0003ba (prio 0, i/o): vga
      00000801fc0003bc-00000801fc0003c3 (prio 0, i/o): parallel
                                    ^^^                ^^^^^^^^
      00000801fc0003c0-00000801fc0003cf (prio 0, i/o): vga
                   ^^^
      00000801fc0003d4-00000801fc0003d5 (prio 0, i/o): vga
      00000801fc0003da-00000801fc0003da (prio 0, i/o): vga
      ...

As there is no particular reason to use this base address (introduced in 7bea0dd434e), change to 378H which is the default on PC machines.

Quoted 8 lines

---
RFC: http://lists.nongnu.org/archive/html/qemu-devel/2018-06/msg04011.html

 hw/isa/smc37c669-superio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Queued to tgt-axp.

r~