[linux-next:master] BUILD REGRESSION 088b9c375534d905a4d337c78db3b3bfbb52c4a0

2022-07-06 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 088b9c375534d905a4d337c78db3b3bfbb52c4a0 Add linux-next specific files for 20220706 Error/Warning reports: https://lore.kernel.org/linux-doc/202207070644.x48xoovs-...@intel.com Error/Warning

Re: [PATCH v2 4/4] virtio_test: enable indirection feature

2022-07-06 Thread Michael S. Tsirkin
On Thu, Jul 07, 2022 at 01:56:37PM +0800, Guo Zhi wrote: > On 2022/7/7 12:59, Michael S. Tsirkin wrote: > > On Thu, Jul 07, 2022 at 10:44:09AM +0800, Guo Zhi wrote: > > > Prior implementation don't use indirection feature because there is only > > > one descriptor for every io event, actually prior

Re: [PATCH v2 3/4] virtio_test: use random length scatterlists to test descriptor chain

2022-07-06 Thread Michael S. Tsirkin
On Thu, Jul 07, 2022 at 10:44:08AM +0800, Guo Zhi wrote: > Prior implementation only use one descriptor for each io event, which > does't test code of descriptor chain. More importantly, one descriptor > will not use indirect feature even indirect feature is specified. Use > random length scatterli

Re: [PATCH v2 2/4] virtio_test: move magic number in code as defined constant

2022-07-06 Thread Michael S. Tsirkin
On Thu, Jul 07, 2022 at 10:44:07AM +0800, Guo Zhi wrote: > We should avoid using magic numbers directly. Not necessarily. For repeated values - I guess. But this kind of thing: #define BUF_SIZE 1024 int buf_size = BUF_SIZE; brings no benefit IMHO. And this has cost - values are

Re: [PATCH v2 4/4] virtio_test: enable indirection feature

2022-07-06 Thread Michael S. Tsirkin
On Thu, Jul 07, 2022 at 10:44:09AM +0800, Guo Zhi wrote: > Prior implementation don't use indirection feature because there is only > one descriptor for every io event, actually prior implementation don't > support indirection because vhost can't translate and find the indirect > descriptors. This

Re: [PATCH v5 0/5] cover-letter: Simplify vfio_iommu_type1 attach/detach routine

2022-07-06 Thread Alex Williamson
On Wed, 6 Jul 2022 10:53:52 -0700 Nicolin Chen wrote: > On Wed, Jul 06, 2022 at 11:42:17AM -0600, Alex Williamson wrote: > > > On Fri, 1 Jul 2022 14:44:50 -0700 > > Nicolin Chen wrote: > > > > > This is a preparatory series for IOMMUFD v2 patches. It enforces error > > > code -EMEDIUMTYPE in

Re: [PATCH v5 0/5] cover-letter: Simplify vfio_iommu_type1 attach/detach routine

2022-07-06 Thread Alex Williamson
On Fri, 1 Jul 2022 14:44:50 -0700 Nicolin Chen wrote: > This is a preparatory series for IOMMUFD v2 patches. It enforces error > code -EMEDIUMTYPE in iommu_attach_device() and iommu_attach_group() when > an IOMMU domain and a device/group are incompatible. It also drops the > useless domain->ops

[PATCH AUTOSEL 4.9 2/5] virtio_mmio: Restore guest page size on resume

2022-07-06 Thread Sasha Levin
From: Stephan Gerhold [ Upstream commit e0c2ce8217955537dd5434baeba061f209797119 ] Virtio devices might lose their state when the VMM is restarted after a suspend to disk (hibernation) cycle. This means that the guest page size register must be restored for the virtio_mmio legacy interface, sinc

[PATCH AUTOSEL 4.9 1/5] virtio_mmio: Add missing PM calls to freeze/restore

2022-07-06 Thread Sasha Levin
From: Stephan Gerhold [ Upstream commit ed7ac37fde33ccd84e4bd2b9363c191f925364c7 ] Most virtio drivers provide freeze/restore callbacks to finish up device usage before suspend and to reinitialize the virtio device after resume. However, these callbacks are currently only called when using virti

[PATCH AUTOSEL 4.14 2/8] virtio_mmio: Restore guest page size on resume

2022-07-06 Thread Sasha Levin
From: Stephan Gerhold [ Upstream commit e0c2ce8217955537dd5434baeba061f209797119 ] Virtio devices might lose their state when the VMM is restarted after a suspend to disk (hibernation) cycle. This means that the guest page size register must be restored for the virtio_mmio legacy interface, sinc

[PATCH AUTOSEL 4.14 1/8] virtio_mmio: Add missing PM calls to freeze/restore

2022-07-06 Thread Sasha Levin
From: Stephan Gerhold [ Upstream commit ed7ac37fde33ccd84e4bd2b9363c191f925364c7 ] Most virtio drivers provide freeze/restore callbacks to finish up device usage before suspend and to reinitialize the virtio device after resume. However, these callbacks are currently only called when using virti

[PATCH AUTOSEL 4.19 2/8] virtio_mmio: Restore guest page size on resume

2022-07-06 Thread Sasha Levin
From: Stephan Gerhold [ Upstream commit e0c2ce8217955537dd5434baeba061f209797119 ] Virtio devices might lose their state when the VMM is restarted after a suspend to disk (hibernation) cycle. This means that the guest page size register must be restored for the virtio_mmio legacy interface, sinc

[PATCH AUTOSEL 4.19 1/8] virtio_mmio: Add missing PM calls to freeze/restore

2022-07-06 Thread Sasha Levin
From: Stephan Gerhold [ Upstream commit ed7ac37fde33ccd84e4bd2b9363c191f925364c7 ] Most virtio drivers provide freeze/restore callbacks to finish up device usage before suspend and to reinitialize the virtio device after resume. However, these callbacks are currently only called when using virti

[PATCH AUTOSEL 5.4 2/9] virtio_mmio: Restore guest page size on resume

2022-07-06 Thread Sasha Levin
From: Stephan Gerhold [ Upstream commit e0c2ce8217955537dd5434baeba061f209797119 ] Virtio devices might lose their state when the VMM is restarted after a suspend to disk (hibernation) cycle. This means that the guest page size register must be restored for the virtio_mmio legacy interface, sinc

[PATCH AUTOSEL 5.4 1/9] virtio_mmio: Add missing PM calls to freeze/restore

2022-07-06 Thread Sasha Levin
From: Stephan Gerhold [ Upstream commit ed7ac37fde33ccd84e4bd2b9363c191f925364c7 ] Most virtio drivers provide freeze/restore callbacks to finish up device usage before suspend and to reinitialize the virtio device after resume. However, these callbacks are currently only called when using virti

[PATCH AUTOSEL 5.10 02/11] virtio_mmio: Restore guest page size on resume

2022-07-06 Thread Sasha Levin
From: Stephan Gerhold [ Upstream commit e0c2ce8217955537dd5434baeba061f209797119 ] Virtio devices might lose their state when the VMM is restarted after a suspend to disk (hibernation) cycle. This means that the guest page size register must be restored for the virtio_mmio legacy interface, sinc

[PATCH AUTOSEL 5.10 01/11] virtio_mmio: Add missing PM calls to freeze/restore

2022-07-06 Thread Sasha Levin
From: Stephan Gerhold [ Upstream commit ed7ac37fde33ccd84e4bd2b9363c191f925364c7 ] Most virtio drivers provide freeze/restore callbacks to finish up device usage before suspend and to reinitialize the virtio device after resume. However, these callbacks are currently only called when using virti

[PATCH AUTOSEL 5.15 06/18] virtio_mmio: Restore guest page size on resume

2022-07-06 Thread Sasha Levin
From: Stephan Gerhold [ Upstream commit e0c2ce8217955537dd5434baeba061f209797119 ] Virtio devices might lose their state when the VMM is restarted after a suspend to disk (hibernation) cycle. This means that the guest page size register must be restored for the virtio_mmio legacy interface, sinc

[PATCH AUTOSEL 5.15 04/18] vduse: Tie vduse mgmtdev and its device

2022-07-06 Thread Sasha Levin
From: Parav Pandit [ Upstream commit 0e0348ac3f0a6e6606f1aa5acb1803ada913aa3d ] vduse devices are not backed by any real devices such as PCI. Hence it doesn't have any parent device linked to it. Kernel driver model in [1] suggests to avoid an empty device release callback. Hence tie the mgmtd

[PATCH AUTOSEL 5.15 05/18] virtio_mmio: Add missing PM calls to freeze/restore

2022-07-06 Thread Sasha Levin
From: Stephan Gerhold [ Upstream commit ed7ac37fde33ccd84e4bd2b9363c191f925364c7 ] Most virtio drivers provide freeze/restore callbacks to finish up device usage before suspend and to reinitialize the virtio device after resume. However, these callbacks are currently only called when using virti

[PATCH AUTOSEL 5.15 03/18] vdpa/mlx5: Initialize CVQ vringh only once

2022-07-06 Thread Sasha Levin
From: Eli Cohen [ Upstream commit ace9252446ec615cd79a5f77d90edb25c0b9d024 ] Currently, CVQ vringh is initialized inside setup_virtqueues() which is called every time a memory update is done. This is undesirable since it resets all the context of the vring, including the available and used indic

[PATCH AUTOSEL 5.18 07/22] virtio_mmio: Restore guest page size on resume

2022-07-06 Thread Sasha Levin
From: Stephan Gerhold [ Upstream commit e0c2ce8217955537dd5434baeba061f209797119 ] Virtio devices might lose their state when the VMM is restarted after a suspend to disk (hibernation) cycle. This means that the guest page size register must be restored for the virtio_mmio legacy interface, sinc

[PATCH AUTOSEL 5.18 06/22] virtio_mmio: Add missing PM calls to freeze/restore

2022-07-06 Thread Sasha Levin
From: Stephan Gerhold [ Upstream commit ed7ac37fde33ccd84e4bd2b9363c191f925364c7 ] Most virtio drivers provide freeze/restore callbacks to finish up device usage before suspend and to reinitialize the virtio device after resume. However, these callbacks are currently only called when using virti

[PATCH AUTOSEL 5.18 04/22] vduse: Tie vduse mgmtdev and its device

2022-07-06 Thread Sasha Levin
From: Parav Pandit [ Upstream commit 0e0348ac3f0a6e6606f1aa5acb1803ada913aa3d ] vduse devices are not backed by any real devices such as PCI. Hence it doesn't have any parent device linked to it. Kernel driver model in [1] suggests to avoid an empty device release callback. Hence tie the mgmtd

[PATCH AUTOSEL 5.18 03/22] vdpa/mlx5: Initialize CVQ vringh only once

2022-07-06 Thread Sasha Levin
From: Eli Cohen [ Upstream commit ace9252446ec615cd79a5f77d90edb25c0b9d024 ] Currently, CVQ vringh is initialized inside setup_virtqueues() which is called every time a memory update is done. This is undesirable since it resets all the context of the vring, including the available and used indic

Re: [PATCH 31/36] cpuidle,acpi: Make noinstr clean

2022-07-06 Thread Rafael J. Wysocki
On Wed, Jun 8, 2022 at 4:47 PM Peter Zijlstra wrote: > > vmlinux.o: warning: objtool: io_idle+0xc: call to __inb.isra.0() leaves > .noinstr.text section > vmlinux.o: warning: objtool: acpi_idle_enter+0xfe: call to num_online_cpus() > leaves .noinstr.text section > vmlinux.o: warning: objtool: ac

Re: [PATCH 20/36] arch/idle: Change arch_cpu_idle() IRQ behaviour

2022-07-06 Thread Rafael J. Wysocki
On Wed, Jun 8, 2022 at 4:46 PM Peter Zijlstra wrote: > > Current arch_cpu_idle() is called with IRQs disabled, but will return > with IRQs enabled. > > However, the very first thing the generic code does after calling > arch_cpu_idle() is raw_local_irq_disable(). This means that > architectures th

Re: [PATCH 18/36] cpuidle: Annotate poll_idle()

2022-07-06 Thread Rafael J. Wysocki
On Wed, Jun 8, 2022 at 4:46 PM Peter Zijlstra wrote: > > The __cpuidle functions will become a noinstr class, as such they need > explicit annotations. > > Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Rafael J. Wysocki > --- > drivers/cpuidle/poll_state.c |6 +- > 1 file changed

Re: [PATCH 17/36] acpi_idle: Remove tracing

2022-07-06 Thread Rafael J. Wysocki
On Wed, Jun 8, 2022 at 4:47 PM Peter Zijlstra wrote: > > All the idle routines are called with RCU disabled, as such there must > not be any tracing inside. > > Signed-off-by: Peter Zijlstra (Intel) This actually does some additional code duplication cleanup which would be good to mention in the

Re: [PATCH 05/36] cpuidle: Move IRQ state validation

2022-07-06 Thread Rafael J. Wysocki
On Wed, Jun 8, 2022 at 4:47 PM Peter Zijlstra wrote: > > Make cpuidle_enter_state() consistent with the s2idle variant and > verify ->enter() always returns with interrupts disabled. > > Signed-off-by: Peter Zijlstra (Intel) > --- > drivers/cpuidle/cpuidle.c | 10 +- > 1 file changed,

Re: [PATCH 03/36] cpuidle/poll: Ensure IRQ state is invariant

2022-07-06 Thread Rafael J. Wysocki
On Wed, Jun 8, 2022 at 4:47 PM Peter Zijlstra wrote: > > cpuidle_state::enter() methods should be IRQ invariant > > Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Rafael J. Wysocki > --- > drivers/cpuidle/poll_state.c |4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > --- a

Re: [PATCH RESEND v5 1/5] iommu: Refactor iommu_group_store_type()

2022-07-06 Thread Will Deacon
On Wed, Jul 06, 2022 at 01:03:44PM +0100, John Garry wrote: > On 06/07/2022 13:00, Will Deacon wrote: > > On Mon, Apr 04, 2022 at 07:27:10PM +0800, John Garry wrote: > > > Function iommu_group_store_type() supports changing the default domain > > > of an IOMMU group. > > > > > > Many conditions ne

Re: [PATCH RESEND v5 2/5] iova: Allow rcache range upper limit to be flexible

2022-07-06 Thread Will Deacon
On Thu, Apr 07, 2022 at 03:52:53PM +0800, Leizhen (ThunderTown) wrote: > On 2022/4/4 19:27, John Garry wrote: > > Some low-level drivers may request DMA mappings whose IOVA length exceeds > > that of the current rcache upper limit. > > > > This means that allocations for those IOVAs will never be

Re: [PATCH RESEND v5 2/5] iova: Allow rcache range upper limit to be flexible

2022-07-06 Thread Will Deacon
On Mon, Apr 04, 2022 at 07:27:11PM +0800, John Garry wrote: > Some low-level drivers may request DMA mappings whose IOVA length exceeds > that of the current rcache upper limit. > > This means that allocations for those IOVAs will never be cached, and > always must be allocated and freed from the

Re: [PATCH RESEND v5 1/5] iommu: Refactor iommu_group_store_type()

2022-07-06 Thread Will Deacon
On Mon, Apr 04, 2022 at 07:27:10PM +0800, John Garry wrote: > Function iommu_group_store_type() supports changing the default domain > of an IOMMU group. > > Many conditions need to be satisfied and steps taken for this action to be > successful. > > Satisfying these conditions and steps will be

Re: [PATCH v7 7/9] drm/virtio: Improve DMA API usage for shmem BOs

2022-07-06 Thread Laszlo Ersek
Hi Emil, On 07/05/22 22:56, Emil Velikov wrote: > On 2022/07/05, Dmitry Osipenko wrote: >> On 7/5/22 18:45, Gerd Hoffmann wrote: >>> Hi, >>> > Also note that pci is not the only virtio transport we have. The VirtIO indeed has other transports, but only PCI is really supported

Re: [PATCH 19/36] objtool/idle: Validate __cpuidle code as noinstr

2022-07-06 Thread Geert Uytterhoeven
On Wed, Jun 8, 2022 at 4:46 PM Peter Zijlstra wrote: > Idle code is very like entry code in that RCU isn't available. As > such, add a little validation. > > Signed-off-by: Peter Zijlstra (Intel) > arch/m68k/kernel/vmlinux-nommu.lds |1 - > arch/m68k/kernel/vmlinux-std.lds |1 - >

Re: [PATCH v2 0/5] VDUSE: Support registering userspace memory as bounce buffer

2022-07-06 Thread Jason Wang
On Wed, Jul 6, 2022 at 1:05 PM Xie Yongji wrote: > > Hi all, > > This series introduces some new ioctls: VDUSE_IOTLB_GET_INFO, > VDUSE_IOTLB_REG_UMEM and VDUSE_IOTLB_DEREG_UMEM to support > registering and de-registering userspace memory for IOTLB > as bounce buffer in virtio-vdpa case. > > The VD

Re: [PATCH v7 7/9] drm/virtio: Improve DMA API usage for shmem BOs

2022-07-06 Thread Gerd Hoffmann
Hi, > Gerd, thank you very much! It's was indeed unclear to me how to test the > MMIO GPU, but yours variant with microvm works! I was looking for trying > aarch64 in the past, but it also was unclear how to do it since there is > no DT support for the VirtIO-GPU, AFAICS. aarch64 uses acpi by d