Skip to content
Snippets Groups Projects
  1. Mar 06, 2020
  2. Mar 05, 2020
  3. Mar 03, 2020
  4. Feb 28, 2020
  5. Feb 27, 2020
  6. Feb 26, 2020
  7. Feb 25, 2020
  8. Feb 22, 2020
  9. Feb 21, 2020
    • Guenter Roeck's avatar
      arm: allwinner: Wire up USB ports · 7abc8cab
      Guenter Roeck authored
      
      Instantiate EHCI and OHCI controllers on Allwinner A10. OHCI ports are
      modeled as companions of the respective EHCI ports.
      
      With this patch applied, USB controllers are discovered and instantiated
      when booting the cubieboard machine with a recent Linux kernel.
      
      ehci-platform 1c14000.usb: EHCI Host Controller
      ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1
      ehci-platform 1c14000.usb: irq 26, io mem 0x01c14000
      ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
      ehci-platform 1c1c000.usb: EHCI Host Controller
      ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 2
      ehci-platform 1c1c000.usb: irq 31, io mem 0x01c1c000
      ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
      ohci-platform 1c14400.usb: Generic Platform OHCI controller
      ohci-platform 1c14400.usb: new USB bus registered, assigned bus number 3
      ohci-platform 1c14400.usb: irq 27, io mem 0x01c14400
      ohci-platform 1c1c400.usb: Generic Platform OHCI controller
      ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 4
      ohci-platform 1c1c400.usb: irq 32, io mem 0x01c1c400
      usb 2-1: new high-speed USB device number 2 using ehci-platform
      usb-storage 2-1:1.0: USB Mass Storage device detected
      scsi host1: usb-storage 2-1:1.0
      usb 3-1: new full-speed USB device number 2 using ohci-platform
      input: QEMU QEMU USB Mouse as /devices/platform/soc/1c14400.usb/usb3/3-1/3-1:1.0/0003:0627:0001.0001/input/input0
      
      Reviewed-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Tested-by: default avatarNiek Linnenbank <nieklinnenbank@gmail.com>
      Message-id: 20200217204812.9857-4-linux@roeck-us.net
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      7abc8cab
  10. Feb 20, 2020
    • Greg Kurz's avatar
      spapr: Don't use spapr_drc_needed() in CAS code · 4b63db12
      Greg Kurz authored
      
      We currently don't support hotplug of devices between boot and CAS. If
      this happens a CAS reboot is triggered. We detect this during CAS using
      the spapr_drc_needed() function which is essentially a VMStateDescription
      .needed callback. Even if the condition for CAS reboot happens to be the
      same as for DRC migration, it looks wrong to piggyback a migration helper
      for this.
      
      Introduce a helper with slightly more explicit name and use it in both CAS
      and DRC migration code. Since a subsequent patch will enhance this helper
      to cover the case of hot unplug, let's go for spapr_drc_transient(). While
      here convert spapr_hotplugged_dev_before_cas() to the "transient" wording as
      well.
      
      This doesn't change any behaviour.
      
      Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
      Message-Id: <158169248180.3465937.9531405453362718771.stgit@bahia.lan>
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      4b63db12
    • Alexey Kardashevskiy's avatar
      spapr: Allow changing offset for -kernel image · 87262806
      Alexey Kardashevskiy authored
      
      This allows moving the kernel in the guest memory. The option is useful
      for step debugging (as Linux is linked at 0x0); it also allows loading
      grub which is normally linked to run at 0x20000.
      
      This uses the existing kernel address by default.
      
      Signed-off-by: default avatarAlexey Kardashevskiy <aik@ozlabs.ru>
      Message-Id: <20200203032943.121178-6-aik@ozlabs.ru>
      Reviewed-by: default avatarFabiano Rosas <farosas@linux.ibm.com>
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      87262806
    • Shivaprasad G Bhat's avatar
      spapr: Add Hcalls to support PAPR NVDIMM device · b5fca656
      Shivaprasad G Bhat authored
      
      This patch implements few of the necessary hcalls for the nvdimm support.
      
      PAPR semantics is such that each NVDIMM device is comprising of multiple
      SCM(Storage Class Memory) blocks. The guest requests the hypervisor to
      bind each of the SCM blocks of the NVDIMM device using hcalls. There can
      be SCM block unbind requests in case of driver errors or unplug(not
      supported now) use cases. The NVDIMM label read/writes are done through
      hcalls.
      
      Since each virtual NVDIMM device is divided into multiple SCM blocks,
      the bind, unbind, and queries using hcalls on those blocks can come
      independently. This doesn't fit well into the qemu device semantics,
      where the map/unmap are done at the (whole)device/object level granularity.
      The patch doesnt actually bind/unbind on hcalls but let it happen at the
      device_add/del phase itself instead.
      
      The guest kernel makes bind/unbind requests for the virtual NVDIMM device
      at the region level granularity. Without interleaving, each virtual NVDIMM
      device is presented as a separate guest physical address range. So, there
      is no way a partial bind/unbind request can come for the vNVDIMM in a
      hcall for a subset of SCM blocks of a virtual NVDIMM. Hence it is safe to
      do bind/unbind everything during the device_add/del.
      
      Signed-off-by: default avatarShivaprasad G Bhat <sbhat@linux.ibm.com>
      Message-Id: <158131059899.2897.11515211602702956854.stgit@lep8c.aus.stglabs.ibm.com>
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      b5fca656
    • Shivaprasad G Bhat's avatar
      spapr: Add NVDIMM device support · ee3a71e3
      Shivaprasad G Bhat authored
      
      Add support for NVDIMM devices for sPAPR. Piggyback on existing nvdimm
      device interface in QEMU to support virtual NVDIMM devices for Power.
      Create the required DT entries for the device (some entries have
      dummy values right now).
      
      The patch creates the required DT node and sends a hotplug
      interrupt to the guest. Guest is expected to undertake the normal
      DR resource add path in response and start issuing PAPR SCM hcalls.
      
      The device support is verified based on the machine version unlike x86.
      
      This is how it can be used ..
      Ex :
      For coldplug, the device to be added in qemu command line as shown below
      -object memory-backend-file,id=memnvdimm0,prealloc=yes,mem-path=/tmp/nvdimm0,share=yes,size=1073872896
      -device nvdimm,label-size=128k,uuid=75a3cdd7-6a2f-4791-8d15-fe0a920e8e9e,memdev=memnvdimm0,id=nvdimm0,slot=0
      
      For hotplug, the device to be added from monitor as below
      object_add memory-backend-file,id=memnvdimm0,prealloc=yes,mem-path=/tmp/nvdimm0,share=yes,size=1073872896
      device_add nvdimm,label-size=128k,uuid=75a3cdd7-6a2f-4791-8d15-fe0a920e8e9e,memdev=memnvdimm0,id=nvdimm0,slot=0
      
      Signed-off-by: default avatarShivaprasad G Bhat <sbhat@linux.ibm.com>
      Signed-off-by: default avatarBharata B Rao <bharata@linux.ibm.com>
                     [Early implementation]
      Message-Id: <158131058078.2897.12767731856697459923.stgit@lep8c.aus.stglabs.ibm.com>
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      ee3a71e3
    • Shivaprasad G Bhat's avatar
      nvdimm: add uuid property to nvdimm · 6c5627bb
      Shivaprasad G Bhat authored
      
      For ppc64, PAPR requires the nvdimm device to have UUID property
      set in the device tree. Add an option to get it from the user.
      
      Signed-off-by: default avatarShivaprasad G Bhat <sbhat@linux.ibm.com>
      Reviewed-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      Reviewed-by: default avatarIgor Mammedov <imammedo@redhat.com>
      Message-Id: <158131056931.2897.14057087440721445976.stgit@lep8c.aus.stglabs.ibm.com>
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      6c5627bb
    • Shivaprasad G Bhat's avatar
      mem: move nvdimm_device_list to utilities · 3f350f6b
      Shivaprasad G Bhat authored
      
      nvdimm_device_list is required for parsing the list for devices
      in subsequent patches. Move it to common utility area.
      
      Signed-off-by: default avatarShivaprasad G Bhat <sbhat@linux.ibm.com>
      Reviewed-by: default avatarIgor Mammedov <imammedo@redhat.com>
      Reviewed-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      Message-Id: <158131055857.2897.15658377276504711773.stgit@lep8c.aus.stglabs.ibm.com>
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      3f350f6b
    • Peter Krempa's avatar
      qapi: Allow getting flat output from 'query-named-block-nodes' · facda544
      Peter Krempa authored
      
      When a management application manages node names there's no reason to
      recurse into backing images in the output of query-named-block-nodes.
      
      Add a parameter to the command which will return just the top level
      structs.
      
      Signed-off-by: default avatarPeter Krempa <pkrempa@redhat.com>
      Message-Id: <4470f8c779abc404dcf65e375db195cd91a80651.1579509782.git.pkrempa@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      [mreitz: Fixed coding style]
      Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
      facda544
Loading