[Qemu-devel] [PATCH v6 0/2] spapr: generate DT node names

Laurent Vivier posted 2 patches 7 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20170217133134.10735-1-lvivier@redhat.com
Test checkpatch passed
Test docker passed
Test s390x passed
hw/ppc/spapr_pci.c       | 290 ++++++++++++++++++++++++++++++++++++++++++++---
include/hw/pci/pci_ids.h | 112 ++++++++++++++++--
2 files changed, 379 insertions(+), 23 deletions(-)
[Qemu-devel] [PATCH v6 0/2] spapr: generate DT node names
Posted by Laurent Vivier 7 years, 2 months ago
This series is a rebased series from September 2015, it has been
reviewed but has never reached the master branch.

When DT node names for PCI devices are generated by SLOF,
they are generated according to the type of the device
(for instance, ethernet for virtio-net-pci device).

Node name for hotplugged devices is generated by QEMU.
This series adds the mechanic to QEMU to create the node
name according to the device type too.

v6: rebase on master

[Wed, 30 Sep 2015]
v5: store subclass and iface ids as-is (int) and mask them when
    we compare them.

v4: move pci_ids.h to a separate patch, fix PCI_CLASS_NETWORK_WORDFIP
    remove  duplicate NL, remove 386, 486 and alpha subclasses
    rename "unknown-legacy-device", correctly check array size
    add Thomas and Michael "Reviewed-by".

v3: use values from pci_ids.h, update pci_ids.h values
    keep only details for USB (xhci, ohci, ...) and PIC (IO-APIC, IO-XAPIC)

v2: Use CamelCase name, remove misc-* name,
    remove _OTHER entries to fallback to class name (as SLOF does).
    Fix typo (IPMI-bltr).

Laurent Vivier (2):
  PCI: add missing classes in pci_ids.h to build device tree
  spapr: generate DT node names

 hw/ppc/spapr_pci.c       | 290 ++++++++++++++++++++++++++++++++++++++++++++---
 include/hw/pci/pci_ids.h | 112 ++++++++++++++++--
 2 files changed, 379 insertions(+), 23 deletions(-)

-- 
2.9.3


Re: [Qemu-devel] [PATCH v6 0/2] spapr: generate DT node names
Posted by David Gibson 7 years, 1 month ago
On Fri, Feb 17, 2017 at 02:31:32PM +0100, Laurent Vivier wrote:
1;4601;0c> This series is a rebased series from September 2015, it has been
> reviewed but has never reached the master branch.
> 
> When DT node names for PCI devices are generated by SLOF,
> they are generated according to the type of the device
> (for instance, ethernet for virtio-net-pci device).
> 
> Node name for hotplugged devices is generated by QEMU.
> This series adds the mechanic to QEMU to create the node
> name according to the device type too.

Applied to ppc-for-2.9, thanks.

> 
> v6: rebase on master
> 
> [Wed, 30 Sep 2015]
> v5: store subclass and iface ids as-is (int) and mask them when
>     we compare them.
> 
> v4: move pci_ids.h to a separate patch, fix PCI_CLASS_NETWORK_WORDFIP
>     remove  duplicate NL, remove 386, 486 and alpha subclasses
>     rename "unknown-legacy-device", correctly check array size
>     add Thomas and Michael "Reviewed-by".
> 
> v3: use values from pci_ids.h, update pci_ids.h values
>     keep only details for USB (xhci, ohci, ...) and PIC (IO-APIC, IO-XAPIC)
> 
> v2: Use CamelCase name, remove misc-* name,
>     remove _OTHER entries to fallback to class name (as SLOF does).
>     Fix typo (IPMI-bltr).
> 
> Laurent Vivier (2):
>   PCI: add missing classes in pci_ids.h to build device tree
>   spapr: generate DT node names
> 
>  hw/ppc/spapr_pci.c       | 290 ++++++++++++++++++++++++++++++++++++++++++++---
>  include/hw/pci/pci_ids.h | 112 ++++++++++++++++--
>  2 files changed, 379 insertions(+), 23 deletions(-)
> 

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson