Skip to contentSkip to conversation

vga patch queue

GIT PULL Applied Gerd Hoffmann 2 participants 4 messages Oct 15, 2014 – Oct 16, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

vga patch queue with two patches, one deleting some unused bits and one adding the qext region to stdvga mmio to allow switching vga framebuffer endianess (needed for ppc64le).

please pull,
Gerd

The following changes since commit b1d28ec6a7dbdaadda39d29322f0de694aeb0b74:

Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20141010' into staging (2014-10-10 14:55:29 +0100)

are available in the git repository at:

git://git.kraxel.org/qemu tags/pull-vga-20141015-1

for you to fetch changes up to 98792325435d8b46f2035eb93fa02373c7ceda44:

hw/display/vga: Remove unused arrays dmask4 and dmask16 (2014-10-15 11:10:50 +0200)

----------------------------------------------------------------
vga-pci: add qext region to mmio
vga: Remove unused arrays dmask4 and dmask16

----------------------------------------------------------------
Gerd Hoffmann (1):
vga-pci: add qext region to mmio

Peter Maydell (1):
hw/display/vga: Remove unused arrays dmask4 and dmask16

 docs/specs/standard-vga.txt |  9 ++++++
 hw/display/vga-pci.c        | 70 +++++++++++++++++++++++++++++++++++++++++++++
 hw/display/vga.c            | 26 -----------------
 include/hw/i386/pc.h        |  8 ++++++
 4 files changed, 87 insertions(+), 26 deletions(-)
#1 lore raw

[Qemu-devel] [PULL 1/2] vga-pci: add qext region to mmio

Add a qemu extented register range to the standard vga mmio bar. Right nowe there are two registers: One readonly register returning the size of the region (so we can easily add more registers there if needed) and one endian control register, so guests (especially ppc) can flip the framebuffer endianness as they need it.

---
 docs/specs/standard-vga.txt |  9 ++++++
 hw/display/vga-pci.c        | 70 +++++++++++++++++++++++++++++++++++++++++++++
 include/hw/i386/pc.h        |  8 ++++++
 3 files changed, 87 insertions(+)
docs/specs/standard-vga.txt +9 -0
index f82773e..19d2a74 100644
@@ -70,3 +70,12 @@ Likewise applies to the pci variant only for obvious reasons.
 0500 - 0515 : bochs dispi interface registers, mapped flat
               without index/data ports.  Use (index << 1)
               as offset for (16bit) register access.
+
+0600 - 0607 : qemu extended registers.  qemu 2.2+ only.
+              The pci revision is 2 (or greater) when
+              these registers are present.  The registers
+              are 32bit.
+  0600      : qemu extended register region size, in bytes.
+  0604      : framebuffer endianness register.
+              - 0xbebebebe indicates big endian.
+              - 0x1e1e1e1e indicates little endian.
hw/display/vga-pci.c +70 -0

115 lines not on this page · raw message

include/hw/i386/pc.h +8 -0
index 77316d5..1c2602e 100644
@@ -306,6 +306,14 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
             .driver   = "intel-hda",\
             .property = "old_msi_addr",\
             .value    = "on",\
+        },{\
+            .driver   = "VGA",\
+            .property = "qemu-extended-regs",\
+            .value    = "off",\
+        },{\
+            .driver   = "secondary-vga",\
+            .property = "qemu-extended-regs",\
+            .value    = "off",\
         }
 
 #define PC_COMPAT_2_0 \
Signature · 1 line
1.8.3.1
#2 lore raw

[Qemu-devel] [PULL 2/2] hw/display/vga: Remove unused arrays dmask4 and dmask16

In reply to Gerd Hoffmann

From: Peter Maydell <[email protected]>

Following cleanup of the vga device code in commit d2e043a8041, the arrays dmask4 and dmask16 are now unused. gcc doesn't warn about this, but clang does; remove them.

---
 hw/display/vga.c | 26 --------------------------
 1 file changed, 26 deletions(-)
hw/display/vga.c +0 -26
index 19e7f23..52eaf05 100644
@@ -136,32 +136,6 @@ static const uint32_t mask16[16] = {
 #define PAT(x) cbswap_32(x)
 #endif
 
-static const uint32_t dmask16[16] = {
-    PAT(0x00000000),
-    PAT(0x000000ff),
-    PAT(0x0000ff00),
-    PAT(0x0000ffff),
-    PAT(0x00ff0000),
-    PAT(0x00ff00ff),
-    PAT(0x00ffff00),
-    PAT(0x00ffffff),
-    PAT(0xff000000),
-    PAT(0xff0000ff),
-    PAT(0xff00ff00),
-    PAT(0xff00ffff),
-    PAT(0xffff0000),
-    PAT(0xffff00ff),
-    PAT(0xffffff00),
-    PAT(0xffffffff),
-};
-
-static const uint32_t dmask4[4] = {
-    PAT(0x00000000),
-    PAT(0x0000ffff),
-    PAT(0xffff0000),
-    PAT(0xffffffff),
-};
-
 static uint32_t expand4[256];
 static uint16_t expand2[256];
 static uint8_t expand4to8[16];
Signature · 1 line
1.8.3.1
#3 lore raw
In reply to Gerd Hoffmann
Quoted 20 lines · Gerd Hoffmann

Hi,

vga patch queue with two patches, one deleting some unused bits and one adding the qext region to stdvga mmio to allow switching vga framebuffer endianess (needed for ppc64le).

please pull,
Gerd

The following changes since commit b1d28ec6a7dbdaadda39d29322f0de694aeb0b74:

Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20141010' into staging (2014-10-10 14:55:29 +0100)

are available in the git repository at:

git://git.kraxel.org/qemu tags/pull-vga-20141015-1

for you to fetch changes up to 98792325435d8b46f2035eb93fa02373c7ceda44:

Quoted 7 lines

hw/display/vga: Remove unused arrays dmask4 and dmask16 (2014-10-15 11:10:50 +0200)

----------------------------------------------------------------
vga-pci: add qext region to mmio
vga: Remove unused arrays dmask4 and dmask16

----------------------------------------------------------------

Applied, thanks.

-- PMM