[kvm-unit-tests PATCH 06/11] arm/pci: PCI testdev existence test

2016-01-09 Thread Alexander Gordeev
Cc: Andrew Jones <drjo...@redhat.com> Signed-off-by: Alexander Gordeev <agord...@redhat.com> --- arm/pci-test.c | 3 +++ config/config-arm-common.mak | 1 + lib/pci-testdev.c| 31 +++ lib/pci.h| 1 + 4 files

[kvm-unit-tests PATCH 01/11] arm/pci: Device tree PCI probing

2016-01-09 Thread Alexander Gordeev
Cc: Andrew Jones <drjo...@redhat.com> Signed-off-by: Alexander Gordeev <agord...@redhat.com> --- arm/pci-test.c | 25 +++ config/config-arm-common.mak | 5 +- lib/alloc.c | 3 - lib/libcflat.h | 3 + lib/pci-host-generic.c

[kvm-unit-tests PATCH 00/11] pci/arm: add PCI bus support

2016-01-09 Thread Alexander Gordeev
This series extends the kvm-unit-tests/arm framework to support PCI. Cc: Andrew Jones <drjo...@redhat.com> Alexander Gordeev (11): arm/pci: Device tree PCI probing arm/pci: PCI bus scanning arm/pci: Read devices BARs arm/pci: Allocate and assign memory/io space resources arm/pc

[kvm-unit-tests PATCH 05/11] arm/pci: Add pci_find_dev() and pci_bar_addr() functions

2016-01-09 Thread Alexander Gordeev
This updat is a reminiscence of x86 implementation - to provision a possible future common PCI interface. Make pcidevaddr_t as int, not u16. There is no good reason to limit it to u16 while omitting properly adjusted bit fields. Cc: Andrew Jones <drjo...@redhat.com> Signed-off-by: Ale

[kvm-unit-tests PATCH 07/11] arm/pci: PCI device operation test

2016-01-09 Thread Alexander Gordeev
Cc: Andrew Jones <drjo...@redhat.com> Signed-off-by: Alexander Gordeev <agord...@redhat.com> --- arm/pci-test.c| 2 +- lib/pci-testdev.c | 139 -- lib/pci.h | 2 +- 3 files changed, 138 insertions(+), 5 deletions(-)

[kvm-unit-tests PATCH 04/11] arm/pci: Allocate and assign memory/io space resources

2016-01-09 Thread Alexander Gordeev
Cc: Andrew Jones <drjo...@redhat.com> Signed-off-by: Alexander Gordeev <agord...@redhat.com> --- lib/pci-host-generic.c | 71 -- 1 file changed, 69 insertions(+), 2 deletions(-) diff --git a/lib/pci-host-generic.c b/lib/pci-host-gen

[kvm-unit-tests PATCH 10/11] arm/pci: PCI devices basic info printing

2016-01-09 Thread Alexander Gordeev
Cc: Andrew Jones <drjo...@redhat.com> Signed-off-by: Alexander Gordeev <agord...@redhat.com> --- lib/pci-host-generic.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/lib/pci-host-generic.c b/lib/pci-host-generic.c index 2d218a4..50cf09a 1006

[kvm-unit-tests PATCH 03/11] arm/pci: Read devices BARs

2016-01-09 Thread Alexander Gordeev
Cc: Andrew Jones <drjo...@redhat.com> Signed-off-by: Alexander Gordeev <agord...@redhat.com> --- lib/pci-host-generic.c | 90 ++ lib/pci-host-generic.h | 10 ++ 2 files changed, 100 insertions(+) diff --git a/lib/pci-host-generic

[kvm-unit-tests PATCH 08/11] arm/pci: PCI device read/write test

2016-01-09 Thread Alexander Gordeev
Cc: Andrew Jones <drjo...@redhat.com> Signed-off-by: Alexander Gordeev <agord...@redhat.com> --- lib/pci-testdev.c | 16 1 file changed, 16 insertions(+) diff --git a/lib/pci-testdev.c b/lib/pci-testdev.c index de97f82..dd6a5ac 100644 --- a/lib/pci-testdev.c +

[kvm-unit-tests PATCH 11/11] arm/pci: PCI testdev test flavour printing

2016-01-09 Thread Alexander Gordeev
Cc: Andrew Jones <drjo...@redhat.com> Signed-off-by: Alexander Gordeev <agord...@redhat.com> --- lib/pci-testdev.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/lib/pci-testdev.c b/lib/pci-testdev.c index dd6a5ac..f7f291f 100644 --- a/lib/pci-testdev.c +

Re: [kvm-unit-tests PATCH 01/11] arm/pci: Device tree PCI probing

2016-02-05 Thread Alexander Gordeev
On Wed, Jan 13, 2016 at 04:13:07PM +0100, Andrew Jones wrote: > > diff --git a/lib/pci-host-generic.h b/lib/pci-host-generic.h > > new file mode 100644 > > index 000..097ac2d > > --- /dev/null > > +++ b/lib/pci-host-generic.h > > @@ -0,0 +1,26 @@ > > +#ifndef PCI_HOST_GENERIC_H > > +#define

Re: [kvm-unit-tests PATCH 01/11] arm/pci: Device tree PCI probing

2016-01-28 Thread Alexander Gordeev
On Wed, Jan 13, 2016 at 04:13:07PM +0100, Andrew Jones wrote: > > + assert(dt_get_nr_cells(node, _root, _root) == 0); > > Sorry the starter code I sent you had statements inside asserts(). > We avoid those now, see commit 18ab6cadf Hmm.. the commit does not appear addressing the described in

Re: [kvm-unit-tests PATCH 02/11] arm/pci: PCI bus scanning

2016-02-02 Thread Alexander Gordeev
On Wed, Jan 13, 2016 at 04:58:46PM +0100, Andrew Jones wrote: > On Sat, Jan 09, 2016 at 01:22:49PM +0100, Alexander Gordeev wrote: > > Scan bus 0 and function 0 only for now > > > > Cc: Andrew Jones <drjo...@redhat.com> > > Signed-off-by: Alexander Gordeev <a