All of lore.kernel.org
 help / color / mirror / Atom feed
* GICv3 stride issue with many VCPUs
@ 2018-09-03 11:11 Christoffer Dall
  2018-09-03 11:39 ` Auger Eric
  0 siblings, 1 reply; 5+ messages in thread
From: Christoffer Dall @ 2018-09-03 11:11 UTC (permalink / raw)
  To: kvmarm; +Cc: Marc Zyngier

Hi,

I recently ran kvm-unit-tests on TX2, and I got an error from gicv3-ipi,
with this in the log:

  % cat logs/gicv3-ipi.log
  timeout -k 1s --foreground 90s ../src/qemu/build/aarch64-softmmu/qemu-system-aarch64 -nodefaults -machine virt,gic-version=host,accel=kvm -cpu host -device virtio-serial-device -device virtconsole,chardev=ctd -chardev testdev,id=ctd -device pci-testdev -display none -serial stdio -kernel arm/gic.flat -smp 224 -machine gic-version=3 -append ipi # -initrd /tmp/tmp.Xy3T5zjn9n
  lib/arm/gic-v3.c:25: assert failed: 0
          STACK:


Which is an assert in gicv3_set_redist_base().

I suspect this is related to the number of vcpus (112) and our GICv3 configuration.

Reporting it here in case anyone else is seeing this and wondering what's going on.


Thanks,

    Christoffer

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GICv3 stride issue with many VCPUs
  2018-09-03 11:11 GICv3 stride issue with many VCPUs Christoffer Dall
@ 2018-09-03 11:39 ` Auger Eric
  2018-09-03 12:31   ` Andrew Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Auger Eric @ 2018-09-03 11:39 UTC (permalink / raw)
  To: Christoffer Dall, kvmarm; +Cc: Marc Zyngier

Hi Christoffer,

On 09/03/2018 01:11 PM, Christoffer Dall wrote:
> Hi,
> 
> I recently ran kvm-unit-tests on TX2, and I got an error from gicv3-ipi,
> with this in the log:
> 
>   % cat logs/gicv3-ipi.log
>   timeout -k 1s --foreground 90s ../src/qemu/build/aarch64-softmmu/qemu-system-aarch64 -nodefaults -machine virt,gic-version=host,accel=kvm -cpu host -device virtio-serial-device -device virtconsole,chardev=ctd -chardev testdev,id=ctd -device pci-testdev -display none -serial stdio -kernel arm/gic.flat -smp 224 -machine gic-version=3 -append ipi # -initrd /tmp/tmp.Xy3T5zjn9n
>   lib/arm/gic-v3.c:25: assert failed: 0
>           STACK:

Quickly looking at gicv3_set_redist_base(), I noted a single contiguous
redistributor region seems to be used: void *ptr =
gicv3_data.redist_base[0];

Supporting more than 123 vcpus requires to use the 2 separate
redistributor regions exposed by lastest QEMU mach-virt. I suspect the
kvm-unit-test is not using both redist regions yet.

Thanks

Eric


> 
> 
> Which is an assert in gicv3_set_redist_base().
> 
> I suspect this is related to the number of vcpus (112) and our GICv3 configuration.
> 
> Reporting it here in case anyone else is seeing this and wondering what's going on.
> 
> 
> Thanks,
> 
>     Christoffer
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GICv3 stride issue with many VCPUs
  2018-09-03 11:39 ` Auger Eric
@ 2018-09-03 12:31   ` Andrew Jones
  2018-09-03 13:15     ` Christoffer Dall
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Jones @ 2018-09-03 12:31 UTC (permalink / raw)
  To: Auger Eric; +Cc: Marc Zyngier, kvmarm

On Mon, Sep 03, 2018 at 01:39:12PM +0200, Auger Eric wrote:
> Hi Christoffer,
> 
> On 09/03/2018 01:11 PM, Christoffer Dall wrote:
> > Hi,
> > 
> > I recently ran kvm-unit-tests on TX2, and I got an error from gicv3-ipi,
> > with this in the log:
> > 
> >   % cat logs/gicv3-ipi.log
> >   timeout -k 1s --foreground 90s ../src/qemu/build/aarch64-softmmu/qemu-system-aarch64 -nodefaults -machine virt,gic-version=host,accel=kvm -cpu host -device virtio-serial-device -device virtconsole,chardev=ctd -chardev testdev,id=ctd -device pci-testdev -display none -serial stdio -kernel arm/gic.flat -smp 224 -machine gic-version=3 -append ipi # -initrd /tmp/tmp.Xy3T5zjn9n
> >   lib/arm/gic-v3.c:25: assert failed: 0
> >           STACK:
> 
> Quickly looking at gicv3_set_redist_base(), I noted a single contiguous
> redistributor region seems to be used: void *ptr =
> gicv3_data.redist_base[0];
> 
> Supporting more than 123 vcpus requires to use the 2 separate
> redistributor regions exposed by lastest QEMU mach-virt. I suspect the
> kvm-unit-test is not using both redist regions yet.

Nope. I didn't have any hardware to test that on yet :-) I can write a
patch, though, and send it to Christoffer to test. Or, if Christoffer
doesn't mind hacking kvm-unit-tests, I'd be happy to review his patch :-)

Thanks,
drew

> 
> Thanks
> 
> Eric
> 
> 
> > 
> > 
> > Which is an assert in gicv3_set_redist_base().
> > 
> > I suspect this is related to the number of vcpus (112) and our GICv3 configuration.
> > 
> > Reporting it here in case anyone else is seeing this and wondering what's going on.
> > 
> > 
> > Thanks,
> > 
> >     Christoffer
> > 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GICv3 stride issue with many VCPUs
  2018-09-03 12:31   ` Andrew Jones
@ 2018-09-03 13:15     ` Christoffer Dall
  2018-09-03 14:54       ` Andrew Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Christoffer Dall @ 2018-09-03 13:15 UTC (permalink / raw)
  To: Andrew Jones; +Cc: Marc Zyngier, kvmarm

On Mon, Sep 03, 2018 at 02:31:19PM +0200, Andrew Jones wrote:
> On Mon, Sep 03, 2018 at 01:39:12PM +0200, Auger Eric wrote:
> > Hi Christoffer,
> > 
> > On 09/03/2018 01:11 PM, Christoffer Dall wrote:
> > > Hi,
> > > 
> > > I recently ran kvm-unit-tests on TX2, and I got an error from gicv3-ipi,
> > > with this in the log:
> > > 
> > >   % cat logs/gicv3-ipi.log
> > >   timeout -k 1s --foreground 90s ../src/qemu/build/aarch64-softmmu/qemu-system-aarch64 -nodefaults -machine virt,gic-version=host,accel=kvm -cpu host -device virtio-serial-device -device virtconsole,chardev=ctd -chardev testdev,id=ctd -device pci-testdev -display none -serial stdio -kernel arm/gic.flat -smp 224 -machine gic-version=3 -append ipi # -initrd /tmp/tmp.Xy3T5zjn9n
> > >   lib/arm/gic-v3.c:25: assert failed: 0
> > >           STACK:
> > 
> > Quickly looking at gicv3_set_redist_base(), I noted a single contiguous
> > redistributor region seems to be used: void *ptr =
> > gicv3_data.redist_base[0];
> > 
> > Supporting more than 123 vcpus requires to use the 2 separate
> > redistributor regions exposed by lastest QEMU mach-virt. I suspect the
> > kvm-unit-test is not using both redist regions yet.
> 
> Nope. I didn't have any hardware to test that on yet :-) I can write a
> patch, though, and send it to Christoffer to test. Or, if Christoffer
> doesn't mind hacking kvm-unit-tests, I'd be happy to review his patch :-)
> 

I'm quite caugt up at the moment, so if you could write a patch, I'll be
happy to test.

Thanks,

    Christoffer

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GICv3 stride issue with many VCPUs
  2018-09-03 13:15     ` Christoffer Dall
@ 2018-09-03 14:54       ` Andrew Jones
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Jones @ 2018-09-03 14:54 UTC (permalink / raw)
  To: Christoffer Dall; +Cc: Marc Zyngier, kvmarm

On Mon, Sep 03, 2018 at 03:15:07PM +0200, Christoffer Dall wrote:
> On Mon, Sep 03, 2018 at 02:31:19PM +0200, Andrew Jones wrote:
> > On Mon, Sep 03, 2018 at 01:39:12PM +0200, Auger Eric wrote:
> > > Hi Christoffer,
> > > 
> > > On 09/03/2018 01:11 PM, Christoffer Dall wrote:
> > > > Hi,
> > > > 
> > > > I recently ran kvm-unit-tests on TX2, and I got an error from gicv3-ipi,
> > > > with this in the log:
> > > > 
> > > >   % cat logs/gicv3-ipi.log
> > > >   timeout -k 1s --foreground 90s ../src/qemu/build/aarch64-softmmu/qemu-system-aarch64 -nodefaults -machine virt,gic-version=host,accel=kvm -cpu host -device virtio-serial-device -device virtconsole,chardev=ctd -chardev testdev,id=ctd -device pci-testdev -display none -serial stdio -kernel arm/gic.flat -smp 224 -machine gic-version=3 -append ipi # -initrd /tmp/tmp.Xy3T5zjn9n
> > > >   lib/arm/gic-v3.c:25: assert failed: 0
> > > >           STACK:
> > > 
> > > Quickly looking at gicv3_set_redist_base(), I noted a single contiguous
> > > redistributor region seems to be used: void *ptr =
> > > gicv3_data.redist_base[0];
> > > 
> > > Supporting more than 123 vcpus requires to use the 2 separate
> > > redistributor regions exposed by lastest QEMU mach-virt. I suspect the
> > > kvm-unit-test is not using both redist regions yet.
> > 
> > Nope. I didn't have any hardware to test that on yet :-) I can write a
> > patch, though, and send it to Christoffer to test. Or, if Christoffer
> > doesn't mind hacking kvm-unit-tests, I'd be happy to review his patch :-)
> > 
> 
> I'm quite caugt up at the moment, so if you could write a patch, I'll be
> happy to test.
>

No problem. I'll try to pull it together soon.

Thanks,
drew 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-09-03 14:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-03 11:11 GICv3 stride issue with many VCPUs Christoffer Dall
2018-09-03 11:39 ` Auger Eric
2018-09-03 12:31   ` Andrew Jones
2018-09-03 13:15     ` Christoffer Dall
2018-09-03 14:54       ` Andrew Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.