Skip to contentSkip to conversation

ppc patch queue 2013-11-08

GIT PULL Alexander Graf 1 participant 3 messages Nov 8, 2013

lore
Share & tools
lore
#1 lore raw

[Qemu-devel] [PULL 1.7 1/2] spapr: add vio-bus devices to categories

In reply to Alexander Graf

From: Alexey Kardashevskiy <[email protected]>

In order to get devices appear in output of "./qemu-system-ppc64 -device ?",
they must be assigned to one of DEVICE_CATEGORY_XXXX.

This puts VIO devices classes to corresponding categories.

---
 hw/char/spapr_vty.c    | 1 +
 hw/net/spapr_llan.c    | 1 +
 hw/nvram/spapr_nvram.c | 1 +
 hw/scsi/spapr_vscsi.c  | 1 +
 4 files changed, 4 insertions(+)
hw/char/spapr_vty.c +1 -0
index 9c2aef8..f8a4981 100644
@@ -168,6 +168,7 @@ static void spapr_vty_class_init(ObjectClass *klass, void *data)
     k->dt_name = "vty";
     k->dt_type = "serial";
     k->dt_compatible = "hvterm1";
+    set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
     dc->props = spapr_vty_properties;
     dc->vmsd = &vmstate_spapr_vty;
 }
hw/net/spapr_llan.c +1 -0
index 4ff0411..1bd6f50 100644
@@ -531,6 +531,7 @@ static void spapr_vlan_class_init(ObjectClass *klass, void *data)
     k->dt_type = "network";
     k->dt_compatible = "IBM,l-lan";
     k->signal_mask = 0x1;
+    set_bit(DEVICE_CATEGORY_NETWORK, dc->categories);
     dc->props = spapr_vlan_properties;
     k->rtce_window_size = 0x10000000;
     dc->vmsd = &vmstate_spapr_llan;
hw/nvram/spapr_nvram.c +1 -0
index eb4500e..beaad68 100644
@@ -182,6 +182,7 @@ static void spapr_nvram_class_init(ObjectClass *klass, void *data)
     k->dt_name = "nvram";
     k->dt_type = "nvram";
     k->dt_compatible = "qemu,spapr-nvram";
+    set_bit(DEVICE_CATEGORY_MISC, dc->categories);
     dc->props = spapr_nvram_properties;
 }
 
hw/scsi/spapr_vscsi.c +1 -0
index 2a26042..c0c46d7 100644
@@ -1223,6 +1223,7 @@ static void spapr_vscsi_class_init(ObjectClass *klass, void *data)
     k->dt_type = "vscsi";
     k->dt_compatible = "IBM,v-scsi";
     k->signal_mask = 0x00000001;
+    set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
     dc->props = spapr_vscsi_properties;
     k->rtce_window_size = 0x10000000;
     dc->vmsd = &vmstate_spapr_vscsi;
Signature · 1 line
1.8.1.4
#0 lore raw

Hi Blue / Aurelien / Anthony,

This is my current patch queue for ppc. Please pull.

Alex

The following changes since commit 964668b03d26f0b5baa5e5aff0c966f4fcb76e9e:

Update version for 1.7.0-rc0 release (2013-11-06 21:49:39 -0800)

are available in the git repository at:

git://github.com/agraf/qemu.git tags/signed-ppc-for-upstream-1.7

for you to fetch changes up to 9d0e1dac108ce90cbe62c89af57a7ace006f5152:

pseries: Update SLOF firmware image (2013-11-08 04:33:19 +0100)

----------------------------------------------------------------
Patch queue for ppc - 2013-11-08

These are two patches that will hopefully make it into 1.7. The SLOF update fixes -append kernel command line argument passing into the guest kernel. The other patch makes VIO devices appear when using -device '?'.

----------------------------------------------------------------
Alexey Kardashevskiy (2):
spapr: add vio-bus devices to categories
pseries: Update SLOF firmware image

 hw/char/spapr_vty.c    |   1 +
 hw/net/spapr_llan.c    |   1 +
 hw/nvram/spapr_nvram.c |   1 +
 hw/scsi/spapr_vscsi.c  |   1 +
 pc-bios/README         |   2 +-
 pc-bios/slof.bin       | Bin 875424 -> 873920 bytes
 roms/SLOF              |   2 +-
 7 files changed, 6 insertions(+), 2 deletions(-)
#2 lore raw

[Qemu-devel] [PULL 1.7 2/2] pseries: Update SLOF firmware image

From: Alexey Kardashevskiy <[email protected]>

SLOF git commit is e2e8ac901e617573ea383f9cffd136146d0675a4

The main changes are:
* fixed bug with not passing arguments from -append
* client-architecture-support hypercall
* netboot
* USB stack fixes

The full list of changes:

Quoted 23 lines

client-architecture-support: fix wrong version read client-architecture-support: fix redundant stack drop Update device tree returned by CAS hypercall
fdt: introduce fdt-init
Add ibm,client-architecture-support method
Kernel parameter passed from qemu commandline ignored Allow more than one client to open net devices simultaneously
ci: add missing close in else condition
Add GPT support
pci: fix interrupt-map for bridges
usb-ohci: preserve the toggleCarry bit in ED
usb-ohci: done_head processing fixes
usb-ohci: update init and rationalize timings
usb-msc: handle stall and other fixes
scsi: make probe more error resilient
usb-core: Add CLEAR FEATURE api
Implement range allocator
Remove bcm57xx network driver as module
Remove e1000 network driver as module
Remove virtio-net network driver as module
Remove veth network driver as module
Add missing close-dev in ping
Remove lodable network driver modules and related functions

Quoted 8 lines

Add bcm57xx network driver in libbcm
Add e1000 network driver in libe1k
Add virtio-net driver in libvirtio
Add veth driver in libveth
Get MAC address for client interface module
Add SLOF usleep wrapper
Add SLOF pci wrapper functions
Fix 'canon' client interface

---
 pc-bios/README   |   2 +-
 pc-bios/slof.bin | Bin 875424 -> 873920 bytes
 roms/SLOF        |   2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
pc-bios/README +1 -1
index b4138d1..1501cf1 100644
@@ -17,7 +17,7 @@
 - SLOF (Slimline Open Firmware) is a free IEEE 1275 Open Firmware
   implementation for certain IBM POWER hardware.  The sources are at
   https://github.com/aik/SLOF, and the image currently in qemu is
-  built from git tag qemu-slof-20130827.
+  built from git tag qemu-slof-20131015.
 
 - sgabios (the Serial Graphics Adapter option ROM) provides a means for
   legacy x86 software to communicate with an attached serial console as
pc-bios/slof.bin binary +0 -0
index 0e8b51ad1f3ecde581db2a49c1b75e96e9084c41..92a9831be7ade3d09a8b0aea08d0694da792da51 100644
GIT binary patch
roms/SLOF +1 -1
index a523d1b..e2e8ac9 160000
@@ -1 +1 @@
-Subproject commit a523d1b0cd6e96cf5e393f0a10f897e8ed639fdc
+Subproject commit e2e8ac901e617573ea383f9cffd136146d0675a4
Signature · 1 line
1.8.1.4