eventfd: simplify signal helpers
Subsystems (40)
Christian Brauner
maintainerv2 cover eventfd: simplify signal helpers
Hey everyone,
This simplifies the eventfd_signal() and eventfd_signal_mask() helpers significantly. They can be made void and not take any unnecessary arguments.
I've added a few more simplifications based on Sean's suggestion.
Changes in v2:
- further simplify helpers
- Link to v1: https://lore.kernel.org/r/[email protected]
---
---
base-commit: b85ea95d086471afb4ad062012a4d73cd328fa86
change-id: 20230713-vfs-eventfd-signal-0b0d167ad6ec
Christian Brauner
maintainerPATCH v2 1/4 i915: make inject_virtual_interrupt() void
The single caller of inject_virtual_interrupt() ignores the return value anyway. This allows us to simplify eventfd_signal() in follow-up patches.
--- drivers/gpu/drm/i915/gvt/interrupt.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/gvt/interrupt.c +7 -7
@@ -422,7 +422,7 @@ static void init_irq_map(struct intel_gvt_irq *irq)#define MSI_CAP_DATA (offset) (offset + 8)#define MSI_CAP_EN 0x1 -static int inject_virtual_interrupt (struct intel_vgpu *vgpu) +static void inject_virtual_interrupt (struct intel_vgpu *vgpu) {unsigned long offset = vgpu->gvt->device_info.msi_cap_offset;u16 control, data;
@@ -434,10 +434,10 @@ static int inject_virtual_interrupt(struct intel_vgpu *vgpu)/* Do not generate MSI if MSIEN is disabled */ if (!(control &MSI_CAP_EN )) -return 0 ; +return ;if (WARN (control &GENMASK (15 ,1 ),"only support one MSI format\n" )) -return -EINVAL ; +return ;trace_inject_msi (vgpu->id, addr, data);
@@ -451,10 +451,10 @@ static int inject_virtual_interrupt(struct intel_vgpu *vgpu)* returned and don't inject interrupt into guest. */ if (!test_bit (INTEL_VGPU_STATUS_ATTACHED , vgpu->status)) -return -ESRCH ; -if (vgpu->msi_trigger &&eventfd_signal (vgpu->msi_trigger,1 ) !=1 ) -return -EFAULT ; -return 0 ; +return ; +if (!vgpu->msi_trigger) +return ; +eventfd_signal (vgpu->msi_trigger,1 ); } static void propagate_event(struct intel_gvt_irq *irq,
Signature · 1 line
2.42.0
Re: [PATCH v2 1/4] i915: make inject_virtual_interrupt() void
Quoted 5 lines · Christian Brauner
The single caller of
inject_virtual_interrupt()ignores the return value anyway. This allows us to simplifyeventfd_signal()in follow-up patches.Signed-off-by Christian Brauner <[email protected]>
Looks good. Feel free to add:
Honza
Quoted 49 lines
--- drivers/gpu/drm/i915/gvt/interrupt.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/gvt/interrupt.c +7
-7@@ -422,7 +422,7 @@ static void init_irq_map(struct intel_gvt_irq *irq)#define MSI_CAP_DATA (offset) (offset + 8)#define MSI_CAP_EN 0x1 -static int inject_virtual_interrupt (struct intel_vgpu *vgpu) +static void inject_virtual_interrupt (struct intel_vgpu *vgpu) {unsigned long offset = vgpu->gvt->device_info.msi_cap_offset;u16 control, data;@@ -434,10 +434,10 @@ static int inject_virtual_interrupt(struct intel_vgpu *vgpu)/* Do not generate MSI if MSIEN is disabled */ if (!(control &MSI_CAP_EN )) -return 0 ; +return ;if (WARN (control &GENMASK (15 ,1 ),"only support one MSI format\n" )) -return -EINVAL ; +return ;trace_inject_msi (vgpu->id, addr, data);@@ -451,10 +451,10 @@ static int inject_virtual_interrupt(struct intel_vgpu *vgpu)* returned and don't inject interrupt into guest. */ if (!test_bit (INTEL_VGPU_STATUS_ATTACHED , vgpu->status)) -return -ESRCH ; -if (vgpu->msi_trigger &&eventfd_signal (vgpu->msi_trigger,1 ) !=1 ) -return -EFAULT ; -return 0 ; +return ; +if (!vgpu->msi_trigger) +return ; +eventfd_signal (vgpu->msi_trigger,1 ); } static void propagate_event(struct intel_gvt_irq *irq,Signature · 2 lines
-- 2.42.0
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Re: [PATCH v2 1/4] i915: make inject_virtual_interrupt() void
In reply to Christian BraunerQuoted 38 lines · Christian Brauner
The single caller of
inject_virtual_interrupt()ignores the return value anyway. This allows us to simplifyeventfd_signal()in follow-up patches.Signed-off-by Christian Brauner <[email protected]>--- drivers/gpu/drm/i915/gvt/interrupt.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/gvt/interrupt.c +3
-3@@ -422,7 +422,7 @@ static void init_irq_map(struct intel_gvt_irq *irq)#define MSI_CAP_DATA (offset) (offset + 8)#define MSI_CAP_EN 0x1 -static int inject_virtual_interrupt (struct intel_vgpu *vgpu) +static void inject_virtual_interrupt (struct intel_vgpu *vgpu) {unsigned long offset = vgpu->gvt->device_info.msi_cap_offset;u16 control, data;@@ -434,10 +434,10 @@ static int inject_virtual_interrupt(struct intel_vgpu *vgpu)/* Do not generate MSI if MSIEN is disabled */ if (!(control &MSI_CAP_EN )) -return 0 ; +return ;if (WARN (control &GENMASK (15 ,1 ),"only support one MSI format\n" )) -return -EINVAL ; +return ;trace_inject_msi (vgpu->id, addr, data);@@ -451,10 +451,10 @@ static int inject_virtual_interrupt(struct intel_vgpu *vgpu)* returned and don't inject interrupt into guest. */
drivers/gpu/drm/i915/gvt/interrupt.c static int inject_virtual_interrupt(struct intel_vgpu *vgpu) · line 458
Quoted 10 lines
drivers/gpu/drm/i915/gvt/interrupt.c +4
-4if (!test_bit (INTEL_VGPU_STATUS_ATTACHED , vgpu->status)) -return -ESRCH ; -if (vgpu->msi_trigger &&eventfd_signal (vgpu->msi_trigger,1 ) !=1 ) -return -EFAULT ; -return 0 ; +return ; +if (!vgpu->msi_trigger) +return ; +eventfd_signal (vgpu->msi_trigger,1 ); }
I think it's a little simpler to write as
if (vgpu->msi_trigger)
eventfd_signal(vgpu->msi_trigger, 1);Looks fine with me.
Thanks!
Quoted 6 lines
drivers/gpu/drm/i915/gvt/interrupt.c +0
-0static void propagate_event(struct intel_gvt_irq *irq,Signature · 1 line
2.42.0
Christian Brauner
maintainerRe: [PATCH v2 1/4] i915: make inject_virtual_interrupt() void
Quoted 8 lines
drivers/gpu/drm/i915/gvt/interrupt.c static int inject_virtual_interrupt(struct intel_vgpu *vgpu) · line 458
Quoted 4 lines
drivers/gpu/drm/i915/gvt/interrupt.c +3
-0+if (!vgpu->msi_trigger) +return ; +eventfd_signal (vgpu->msi_trigger,1 ); }I think it's a little simpler to write as
if (vgpu->msi_trigger) eventfd_signal(vgpu->msi_trigger, 1);
Good point. I folded that suggestion into the patch.
Christian Brauner
maintainerPATCH v2 2/4 eventfd: simplify eventfd_signal()
In reply to Christian BraunerEver since the evenfd type was introduced back in 2007 in commit e1ad7468c77d ("signal/timer/event: eventfd core") the eventfd_signal() function only ever passed 1 as a value for @n. There's no point in keeping that additional argument.
--- arch/x86/kvm/hyperv.c | 2 +- arch/x86/kvm/xen.c | 2 +- drivers/accel/habanalabs/common/device.c | 2 +- drivers/fpga/dfl.c | 2 +- drivers/gpu/drm/drm_syncobj.c | 6 +++--- drivers/gpu/drm/i915/gvt/interrupt.c | 2 +- drivers/infiniband/hw/mlx5/devx.c | 2 +- drivers/misc/ocxl/file.c | 2 +- drivers/s390/cio/vfio_ccw_chp.c | 2 +- drivers/s390/cio/vfio_ccw_drv.c | 4 ++-- drivers/s390/cio/vfio_ccw_ops.c | 6 +++--- drivers/s390/crypto/vfio_ap_ops.c | 2 +- drivers/usb/gadget/function/f_fs.c | 4 ++-- drivers/vdpa/vdpa_user/vduse_dev.c | 6 +++--- drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c | 2 +- drivers/vfio/pci/vfio_pci_core.c | 6 +++--- drivers/vfio/pci/vfio_pci_intrs.c | 12 ++++++------ drivers/vfio/platform/vfio_platform_irq.c | 4 ++-- drivers/vhost/vdpa.c | 4 ++-- drivers/vhost/vhost.c | 10 +++++----- drivers/vhost/vhost.h | 2 +- drivers/virt/acrn/ioeventfd.c | 2 +- drivers/xen/privcmd.c | 2 +- fs/aio.c | 2 +- fs/eventfd.c | 9 +++------ include/linux/eventfd.h | 4 ++-- mm/memcontrol.c | 10 +++++----- mm/vmpressure.c | 2 +- samples/vfio-mdev/mtty.c | 4 ++-- virt/kvm/eventfd.c | 4 ++-- 30 files changed, 60 insertions(+), 63 deletions(-)
arch/x86/kvm/hyperv.c +1 -1
@@ -2388,7 +2388,7 @@ static u16 kvm_hvcall_signal_event(struct kvm_vcpu *vcpu, struct kvm_hv_hcall *hif (!eventfd)return HV_STATUS_INVALID_PORT_ID ; -eventfd_signal (eventfd,1 ); +eventfd_signal (eventfd);return HV_STATUS_SUCCESS ; }
arch/x86/kvm/xen.c +1 -1
@@ -2088,7 +2088,7 @@ static bool kvm_xen_hcall_evtchn_send(struct kvm_vcpu *vcpu, u64 param, u64 *r)if (ret <0 && ret != -ENOTCONN )return false; }else { -eventfd_signal (evtchnfd->deliver.eventfd.ctx,1 ); +eventfd_signal (evtchnfd->deliver.eventfd.ctx); } *r =0 ;
drivers/accel/habanalabs/common/device.c +1 -1
@@ -2044,7 +2044,7 @@ static void hl_notifier_event_send(struct hl_notifier_event *notifier_event, u64 notifier_event->events_mask |= event_mask;if (notifier_event->eventfd) -eventfd_signal (notifier_event->eventfd,1 ); +eventfd_signal (notifier_event->eventfd);mutex_unlock (¬ifier_event->lock); }
drivers/fpga/dfl.c +1 -1
@@ -1872,7 +1872,7 @@ static irqreturn_t dfl_irq_handler(int irq, void *arg) {struct eventfd_ctx *trigger = arg; -eventfd_signal (trigger,1 ); +eventfd_signal (trigger);return IRQ_HANDLED ; }
drivers/gpu/drm/drm_syncobj.c +3 -3
@@ -1365,7 +1365,7 @@ static void syncobj_eventfd_entry_fence_func(struct dma_fence *fence,struct syncobj_eventfd_entry *entry = container_of(cb, struct syncobj_eventfd_entry, fence_cb); -eventfd_signal (entry->ev_fd_ctx,1 ); +eventfd_signal (entry->ev_fd_ctx);syncobj_eventfd_entry_free (entry); }
@@ -1388,13 +1388,13 @@ syncobj_eventfd_entry_func(struct drm_syncobj *syncobj, entry->fence = fence;if (entry->flags &DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE ) { -eventfd_signal (entry->ev_fd_ctx,1 ); +eventfd_signal (entry->ev_fd_ctx);syncobj_eventfd_entry_free (entry); }else { ret =dma_fence_add_callback (fence, &entry->fence_cb, syncobj_eventfd_entry_fence_func);if (ret == -ENOENT ) { -eventfd_signal (entry->ev_fd_ctx,1 ); +eventfd_signal (entry->ev_fd_ctx);syncobj_eventfd_entry_free (entry); } }
drivers/gpu/drm/i915/gvt/interrupt.c +1 -1
@@ -454,7 +454,7 @@ static void inject_virtual_interrupt(struct intel_vgpu *vgpu)return ;if (!vgpu->msi_trigger)return ; -eventfd_signal (vgpu->msi_trigger,1 ); +eventfd_signal (vgpu->msi_trigger); } static void propagate_event(struct intel_gvt_irq *irq,
drivers/infiniband/hw/mlx5/devx.c +1 -1
@@ -2498,7 +2498,7 @@ static void dispatch_event_fd(struct list_head *fd_list,list_for_each_entry_rcu (item, fd_list, xa_list) {if (item->eventfd) -eventfd_signal (item->eventfd,1 ); +eventfd_signal (item->eventfd);else deliver_event (item, data); }
drivers/misc/ocxl/file.c +1 -1
@@ -184,7 +184,7 @@ static irqreturn_t irq_handler(void *private) {struct eventfd_ctx *ev_ctx = private; -eventfd_signal (ev_ctx,1 ); +eventfd_signal (ev_ctx);return IRQ_HANDLED ; }
drivers/s390/cio/vfio_ccw_chp.c +1 -1
@@ -115,7 +115,7 @@ static ssize_t vfio_ccw_crw_region_read(struct vfio_ccw_private *private,/* Notify the guest if more CRWs are on our queue */ if (!list_empty (&private->crw) && private->crw_trigger) -eventfd_signal (private->crw_trigger,1 ); +eventfd_signal (private->crw_trigger);return ret; }
drivers/s390/cio/vfio_ccw_drv.c +2 -2
@@ -112,7 +112,7 @@ void vfio_ccw_sch_io_todo(struct work_struct *work) private->state =VFIO_CCW_STATE_IDLE ;if (private->io_trigger) -eventfd_signal (private->io_trigger,1 ); +eventfd_signal (private->io_trigger); }void vfio_ccw_crw_todo (struct work_struct *work)
@@ -122,7 +122,7 @@ void vfio_ccw_crw_todo(struct work_struct *work) private = container_of(work, struct vfio_ccw_private, crw_work);if (!list_empty (&private->crw) && private->crw_trigger) -eventfd_signal (private->crw_trigger,1 ); +eventfd_signal (private->crw_trigger); }/*
drivers/s390/cio/vfio_ccw_ops.c +3 -3
@@ -421,7 +421,7 @@ static int vfio_ccw_mdev_set_irqs(struct vfio_ccw_private *private,case VFIO_IRQ_SET_DATA_NONE : {if (*ctx) -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx);return 0 ; }case VFIO_IRQ_SET_DATA_BOOL :
@@ -432,7 +432,7 @@ static int vfio_ccw_mdev_set_irqs(struct vfio_ccw_private *private,return -EFAULT ;if (trigger && *ctx) -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx);return 0 ; }case VFIO_IRQ_SET_DATA_EVENTFD :
@@ -612,7 +612,7 @@ static void vfio_ccw_mdev_request(struct vfio_device *vdev, unsigned int count)"Relaying device request to user (#%u)\n" , count); -eventfd_signal (private->req_trigger,1 ); +eventfd_signal (private->req_trigger); }else if (count ==0 ) {dev_notice (dev,"No device request channel registered, blocked until released by user\n" );
drivers/s390/crypto/vfio_ap_ops.c +1 -1
@@ -1794,7 +1794,7 @@ static void vfio_ap_mdev_request(struct vfio_device *vdev, unsigned int count)"Relaying device request to user (#%u)\n" , count); -eventfd_signal (matrix_mdev->req_trigger,1 ); +eventfd_signal (matrix_mdev->req_trigger); }else if (count ==0 ) {dev_notice (dev,"No device request registered, blocked until released by user\n" );
drivers/usb/gadget/function/f_fs.c +2 -2
@@ -831,7 +831,7 @@ static void ffs_user_copy_worker(struct work_struct *work) io_data->kiocb->ki_complete (io_data->kiocb, ret);if (io_data->ffs->ffs_eventfd && !kiocb_has_eventfd) -eventfd_signal (io_data->ffs->ffs_eventfd,1 ); +eventfd_signal (io_data->ffs->ffs_eventfd);if (io_data->read)kfree (io_data->to_free);
@@ -2738,7 +2738,7 @@ static void __ffs_event_add(struct ffs_data *ffs, ffs->ev.types[ffs->ev.count++] = type;wake_up_locked (&ffs->ev.waitq);if (ffs->ffs_eventfd) -eventfd_signal (ffs->ffs_eventfd,1 ); +eventfd_signal (ffs->ffs_eventfd); } static void ffs_event_add(struct ffs_data *ffs,
drivers/vdpa/vdpa_user/vduse_dev.c +3 -3
@@ -493,7 +493,7 @@ static void vduse_vq_kick(struct vduse_virtqueue *vq) goto unlock;if (vq->kickfd) -eventfd_signal (vq->kickfd,1 ); +eventfd_signal (vq->kickfd);else vq->kicked = true; unlock:
@@ -911,7 +911,7 @@ static int vduse_kickfd_setup(struct vduse_dev *dev,eventfd_ctx_put (vq->kickfd); vq->kickfd = ctx;if (vq->ready && vq->kicked && vq->kickfd) { -eventfd_signal (vq->kickfd,1 ); +eventfd_signal (vq->kickfd); vq->kicked = false; }spin_unlock (&vq->kick_lock);
@@ -960,7 +960,7 @@ static bool vduse_vq_signal_irqfd(struct vduse_virtqueue *vq)spin_lock_irq (&vq->irq_lock);if (vq->ready && vq->cb.trigger) { -eventfd_signal (vq->cb.trigger,1 ); +eventfd_signal (vq->cb.trigger); signal = true; }spin_unlock_irq (&vq->irq_lock);
drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c +1 -1
@@ -54,7 +54,7 @@ static irqreturn_t vfio_fsl_mc_irq_handler(int irq_num, void *arg) {struct vfio_fsl_mc_irq *mc_irq = (struct vfio_fsl_mc_irq *)arg; -eventfd_signal (mc_irq->trigger,1 ); +eventfd_signal (mc_irq->trigger);return IRQ_HANDLED ; }
drivers/vfio/pci/vfio_pci_core.c +3 -3
@@ -443,7 +443,7 @@ static int vfio_pci_core_runtime_resume(struct device *dev)*/ down_write (&vdev->memory_lock);if (vdev->pm_wake_eventfd_ctx) { -eventfd_signal (vdev->pm_wake_eventfd_ctx,1 ); +eventfd_signal (vdev->pm_wake_eventfd_ctx);__vfio_pci_runtime_pm_exit (vdev); }up_write (&vdev->memory_lock);
@@ -1883,7 +1883,7 @@ void vfio_pci_core_request(struct vfio_device *core_vdev, unsigned int count)pci_notice_ratelimited (pdev,"Relaying device request to user (#%u)\n" , count); -eventfd_signal (vdev->req_trigger,1 ); +eventfd_signal (vdev->req_trigger); }else if (count ==0 ) {pci_warn (pdev,"No device request channel registered, blocked until released by user\n" );
@@ -2302,7 +2302,7 @@ pci_ers_result_t vfio_pci_core_aer_err_detected(struct pci_dev *pdev,mutex_lock (&vdev->igate);if (vdev->err_trigger) -eventfd_signal (vdev->err_trigger,1 ); +eventfd_signal (vdev->err_trigger);mutex_unlock (&vdev->igate);
drivers/vfio/pci/vfio_pci_intrs.c +6 -6
@@ -94,7 +94,7 @@ static void vfio_send_intx_eventfd(void *opaque, void *unused) ctx =vfio_irq_ctx_get (vdev,0 );if (WARN_ON_ONCE (!ctx))return ; -eventfd_signal (ctx->trigger,1 ); +eventfd_signal (ctx->trigger); } }
@@ -342,7 +342,7 @@ static irqreturn_t vfio_msihandler(int irq, void *arg) {struct eventfd_ctx *trigger = arg; -eventfd_signal (trigger,1 ); +eventfd_signal (trigger);return IRQ_HANDLED ; }
@@ -689,11 +689,11 @@ static int vfio_pci_set_msi_trigger(struct vfio_pci_core_device *vdev,if (!ctx)continue ;if (flags &VFIO_IRQ_SET_DATA_NONE ) { -eventfd_signal (ctx->trigger,1 ); +eventfd_signal (ctx->trigger); }else if (flags &VFIO_IRQ_SET_DATA_BOOL ) {uint8_t *bools = data;if (bools[i - start]) -eventfd_signal (ctx->trigger,1 ); +eventfd_signal (ctx->trigger); } }return 0 ;
@@ -707,7 +707,7 @@ static int vfio_pci_set_ctx_trigger_single(struct eventfd_ctx **ctx,if (flags &VFIO_IRQ_SET_DATA_NONE ) {if (*ctx) {if (count) { -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx); }else {eventfd_ctx_put (*ctx); *ctx =NULL ;
@@ -722,7 +722,7 @@ static int vfio_pci_set_ctx_trigger_single(struct eventfd_ctx **ctx, trigger = *(uint8_t *)data;if (trigger && *ctx) -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx);return 0 ; }else if (flags &VFIO_IRQ_SET_DATA_EVENTFD ) {
drivers/vfio/platform/vfio_platform_irq.c +2 -2
@@ -155,7 +155,7 @@ static irqreturn_t vfio_automasked_irq_handler(int irq, void *dev_id)spin_unlock_irqrestore (&irq_ctx->lock, flags);if (ret ==IRQ_HANDLED ) -eventfd_signal (irq_ctx->trigger,1 ); +eventfd_signal (irq_ctx->trigger);return ret; }
@@ -164,7 +164,7 @@ static irqreturn_t vfio_irq_handler(int irq, void *dev_id) {struct vfio_platform_irq *irq_ctx = dev_id; -eventfd_signal (irq_ctx->trigger,1 ); +eventfd_signal (irq_ctx->trigger);return IRQ_HANDLED ; }
drivers/vhost/vdpa.c +2 -2
@@ -178,7 +178,7 @@ static irqreturn_t vhost_vdpa_virtqueue_cb(void *private)struct eventfd_ctx *call_ctx = vq->call_ctx.ctx;if (call_ctx) -eventfd_signal (call_ctx,1 ); +eventfd_signal (call_ctx);return IRQ_HANDLED ; }
@@ -189,7 +189,7 @@ static irqreturn_t vhost_vdpa_config_cb(void *private)struct eventfd_ctx *config_ctx = v->config_ctx;if (config_ctx) -eventfd_signal (config_ctx,1 ); +eventfd_signal (config_ctx);return IRQ_HANDLED ; }
drivers/vhost/vhost.c +5 -5
@@ -2248,7 +2248,7 @@ int vhost_log_write(struct vhost_virtqueue *vq, struct vhost_log *log, len -= l;if (!len) {if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx);return 0 ; } }
@@ -2271,7 +2271,7 @@ static int vhost_update_used_flags(struct vhost_virtqueue *vq)log_used (vq, (used - (void __user *)vq->used),sizeof vq->used->flags);if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx); }return 0 ; }
@@ -2289,7 +2289,7 @@ static int vhost_update_avail_event(struct vhost_virtqueue *vq)log_used (vq, (used - (void __user *)vq->used),sizeof *vhost_avail_event (vq));if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx); }return 0 ; }
@@ -2715,7 +2715,7 @@ int vhost_add_used_n(struct vhost_virtqueue *vq, struct vring_used_elem *heads,log_used (vq, offsetof(struct vring_used , idx),sizeof vq->used->idx);if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx); }return r; }
@@ -2763,7 +2763,7 @@ void vhost_signal(struct vhost_dev *dev, struct vhost_virtqueue *vq) {/* Signal the Guest tell them we used something up. */ if (vq->call_ctx.ctx &&vhost_notify (dev, vq)) -eventfd_signal (vq->call_ctx.ctx,1 ); +eventfd_signal (vq->call_ctx.ctx); }EXPORT_SYMBOL_GPL (vhost_signal);
drivers/vhost/vhost.h +1 -1
@@ -249,7 +249,7 @@ void vhost_iotlb_map_free(struct vhost_iotlb *iotlb,#define vq_err (vq, fmt, ...) do { \ pr_debug(pr_fmt(fmt), ##__VA_ARGS__); \ if ((vq)->error_ctx) \ - eventfd_signal((vq)->error_ctx, 1);\ + eventfd_signal((vq)->error_ctx);\ } while (0)enum {
drivers/virt/acrn/ioeventfd.c +1 -1
@@ -223,7 +223,7 @@ static int acrn_ioeventfd_handler(struct acrn_ioreq_client *client,mutex_lock (&client->vm->ioeventfds_lock); p =hsm_ioeventfd_match (client->vm, addr, val, size, req->type);if (p) -eventfd_signal (p->eventfd,1 ); +eventfd_signal (p->eventfd);mutex_unlock (&client->vm->ioeventfds_lock);return 0 ;
drivers/xen/privcmd.c +1 -1
@@ -1147,7 +1147,7 @@ static irqreturn_t ioeventfd_interrupt(int irq, void *dev_id)if (ioreq->addr == kioeventfd->addr +VIRTIO_MMIO_QUEUE_NOTIFY && ioreq->size == kioeventfd->addr_len && (ioreq->data &QUEUE_NOTIFY_VQ_MASK ) == kioeventfd->vq) { -eventfd_signal (kioeventfd->eventfd,1 ); +eventfd_signal (kioeventfd->eventfd); state =STATE_IORESP_READY ;break ; }
fs/aio.c +1 -1
@@ -1166,7 +1166,7 @@ static void aio_complete(struct aio_kiocb *iocb)* from IRQ context. */ if (iocb->ki_eventfd) -eventfd_signal (iocb->ki_eventfd,1 ); +eventfd_signal (iocb->ki_eventfd);/* * We have to order our ring_info tail store above and test
fs/eventfd.c +3 -6
@@ -74,20 +74,17 @@ __u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __u64 n, __poll_t mask)/** * eventfd_signal - Adds @n to the eventfd counter. * @ctx: [in] Pointer to the eventfd context. -* @n: [in] Value of the counter to be added to the eventfd internal counter. -* The value cannot be negative. * * This function is supposed to be called by the kernel in paths that do not * allow sleeping. In this function we allow the counter to reach the ULLONG_MAX * value, and we signal this as overflow condition by returning a EPOLLERR * to poll(2). * -* Returns the amount by which the counter was incremented. This will be less -* than @n if the counter has overflowed. +* Returns the amount by which the counter was incremented. */ -__u64 eventfd_signal (struct eventfd_ctx *ctx,__u64 n) +__u64 eventfd_signal (struct eventfd_ctx *ctx) { -return eventfd_signal_mask (ctx, n,0 ); +return eventfd_signal_mask (ctx,1 ,0 ); }EXPORT_SYMBOL_GPL (eventfd_signal);
include/linux/eventfd.h +2 -2
@@ -35,7 +35,7 @@ void eventfd_ctx_put(struct eventfd_ctx *ctx);struct file *eventfd_fget (int fd);struct eventfd_ctx *eventfd_ctx_fdget (int fd);struct eventfd_ctx *eventfd_ctx_fileget (struct file *file); -__u64 eventfd_signal (struct eventfd_ctx *ctx,__u64 n); +__u64 eventfd_signal (struct eventfd_ctx *ctx);__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__u64 n,__poll_t mask);int eventfd_ctx_remove_wait_queue (struct eventfd_ctx *ctx,wait_queue_entry_t *wait,__u64 *cnt);
@@ -58,7 +58,7 @@ static inline struct eventfd_ctx *eventfd_ctx_fdget(int fd)return ERR_PTR (-ENOSYS ); } -static inline int eventfd_signal (struct eventfd_ctx *ctx,__u64 n) +static inline int eventfd_signal (struct eventfd_ctx *ctx) {return -ENOSYS ; }
mm/memcontrol.c +5 -5
@@ -4378,7 +4378,7 @@ static void __mem_cgroup_threshold(struct mem_cgroup *memcg, bool swap)* only one element of the array here. */ for (; i >=0 &&unlikely (t->entries[i].threshold > usage); i--) -eventfd_signal (t->entries[i].eventfd,1 ); +eventfd_signal (t->entries[i].eventfd);/* i = current_threshold + 1 */ i++;
@@ -4390,7 +4390,7 @@ static void __mem_cgroup_threshold(struct mem_cgroup *memcg, bool swap)* only one element of the array here. */ for (; i < t->size &&unlikely (t->entries[i].threshold <= usage); i++) -eventfd_signal (t->entries[i].eventfd,1 ); +eventfd_signal (t->entries[i].eventfd);/* Update current_threshold */ t->current_threshold = i -1 ;
@@ -4430,7 +4430,7 @@ static int mem_cgroup_oom_notify_cb(struct mem_cgroup *memcg)spin_lock (&memcg_oom_lock);list_for_each_entry (ev, &memcg->oom_notify, list) -eventfd_signal (ev->eventfd,1 ); +eventfd_signal (ev->eventfd);spin_unlock (&memcg_oom_lock);return 0 ;
@@ -4649,7 +4649,7 @@ static int mem_cgroup_oom_register_event(struct mem_cgroup *memcg,/* already in OOM ? */ if (memcg->under_oom) -eventfd_signal (eventfd,1 ); +eventfd_signal (eventfd);spin_unlock (&memcg_oom_lock);return 0 ;
@@ -4941,7 +4941,7 @@ static void memcg_event_remove(struct work_struct *work) event->unregister_event (memcg, event->eventfd);/* Notify userspace the event is going away. */ -eventfd_signal (event->eventfd,1 ); +eventfd_signal (event->eventfd);eventfd_ctx_put (event->eventfd);kfree (event);
mm/vmpressure.c +1 -1
@@ -169,7 +169,7 @@ static bool vmpressure_event(struct vmpressure *vmpr,continue ;if (level < ev->level)continue ; -eventfd_signal (ev->efd,1 ); +eventfd_signal (ev->efd); ret = true; }mutex_unlock (&vmpr->events_lock);
samples/vfio-mdev/mtty.c +2 -2
@@ -234,10 +234,10 @@ static void mtty_trigger_interrupt(struct mdev_state *mdev_state)if (is_msi (mdev_state)) {if (mdev_state->msi_evtfd) -eventfd_signal (mdev_state->msi_evtfd,1 ); +eventfd_signal (mdev_state->msi_evtfd); }else if (is_intx (mdev_state)) {if (mdev_state->intx_evtfd && !mdev_state->intx_mask) { -eventfd_signal (mdev_state->intx_evtfd,1 ); +eventfd_signal (mdev_state->intx_evtfd); mdev_state->intx_mask = true; } }
virt/kvm/eventfd.c +2 -2
@@ -61,7 +61,7 @@ static void irqfd_resampler_notify(struct kvm_kernel_irqfd_resampler *resampler)list_for_each_entry_srcu (irqfd, &resampler->list, resampler_link,srcu_read_lock_held (&resampler->kvm->irq_srcu)) -eventfd_signal (irqfd->resamplefd,1 ); +eventfd_signal (irqfd->resamplefd); }/*
@@ -786,7 +786,7 @@ ioeventfd_write(struct kvm_vcpu *vcpu, struct kvm_io_device *this, gpa_t addr,if (!ioeventfd_in_range (p, addr, len, val))return -EOPNOTSUPP ; -eventfd_signal (p->eventfd,1 ); +eventfd_signal (p->eventfd);return 0 ; }
Signature · 1 line
2.42.0
Re: [PATCH v2 2/4] eventfd: simplify eventfd_signal()
Quoted 44 lines · Christian Brauner
Ever since the evenfd type was introduced back in 2007 in commit
e1ad7468c77d("signal/timer/event: eventfd core") theeventfd_signal()function only ever passed 1 as a value for @n. There's no point in keeping that additional argument.Signed-off-by Christian Brauner <[email protected]>--- arch/x86/kvm/hyperv.c | 2 +- arch/x86/kvm/xen.c | 2 +- drivers/accel/habanalabs/common/device.c | 2 +- drivers/fpga/dfl.c | 2 +- drivers/gpu/drm/drm_syncobj.c | 6 +++--- drivers/gpu/drm/i915/gvt/interrupt.c | 2 +- drivers/infiniband/hw/mlx5/devx.c | 2 +- drivers/misc/ocxl/file.c | 2 +- drivers/s390/cio/vfio_ccw_chp.c | 2 +- drivers/s390/cio/vfio_ccw_drv.c | 4 ++-- drivers/s390/cio/vfio_ccw_ops.c | 6 +++--- drivers/s390/crypto/vfio_ap_ops.c | 2 +- drivers/usb/gadget/function/f_fs.c | 4 ++-- drivers/vdpa/vdpa_user/vduse_dev.c | 6 +++--- drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c | 2 +- drivers/vfio/pci/vfio_pci_core.c | 6 +++--- drivers/vfio/pci/vfio_pci_intrs.c | 12 ++++++------ drivers/vfio/platform/vfio_platform_irq.c | 4 ++-- drivers/vhost/vdpa.c | 4 ++-- drivers/vhost/vhost.c | 10 +++++----- drivers/vhost/vhost.h | 2 +- drivers/virt/acrn/ioeventfd.c | 2 +- drivers/xen/privcmd.c | 2 +- fs/aio.c | 2 +- fs/eventfd.c | 9 +++------ include/linux/eventfd.h | 4 ++-- mm/memcontrol.c | 10 +++++----- mm/vmpressure.c | 2 +- samples/vfio-mdev/mtty.c | 4 ++-- virt/kvm/eventfd.c | 4 ++-- 30 files changed, 60 insertions(+), 63 deletions(-)drivers/fpga/dfl.c +0
-0
drivers/fpga/dfl.c static irqreturn_t dfl_irq_handler(int irq, void *arg) · line 1875
Quoted 5 lines
drivers/fpga/dfl.c +1
-1@@ -1872,7 +1872,7 @@ static irqreturn_t dfl_irq_handler(int irq, void *arg) {struct eventfd_ctx *trigger = arg; -eventfd_signal (trigger,1 ); +eventfd_signal (trigger);
For FPGA part,
Quoted 2 lines
drivers/fpga/dfl.c +0
-0return IRQ_HANDLED ; }
Re: [PATCH v2 2/4] eventfd: simplify eventfd_signal()
In reply to Christian BraunerQuoted 6 lines · Christian Brauner
Ever since the evenfd type was introduced back in 2007 in commit
e1ad7468c77d("signal/timer/event: eventfd core") theeventfd_signal()function only ever passed 1 as a value for @n. There's no point in keeping that additional argument.Signed-off-by Christian Brauner <[email protected]>
Looks good. Feel free to add:
Honza
Quoted 683 lines
--- arch/x86/kvm/hyperv.c | 2 +- arch/x86/kvm/xen.c | 2 +- drivers/accel/habanalabs/common/device.c | 2 +- drivers/fpga/dfl.c | 2 +- drivers/gpu/drm/drm_syncobj.c | 6 +++--- drivers/gpu/drm/i915/gvt/interrupt.c | 2 +- drivers/infiniband/hw/mlx5/devx.c | 2 +- drivers/misc/ocxl/file.c | 2 +- drivers/s390/cio/vfio_ccw_chp.c | 2 +- drivers/s390/cio/vfio_ccw_drv.c | 4 ++-- drivers/s390/cio/vfio_ccw_ops.c | 6 +++--- drivers/s390/crypto/vfio_ap_ops.c | 2 +- drivers/usb/gadget/function/f_fs.c | 4 ++-- drivers/vdpa/vdpa_user/vduse_dev.c | 6 +++--- drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c | 2 +- drivers/vfio/pci/vfio_pci_core.c | 6 +++--- drivers/vfio/pci/vfio_pci_intrs.c | 12 ++++++------ drivers/vfio/platform/vfio_platform_irq.c | 4 ++-- drivers/vhost/vdpa.c | 4 ++-- drivers/vhost/vhost.c | 10 +++++----- drivers/vhost/vhost.h | 2 +- drivers/virt/acrn/ioeventfd.c | 2 +- drivers/xen/privcmd.c | 2 +- fs/aio.c | 2 +- fs/eventfd.c | 9 +++------ include/linux/eventfd.h | 4 ++-- mm/memcontrol.c | 10 +++++----- mm/vmpressure.c | 2 +- samples/vfio-mdev/mtty.c | 4 ++-- virt/kvm/eventfd.c | 4 ++-- 30 files changed, 60 insertions(+), 63 deletions(-)arch/x86/kvm/hyperv.c +1
-1@@ -2388,7 +2388,7 @@ static u16 kvm_hvcall_signal_event(struct kvm_vcpu *vcpu, struct kvm_hv_hcall *hif (!eventfd)return HV_STATUS_INVALID_PORT_ID ; -eventfd_signal (eventfd,1 ); +eventfd_signal (eventfd);return HV_STATUS_SUCCESS ; }arch/x86/kvm/xen.c +1
-1@@ -2088,7 +2088,7 @@ static bool kvm_xen_hcall_evtchn_send(struct kvm_vcpu *vcpu, u64 param, u64 *r)if (ret <0 && ret != -ENOTCONN )return false; }else { -eventfd_signal (evtchnfd->deliver.eventfd.ctx,1 ); +eventfd_signal (evtchnfd->deliver.eventfd.ctx); } *r =0 ;drivers/accel/habanalabs/common/device.c +1
-1@@ -2044,7 +2044,7 @@ static void hl_notifier_event_send(struct hl_notifier_event *notifier_event, u64 notifier_event->events_mask |= event_mask;if (notifier_event->eventfd) -eventfd_signal (notifier_event->eventfd,1 ); +eventfd_signal (notifier_event->eventfd);mutex_unlock (¬ifier_event->lock); }drivers/fpga/dfl.c +1
-1@@ -1872,7 +1872,7 @@ static irqreturn_t dfl_irq_handler(int irq, void *arg) {struct eventfd_ctx *trigger = arg; -eventfd_signal (trigger,1 ); +eventfd_signal (trigger);return IRQ_HANDLED ; }drivers/gpu/drm/drm_syncobj.c +3
-3@@ -1365,7 +1365,7 @@ static void syncobj_eventfd_entry_fence_func(struct dma_fence *fence,struct syncobj_eventfd_entry *entry = container_of(cb, struct syncobj_eventfd_entry, fence_cb); -eventfd_signal (entry->ev_fd_ctx,1 ); +eventfd_signal (entry->ev_fd_ctx);syncobj_eventfd_entry_free (entry); }@@ -1388,13 +1388,13 @@ syncobj_eventfd_entry_func(struct drm_syncobj *syncobj, entry->fence = fence;if (entry->flags &DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE ) { -eventfd_signal (entry->ev_fd_ctx,1 ); +eventfd_signal (entry->ev_fd_ctx);syncobj_eventfd_entry_free (entry); }else { ret =dma_fence_add_callback (fence, &entry->fence_cb, syncobj_eventfd_entry_fence_func);if (ret == -ENOENT ) { -eventfd_signal (entry->ev_fd_ctx,1 ); +eventfd_signal (entry->ev_fd_ctx);syncobj_eventfd_entry_free (entry); } }drivers/gpu/drm/i915/gvt/interrupt.c +1
-1@@ -454,7 +454,7 @@ static void inject_virtual_interrupt(struct intel_vgpu *vgpu)return ;if (!vgpu->msi_trigger)return ; -eventfd_signal (vgpu->msi_trigger,1 ); +eventfd_signal (vgpu->msi_trigger); } static void propagate_event(struct intel_gvt_irq *irq,drivers/infiniband/hw/mlx5/devx.c +1
-1@@ -2498,7 +2498,7 @@ static void dispatch_event_fd(struct list_head *fd_list,list_for_each_entry_rcu (item, fd_list, xa_list) {if (item->eventfd) -eventfd_signal (item->eventfd,1 ); +eventfd_signal (item->eventfd);else deliver_event (item, data); }drivers/misc/ocxl/file.c +1
-1@@ -184,7 +184,7 @@ static irqreturn_t irq_handler(void *private) {struct eventfd_ctx *ev_ctx = private; -eventfd_signal (ev_ctx,1 ); +eventfd_signal (ev_ctx);return IRQ_HANDLED ; }drivers/s390/cio/vfio_ccw_chp.c +1
-1@@ -115,7 +115,7 @@ static ssize_t vfio_ccw_crw_region_read(struct vfio_ccw_private *private,/* Notify the guest if more CRWs are on our queue */ if (!list_empty (&private->crw) && private->crw_trigger) -eventfd_signal (private->crw_trigger,1 ); +eventfd_signal (private->crw_trigger);return ret; }drivers/s390/cio/vfio_ccw_drv.c +2
-2@@ -112,7 +112,7 @@ void vfio_ccw_sch_io_todo(struct work_struct *work) private->state =VFIO_CCW_STATE_IDLE ;if (private->io_trigger) -eventfd_signal (private->io_trigger,1 ); +eventfd_signal (private->io_trigger); }void vfio_ccw_crw_todo (struct work_struct *work)@@ -122,7 +122,7 @@ void vfio_ccw_crw_todo(struct work_struct *work) private = container_of(work, struct vfio_ccw_private, crw_work);if (!list_empty (&private->crw) && private->crw_trigger) -eventfd_signal (private->crw_trigger,1 ); +eventfd_signal (private->crw_trigger); }/* drivers/s390/cio/vfio_ccw_ops.c +3
-3@@ -421,7 +421,7 @@ static int vfio_ccw_mdev_set_irqs(struct vfio_ccw_private *private,case VFIO_IRQ_SET_DATA_NONE : {if (*ctx) -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx);return 0 ; }case VFIO_IRQ_SET_DATA_BOOL :@@ -432,7 +432,7 @@ static int vfio_ccw_mdev_set_irqs(struct vfio_ccw_private *private,return -EFAULT ;if (trigger && *ctx) -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx);return 0 ; }case VFIO_IRQ_SET_DATA_EVENTFD :@@ -612,7 +612,7 @@ static void vfio_ccw_mdev_request(struct vfio_device *vdev, unsigned int count)"Relaying device request to user (#%u)\n" , count); -eventfd_signal (private->req_trigger,1 ); +eventfd_signal (private->req_trigger); }else if (count ==0 ) {dev_notice (dev,"No device request channel registered, blocked until released by user\n" );drivers/s390/crypto/vfio_ap_ops.c +1
-1@@ -1794,7 +1794,7 @@ static void vfio_ap_mdev_request(struct vfio_device *vdev, unsigned int count)"Relaying device request to user (#%u)\n" , count); -eventfd_signal (matrix_mdev->req_trigger,1 ); +eventfd_signal (matrix_mdev->req_trigger); }else if (count ==0 ) {dev_notice (dev,"No device request registered, blocked until released by user\n" );drivers/usb/gadget/function/f_fs.c +2
-2@@ -831,7 +831,7 @@ static void ffs_user_copy_worker(struct work_struct *work) io_data->kiocb->ki_complete (io_data->kiocb, ret);if (io_data->ffs->ffs_eventfd && !kiocb_has_eventfd) -eventfd_signal (io_data->ffs->ffs_eventfd,1 ); +eventfd_signal (io_data->ffs->ffs_eventfd);if (io_data->read)kfree (io_data->to_free);@@ -2738,7 +2738,7 @@ static void __ffs_event_add(struct ffs_data *ffs, ffs->ev.types[ffs->ev.count++] = type;wake_up_locked (&ffs->ev.waitq);if (ffs->ffs_eventfd) -eventfd_signal (ffs->ffs_eventfd,1 ); +eventfd_signal (ffs->ffs_eventfd); } static void ffs_event_add(struct ffs_data *ffs,drivers/vdpa/vdpa_user/vduse_dev.c +3
-3@@ -493,7 +493,7 @@ static void vduse_vq_kick(struct vduse_virtqueue *vq) goto unlock;if (vq->kickfd) -eventfd_signal (vq->kickfd,1 ); +eventfd_signal (vq->kickfd);else vq->kicked = true; unlock:@@ -911,7 +911,7 @@ static int vduse_kickfd_setup(struct vduse_dev *dev,eventfd_ctx_put (vq->kickfd); vq->kickfd = ctx;if (vq->ready && vq->kicked && vq->kickfd) { -eventfd_signal (vq->kickfd,1 ); +eventfd_signal (vq->kickfd); vq->kicked = false; }spin_unlock (&vq->kick_lock);@@ -960,7 +960,7 @@ static bool vduse_vq_signal_irqfd(struct vduse_virtqueue *vq)spin_lock_irq (&vq->irq_lock);if (vq->ready && vq->cb.trigger) { -eventfd_signal (vq->cb.trigger,1 ); +eventfd_signal (vq->cb.trigger); signal = true; }spin_unlock_irq (&vq->irq_lock);drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c +1
-1@@ -54,7 +54,7 @@ static irqreturn_t vfio_fsl_mc_irq_handler(int irq_num, void *arg) {struct vfio_fsl_mc_irq *mc_irq = (struct vfio_fsl_mc_irq *)arg; -eventfd_signal (mc_irq->trigger,1 ); +eventfd_signal (mc_irq->trigger);return IRQ_HANDLED ; }drivers/vfio/pci/vfio_pci_core.c +3
-3@@ -443,7 +443,7 @@ static int vfio_pci_core_runtime_resume(struct device *dev)*/ down_write (&vdev->memory_lock);if (vdev->pm_wake_eventfd_ctx) { -eventfd_signal (vdev->pm_wake_eventfd_ctx,1 ); +eventfd_signal (vdev->pm_wake_eventfd_ctx);__vfio_pci_runtime_pm_exit (vdev); }up_write (&vdev->memory_lock);@@ -1883,7 +1883,7 @@ void vfio_pci_core_request(struct vfio_device *core_vdev, unsigned int count)pci_notice_ratelimited (pdev,"Relaying device request to user (#%u)\n" , count); -eventfd_signal (vdev->req_trigger,1 ); +eventfd_signal (vdev->req_trigger); }else if (count ==0 ) {pci_warn (pdev,"No device request channel registered, blocked until released by user\n" );@@ -2302,7 +2302,7 @@ pci_ers_result_t vfio_pci_core_aer_err_detected(struct pci_dev *pdev,mutex_lock (&vdev->igate);if (vdev->err_trigger) -eventfd_signal (vdev->err_trigger,1 ); +eventfd_signal (vdev->err_trigger);mutex_unlock (&vdev->igate);drivers/vfio/pci/vfio_pci_intrs.c +6
-6@@ -94,7 +94,7 @@ static void vfio_send_intx_eventfd(void *opaque, void *unused) ctx =vfio_irq_ctx_get (vdev,0 );if (WARN_ON_ONCE (!ctx))return ; -eventfd_signal (ctx->trigger,1 ); +eventfd_signal (ctx->trigger); } }@@ -342,7 +342,7 @@ static irqreturn_t vfio_msihandler(int irq, void *arg) {struct eventfd_ctx *trigger = arg; -eventfd_signal (trigger,1 ); +eventfd_signal (trigger);return IRQ_HANDLED ; }@@ -689,11 +689,11 @@ static int vfio_pci_set_msi_trigger(struct vfio_pci_core_device *vdev,if (!ctx)continue ;if (flags &VFIO_IRQ_SET_DATA_NONE ) { -eventfd_signal (ctx->trigger,1 ); +eventfd_signal (ctx->trigger); }else if (flags &VFIO_IRQ_SET_DATA_BOOL ) {uint8_t *bools = data;if (bools[i - start]) -eventfd_signal (ctx->trigger,1 ); +eventfd_signal (ctx->trigger); } }return 0 ;@@ -707,7 +707,7 @@ static int vfio_pci_set_ctx_trigger_single(struct eventfd_ctx **ctx,if (flags &VFIO_IRQ_SET_DATA_NONE ) {if (*ctx) {if (count) { -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx); }else {eventfd_ctx_put (*ctx); *ctx =NULL ;@@ -722,7 +722,7 @@ static int vfio_pci_set_ctx_trigger_single(struct eventfd_ctx **ctx, trigger = *(uint8_t *)data;if (trigger && *ctx) -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx);return 0 ; }else if (flags &VFIO_IRQ_SET_DATA_EVENTFD ) {drivers/vfio/platform/vfio_platform_irq.c +2
-2@@ -155,7 +155,7 @@ static irqreturn_t vfio_automasked_irq_handler(int irq, void *dev_id)spin_unlock_irqrestore (&irq_ctx->lock, flags);if (ret ==IRQ_HANDLED ) -eventfd_signal (irq_ctx->trigger,1 ); +eventfd_signal (irq_ctx->trigger);return ret; }@@ -164,7 +164,7 @@ static irqreturn_t vfio_irq_handler(int irq, void *dev_id) {struct vfio_platform_irq *irq_ctx = dev_id; -eventfd_signal (irq_ctx->trigger,1 ); +eventfd_signal (irq_ctx->trigger);return IRQ_HANDLED ; }drivers/vhost/vdpa.c +2
-2@@ -178,7 +178,7 @@ static irqreturn_t vhost_vdpa_virtqueue_cb(void *private)struct eventfd_ctx *call_ctx = vq->call_ctx.ctx;if (call_ctx) -eventfd_signal (call_ctx,1 ); +eventfd_signal (call_ctx);return IRQ_HANDLED ; }@@ -189,7 +189,7 @@ static irqreturn_t vhost_vdpa_config_cb(void *private)struct eventfd_ctx *config_ctx = v->config_ctx;if (config_ctx) -eventfd_signal (config_ctx,1 ); +eventfd_signal (config_ctx);return IRQ_HANDLED ; }drivers/vhost/vhost.c +5
-5@@ -2248,7 +2248,7 @@ int vhost_log_write(struct vhost_virtqueue *vq, struct vhost_log *log, len -= l;if (!len) {if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx);return 0 ; } }@@ -2271,7 +2271,7 @@ static int vhost_update_used_flags(struct vhost_virtqueue *vq)log_used (vq, (used - (void __user *)vq->used),sizeof vq->used->flags);if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx); }return 0 ; }@@ -2289,7 +2289,7 @@ static int vhost_update_avail_event(struct vhost_virtqueue *vq)log_used (vq, (used - (void __user *)vq->used),sizeof *vhost_avail_event (vq));if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx); }return 0 ; }@@ -2715,7 +2715,7 @@ int vhost_add_used_n(struct vhost_virtqueue *vq, struct vring_used_elem *heads,log_used (vq, offsetof(struct vring_used , idx),sizeof vq->used->idx);if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx); }return r; }@@ -2763,7 +2763,7 @@ void vhost_signal(struct vhost_dev *dev, struct vhost_virtqueue *vq) {/* Signal the Guest tell them we used something up. */ if (vq->call_ctx.ctx &&vhost_notify (dev, vq)) -eventfd_signal (vq->call_ctx.ctx,1 ); +eventfd_signal (vq->call_ctx.ctx); }EXPORT_SYMBOL_GPL (vhost_signal);drivers/vhost/vhost.h +1
-1@@ -249,7 +249,7 @@ void vhost_iotlb_map_free(struct vhost_iotlb *iotlb,#define vq_err (vq, fmt, ...) do { \ pr_debug(pr_fmt(fmt), ##__VA_ARGS__); \ if ((vq)->error_ctx) \ - eventfd_signal((vq)->error_ctx, 1);\ + eventfd_signal((vq)->error_ctx);\ } while (0)enum {drivers/virt/acrn/ioeventfd.c +1
-1@@ -223,7 +223,7 @@ static int acrn_ioeventfd_handler(struct acrn_ioreq_client *client,mutex_lock (&client->vm->ioeventfds_lock); p =hsm_ioeventfd_match (client->vm, addr, val, size, req->type);if (p) -eventfd_signal (p->eventfd,1 ); +eventfd_signal (p->eventfd);mutex_unlock (&client->vm->ioeventfds_lock);return 0 ;drivers/xen/privcmd.c +1
-1@@ -1147,7 +1147,7 @@ static irqreturn_t ioeventfd_interrupt(int irq, void *dev_id)if (ioreq->addr == kioeventfd->addr +VIRTIO_MMIO_QUEUE_NOTIFY && ioreq->size == kioeventfd->addr_len && (ioreq->data &QUEUE_NOTIFY_VQ_MASK ) == kioeventfd->vq) { -eventfd_signal (kioeventfd->eventfd,1 ); +eventfd_signal (kioeventfd->eventfd); state =STATE_IORESP_READY ;break ; }fs/aio.c +1
-1@@ -1166,7 +1166,7 @@ static void aio_complete(struct aio_kiocb *iocb)* from IRQ context. */ if (iocb->ki_eventfd) -eventfd_signal (iocb->ki_eventfd,1 ); +eventfd_signal (iocb->ki_eventfd);/* * We have to order our ring_info tail store above and test fs/eventfd.c +3
-6@@ -74,20 +74,17 @@ __u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __u64 n, __poll_t mask)/** * eventfd_signal - Adds @n to the eventfd counter. * @ctx: [in] Pointer to the eventfd context. -* @n: [in] Value of the counter to be added to the eventfd internal counter. -* The value cannot be negative. * * This function is supposed to be called by the kernel in paths that do not * allow sleeping. In this function we allow the counter to reach the ULLONG_MAX * value, and we signal this as overflow condition by returning a EPOLLERR * to poll(2). * -* Returns the amount by which the counter was incremented. This will be less -* than @n if the counter has overflowed. +* Returns the amount by which the counter was incremented. */ -__u64 eventfd_signal (struct eventfd_ctx *ctx,__u64 n) +__u64 eventfd_signal (struct eventfd_ctx *ctx) { -return eventfd_signal_mask (ctx, n,0 ); +return eventfd_signal_mask (ctx,1 ,0 ); }EXPORT_SYMBOL_GPL (eventfd_signal);include/linux/eventfd.h +2
-2@@ -35,7 +35,7 @@ void eventfd_ctx_put(struct eventfd_ctx *ctx);struct file *eventfd_fget (int fd);struct eventfd_ctx *eventfd_ctx_fdget (int fd);struct eventfd_ctx *eventfd_ctx_fileget (struct file *file); -__u64 eventfd_signal (struct eventfd_ctx *ctx,__u64 n); +__u64 eventfd_signal (struct eventfd_ctx *ctx);__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__u64 n,__poll_t mask);int eventfd_ctx_remove_wait_queue (struct eventfd_ctx *ctx,wait_queue_entry_t *wait,__u64 *cnt);@@ -58,7 +58,7 @@ static inline struct eventfd_ctx *eventfd_ctx_fdget(int fd)return ERR_PTR (-ENOSYS ); } -static inline int eventfd_signal (struct eventfd_ctx *ctx,__u64 n) +static inline int eventfd_signal (struct eventfd_ctx *ctx) {return -ENOSYS ; }mm/memcontrol.c +5
-5@@ -4378,7 +4378,7 @@ static void __mem_cgroup_threshold(struct mem_cgroup *memcg, bool swap)* only one element of the array here. */ for (; i >=0 &&unlikely (t->entries[i].threshold > usage); i--) -eventfd_signal (t->entries[i].eventfd,1 ); +eventfd_signal (t->entries[i].eventfd);/* i = current_threshold + 1 */ i++;@@ -4390,7 +4390,7 @@ static void __mem_cgroup_threshold(struct mem_cgroup *memcg, bool swap)* only one element of the array here. */ for (; i < t->size &&unlikely (t->entries[i].threshold <= usage); i++) -eventfd_signal (t->entries[i].eventfd,1 ); +eventfd_signal (t->entries[i].eventfd);/* Update current_threshold */ t->current_threshold = i -1 ;@@ -4430,7 +4430,7 @@ static int mem_cgroup_oom_notify_cb(struct mem_cgroup *memcg)spin_lock (&memcg_oom_lock);list_for_each_entry (ev, &memcg->oom_notify, list) -eventfd_signal (ev->eventfd,1 ); +eventfd_signal (ev->eventfd);spin_unlock (&memcg_oom_lock);return 0 ;@@ -4649,7 +4649,7 @@ static int mem_cgroup_oom_register_event(struct mem_cgroup *memcg,/* already in OOM ? */ if (memcg->under_oom) -eventfd_signal (eventfd,1 ); +eventfd_signal (eventfd);spin_unlock (&memcg_oom_lock);return 0 ;@@ -4941,7 +4941,7 @@ static void memcg_event_remove(struct work_struct *work) event->unregister_event (memcg, event->eventfd);/* Notify userspace the event is going away. */ -eventfd_signal (event->eventfd,1 ); +eventfd_signal (event->eventfd);eventfd_ctx_put (event->eventfd);kfree (event);mm/vmpressure.c +1
-1@@ -169,7 +169,7 @@ static bool vmpressure_event(struct vmpressure *vmpr,continue ;if (level < ev->level)continue ; -eventfd_signal (ev->efd,1 ); +eventfd_signal (ev->efd); ret = true; }mutex_unlock (&vmpr->events_lock);samples/vfio-mdev/mtty.c +2
-2@@ -234,10 +234,10 @@ static void mtty_trigger_interrupt(struct mdev_state *mdev_state)if (is_msi (mdev_state)) {if (mdev_state->msi_evtfd) -eventfd_signal (mdev_state->msi_evtfd,1 ); +eventfd_signal (mdev_state->msi_evtfd); }else if (is_intx (mdev_state)) {if (mdev_state->intx_evtfd && !mdev_state->intx_mask) { -eventfd_signal (mdev_state->intx_evtfd,1 ); +eventfd_signal (mdev_state->intx_evtfd); mdev_state->intx_mask = true; } }virt/kvm/eventfd.c +2
-2@@ -61,7 +61,7 @@ static void irqfd_resampler_notify(struct kvm_kernel_irqfd_resampler *resampler)list_for_each_entry_srcu (irqfd, &resampler->list, resampler_link,srcu_read_lock_held (&resampler->kvm->irq_srcu)) -eventfd_signal (irqfd->resamplefd,1 ); +eventfd_signal (irqfd->resamplefd); }/* @@ -786,7 +786,7 @@ ioeventfd_write(struct kvm_vcpu *vcpu, struct kvm_io_device *this, gpa_t addr,if (!ioeventfd_in_range (p, addr, len, val))return -EOPNOTSUPP ; -eventfd_signal (p->eventfd,1 ); +eventfd_signal (p->eventfd);return 0 ; }Signature · 2 lines
-- 2.42.0
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Jani Nikula
maintainerRe: [PATCH v2 2/4] eventfd: simplify eventfd_signal()
In reply to Christian Braunerfs/eventfd.c __u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __u64 n, __poll_t mask) · line 75
Quoted 7 lines · Christian Brauner
fs/eventfd.c +0
-0@@ -74,20 +74,17 @@ __u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __u64 n, __poll_t mask)/** * eventfd_signal - Adds @n to the eventfd counter.
This still refers to @n here, and in patch 4.
BR,
Jani.
Quoted 21 lines
fs/eventfd.c +3
-6* @ctx: [in] Pointer to the eventfd context. -* @n: [in] Value of the counter to be added to the eventfd internal counter. -* The value cannot be negative. * * This function is supposed to be called by the kernel in paths that do not * allow sleeping. In this function we allow the counter to reach the ULLONG_MAX * value, and we signal this as overflow condition by returning a EPOLLERR * to poll(2). * -* Returns the amount by which the counter was incremented. This will be less -* than @n if the counter has overflowed. +* Returns the amount by which the counter was incremented. */ -__u64 eventfd_signal (struct eventfd_ctx *ctx,__u64 n) +__u64 eventfd_signal (struct eventfd_ctx *ctx) { -return eventfd_signal_mask (ctx, n,0 ); +return eventfd_signal_mask (ctx,1 ,0 ); }EXPORT_SYMBOL_GPL (eventfd_signal);
Signature · 1 line
Jani Nikula, Intel
Christian Brauner
maintainerRe: [PATCH v2 2/4] eventfd: simplify eventfd_signal()
Quoted 3 lines
Quoted 1 line
*
eventfd_signal- Adds @n to the eventfd counter.This still refers to @n here, and in patch 4.
Fixed and folded. Thanks!
Re: [PATCH v2 2/4] eventfd: simplify eventfd_signal()
In reply to Christian BraunerQuoted 7 lines · Christian Brauner
Ever since the evenfd type was introduced back in 2007 in commit
e1ad7468c77d("signal/timer/event: eventfd core") theeventfd_signal()
function only ever passed 1 as a value for @n. There's no point in keeping that additional argument.Signed-off-by Christian Brauner <[email protected]>
Signature · 2 lines
Andrew Donnellan OzLabs, ADL Canberra [email protected] IBM Australia Limited
Re: [PATCH v2 2/4] eventfd: simplify eventfd_signal()
In reply to Christian BraunerQuoted 1 line · Christian Brauner
Ever since the evenfd type was introduced back in 2007 in commit
s/evenfd/eventfd/
Quoted 15 lines
e1ad7468c77d("signal/timer/event: eventfd core") theeventfd_signal()
function only ever passed 1 as a value for @n. There's no point in keeping that additional argument.Signed-off-by Christian Brauner <[email protected]>---
arch/x86/kvm/hyperv.c | 2 +- arch/x86/kvm/xen.c | 2 +- drivers/accel/habanalabs/common/device.c | 2 +- drivers/fpga/dfl.c | 2 +- drivers/gpu/drm/drm_syncobj.c | 6 +++--- drivers/gpu/drm/i915/gvt/interrupt.c | 2 +- drivers/infiniband/hw/mlx5/devx.c | 2 +- drivers/misc/ocxl/file.c | 2 +-
Quoted 4 lines
drivers/s390/cio/vfio_ccw_chp.c | 2 +- drivers/s390/cio/vfio_ccw_drv.c | 4 ++-- drivers/s390/cio/vfio_ccw_ops.c | 6 +++---drivers/s390/crypto/vfio_ap_ops.c | 2 +-
Re: [PATCH v2 2/4] eventfd: simplify eventfd_signal()
In reply to Christian Braunervhost and VIRTIO-related parts:
Quoted 691 lines · Christian Brauner
Ever since the evenfd type was introduced back in 2007 in commit
e1ad7468c77d("signal/timer/event: eventfd core") theeventfd_signal()function only ever passed 1 as a value for @n. There's no point in keeping that additional argument.Signed-off-by Christian Brauner <[email protected]>--- arch/x86/kvm/hyperv.c | 2 +- arch/x86/kvm/xen.c | 2 +- drivers/accel/habanalabs/common/device.c | 2 +- drivers/fpga/dfl.c | 2 +- drivers/gpu/drm/drm_syncobj.c | 6 +++--- drivers/gpu/drm/i915/gvt/interrupt.c | 2 +- drivers/infiniband/hw/mlx5/devx.c | 2 +- drivers/misc/ocxl/file.c | 2 +- drivers/s390/cio/vfio_ccw_chp.c | 2 +- drivers/s390/cio/vfio_ccw_drv.c | 4 ++-- drivers/s390/cio/vfio_ccw_ops.c | 6 +++--- drivers/s390/crypto/vfio_ap_ops.c | 2 +- drivers/usb/gadget/function/f_fs.c | 4 ++-- drivers/vdpa/vdpa_user/vduse_dev.c | 6 +++--- drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c | 2 +- drivers/vfio/pci/vfio_pci_core.c | 6 +++--- drivers/vfio/pci/vfio_pci_intrs.c | 12 ++++++------ drivers/vfio/platform/vfio_platform_irq.c | 4 ++-- drivers/vhost/vdpa.c | 4 ++-- drivers/vhost/vhost.c | 10 +++++----- drivers/vhost/vhost.h | 2 +- drivers/virt/acrn/ioeventfd.c | 2 +- drivers/xen/privcmd.c | 2 +- fs/aio.c | 2 +- fs/eventfd.c | 9 +++------ include/linux/eventfd.h | 4 ++-- mm/memcontrol.c | 10 +++++----- mm/vmpressure.c | 2 +- samples/vfio-mdev/mtty.c | 4 ++-- virt/kvm/eventfd.c | 4 ++-- 30 files changed, 60 insertions(+), 63 deletions(-)arch/x86/kvm/hyperv.c +1
-1@@ -2388,7 +2388,7 @@ static u16 kvm_hvcall_signal_event(struct kvm_vcpu *vcpu, struct kvm_hv_hcall *hif (!eventfd)return HV_STATUS_INVALID_PORT_ID ; -eventfd_signal (eventfd,1 ); +eventfd_signal (eventfd);return HV_STATUS_SUCCESS ; }arch/x86/kvm/xen.c +1
-1@@ -2088,7 +2088,7 @@ static bool kvm_xen_hcall_evtchn_send(struct kvm_vcpu *vcpu, u64 param, u64 *r)if (ret <0 && ret != -ENOTCONN )return false; }else { -eventfd_signal (evtchnfd->deliver.eventfd.ctx,1 ); +eventfd_signal (evtchnfd->deliver.eventfd.ctx); } *r =0 ;drivers/accel/habanalabs/common/device.c +1
-1@@ -2044,7 +2044,7 @@ static void hl_notifier_event_send(struct hl_notifier_event *notifier_event, u64 notifier_event->events_mask |= event_mask;if (notifier_event->eventfd) -eventfd_signal (notifier_event->eventfd,1 ); +eventfd_signal (notifier_event->eventfd);mutex_unlock (¬ifier_event->lock); }drivers/fpga/dfl.c +1
-1@@ -1872,7 +1872,7 @@ static irqreturn_t dfl_irq_handler(int irq, void *arg) {struct eventfd_ctx *trigger = arg; -eventfd_signal (trigger,1 ); +eventfd_signal (trigger);return IRQ_HANDLED ; }drivers/gpu/drm/drm_syncobj.c +3
-3@@ -1365,7 +1365,7 @@ static void syncobj_eventfd_entry_fence_func(struct dma_fence *fence,struct syncobj_eventfd_entry *entry = container_of(cb, struct syncobj_eventfd_entry, fence_cb); -eventfd_signal (entry->ev_fd_ctx,1 ); +eventfd_signal (entry->ev_fd_ctx);syncobj_eventfd_entry_free (entry); }@@ -1388,13 +1388,13 @@ syncobj_eventfd_entry_func(struct drm_syncobj *syncobj, entry->fence = fence;if (entry->flags &DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE ) { -eventfd_signal (entry->ev_fd_ctx,1 ); +eventfd_signal (entry->ev_fd_ctx);syncobj_eventfd_entry_free (entry); }else { ret =dma_fence_add_callback (fence, &entry->fence_cb, syncobj_eventfd_entry_fence_func);if (ret == -ENOENT ) { -eventfd_signal (entry->ev_fd_ctx,1 ); +eventfd_signal (entry->ev_fd_ctx);syncobj_eventfd_entry_free (entry); } }drivers/gpu/drm/i915/gvt/interrupt.c +1
-1@@ -454,7 +454,7 @@ static void inject_virtual_interrupt(struct intel_vgpu *vgpu)return ;if (!vgpu->msi_trigger)return ; -eventfd_signal (vgpu->msi_trigger,1 ); +eventfd_signal (vgpu->msi_trigger); } static void propagate_event(struct intel_gvt_irq *irq,drivers/infiniband/hw/mlx5/devx.c +1
-1@@ -2498,7 +2498,7 @@ static void dispatch_event_fd(struct list_head *fd_list,list_for_each_entry_rcu (item, fd_list, xa_list) {if (item->eventfd) -eventfd_signal (item->eventfd,1 ); +eventfd_signal (item->eventfd);else deliver_event (item, data); }drivers/misc/ocxl/file.c +1
-1@@ -184,7 +184,7 @@ static irqreturn_t irq_handler(void *private) {struct eventfd_ctx *ev_ctx = private; -eventfd_signal (ev_ctx,1 ); +eventfd_signal (ev_ctx);return IRQ_HANDLED ; }drivers/s390/cio/vfio_ccw_chp.c +1
-1@@ -115,7 +115,7 @@ static ssize_t vfio_ccw_crw_region_read(struct vfio_ccw_private *private,/* Notify the guest if more CRWs are on our queue */ if (!list_empty (&private->crw) && private->crw_trigger) -eventfd_signal (private->crw_trigger,1 ); +eventfd_signal (private->crw_trigger);return ret; }drivers/s390/cio/vfio_ccw_drv.c +2
-2@@ -112,7 +112,7 @@ void vfio_ccw_sch_io_todo(struct work_struct *work) private->state =VFIO_CCW_STATE_IDLE ;if (private->io_trigger) -eventfd_signal (private->io_trigger,1 ); +eventfd_signal (private->io_trigger); }void vfio_ccw_crw_todo (struct work_struct *work)@@ -122,7 +122,7 @@ void vfio_ccw_crw_todo(struct work_struct *work) private = container_of(work, struct vfio_ccw_private, crw_work);if (!list_empty (&private->crw) && private->crw_trigger) -eventfd_signal (private->crw_trigger,1 ); +eventfd_signal (private->crw_trigger); }/* drivers/s390/cio/vfio_ccw_ops.c +3
-3@@ -421,7 +421,7 @@ static int vfio_ccw_mdev_set_irqs(struct vfio_ccw_private *private,case VFIO_IRQ_SET_DATA_NONE : {if (*ctx) -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx);return 0 ; }case VFIO_IRQ_SET_DATA_BOOL :@@ -432,7 +432,7 @@ static int vfio_ccw_mdev_set_irqs(struct vfio_ccw_private *private,return -EFAULT ;if (trigger && *ctx) -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx);return 0 ; }case VFIO_IRQ_SET_DATA_EVENTFD :@@ -612,7 +612,7 @@ static void vfio_ccw_mdev_request(struct vfio_device *vdev, unsigned int count)"Relaying device request to user (#%u)\n" , count); -eventfd_signal (private->req_trigger,1 ); +eventfd_signal (private->req_trigger); }else if (count ==0 ) {dev_notice (dev,"No device request channel registered, blocked until released by user\n" );drivers/s390/crypto/vfio_ap_ops.c +1
-1@@ -1794,7 +1794,7 @@ static void vfio_ap_mdev_request(struct vfio_device *vdev, unsigned int count)"Relaying device request to user (#%u)\n" , count); -eventfd_signal (matrix_mdev->req_trigger,1 ); +eventfd_signal (matrix_mdev->req_trigger); }else if (count ==0 ) {dev_notice (dev,"No device request registered, blocked until released by user\n" );drivers/usb/gadget/function/f_fs.c +2
-2@@ -831,7 +831,7 @@ static void ffs_user_copy_worker(struct work_struct *work) io_data->kiocb->ki_complete (io_data->kiocb, ret);if (io_data->ffs->ffs_eventfd && !kiocb_has_eventfd) -eventfd_signal (io_data->ffs->ffs_eventfd,1 ); +eventfd_signal (io_data->ffs->ffs_eventfd);if (io_data->read)kfree (io_data->to_free);@@ -2738,7 +2738,7 @@ static void __ffs_event_add(struct ffs_data *ffs, ffs->ev.types[ffs->ev.count++] = type;wake_up_locked (&ffs->ev.waitq);if (ffs->ffs_eventfd) -eventfd_signal (ffs->ffs_eventfd,1 ); +eventfd_signal (ffs->ffs_eventfd); } static void ffs_event_add(struct ffs_data *ffs,drivers/vdpa/vdpa_user/vduse_dev.c +3
-3@@ -493,7 +493,7 @@ static void vduse_vq_kick(struct vduse_virtqueue *vq) goto unlock;if (vq->kickfd) -eventfd_signal (vq->kickfd,1 ); +eventfd_signal (vq->kickfd);else vq->kicked = true; unlock:@@ -911,7 +911,7 @@ static int vduse_kickfd_setup(struct vduse_dev *dev,eventfd_ctx_put (vq->kickfd); vq->kickfd = ctx;if (vq->ready && vq->kicked && vq->kickfd) { -eventfd_signal (vq->kickfd,1 ); +eventfd_signal (vq->kickfd); vq->kicked = false; }spin_unlock (&vq->kick_lock);@@ -960,7 +960,7 @@ static bool vduse_vq_signal_irqfd(struct vduse_virtqueue *vq)spin_lock_irq (&vq->irq_lock);if (vq->ready && vq->cb.trigger) { -eventfd_signal (vq->cb.trigger,1 ); +eventfd_signal (vq->cb.trigger); signal = true; }spin_unlock_irq (&vq->irq_lock);drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c +1
-1@@ -54,7 +54,7 @@ static irqreturn_t vfio_fsl_mc_irq_handler(int irq_num, void *arg) {struct vfio_fsl_mc_irq *mc_irq = (struct vfio_fsl_mc_irq *)arg; -eventfd_signal (mc_irq->trigger,1 ); +eventfd_signal (mc_irq->trigger);return IRQ_HANDLED ; }drivers/vfio/pci/vfio_pci_core.c +3
-3@@ -443,7 +443,7 @@ static int vfio_pci_core_runtime_resume(struct device *dev)*/ down_write (&vdev->memory_lock);if (vdev->pm_wake_eventfd_ctx) { -eventfd_signal (vdev->pm_wake_eventfd_ctx,1 ); +eventfd_signal (vdev->pm_wake_eventfd_ctx);__vfio_pci_runtime_pm_exit (vdev); }up_write (&vdev->memory_lock);@@ -1883,7 +1883,7 @@ void vfio_pci_core_request(struct vfio_device *core_vdev, unsigned int count)pci_notice_ratelimited (pdev,"Relaying device request to user (#%u)\n" , count); -eventfd_signal (vdev->req_trigger,1 ); +eventfd_signal (vdev->req_trigger); }else if (count ==0 ) {pci_warn (pdev,"No device request channel registered, blocked until released by user\n" );@@ -2302,7 +2302,7 @@ pci_ers_result_t vfio_pci_core_aer_err_detected(struct pci_dev *pdev,mutex_lock (&vdev->igate);if (vdev->err_trigger) -eventfd_signal (vdev->err_trigger,1 ); +eventfd_signal (vdev->err_trigger);mutex_unlock (&vdev->igate);drivers/vfio/pci/vfio_pci_intrs.c +6
-6@@ -94,7 +94,7 @@ static void vfio_send_intx_eventfd(void *opaque, void *unused) ctx =vfio_irq_ctx_get (vdev,0 );if (WARN_ON_ONCE (!ctx))return ; -eventfd_signal (ctx->trigger,1 ); +eventfd_signal (ctx->trigger); } }@@ -342,7 +342,7 @@ static irqreturn_t vfio_msihandler(int irq, void *arg) {struct eventfd_ctx *trigger = arg; -eventfd_signal (trigger,1 ); +eventfd_signal (trigger);return IRQ_HANDLED ; }@@ -689,11 +689,11 @@ static int vfio_pci_set_msi_trigger(struct vfio_pci_core_device *vdev,if (!ctx)continue ;if (flags &VFIO_IRQ_SET_DATA_NONE ) { -eventfd_signal (ctx->trigger,1 ); +eventfd_signal (ctx->trigger); }else if (flags &VFIO_IRQ_SET_DATA_BOOL ) {uint8_t *bools = data;if (bools[i - start]) -eventfd_signal (ctx->trigger,1 ); +eventfd_signal (ctx->trigger); } }return 0 ;@@ -707,7 +707,7 @@ static int vfio_pci_set_ctx_trigger_single(struct eventfd_ctx **ctx,if (flags &VFIO_IRQ_SET_DATA_NONE ) {if (*ctx) {if (count) { -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx); }else {eventfd_ctx_put (*ctx); *ctx =NULL ;@@ -722,7 +722,7 @@ static int vfio_pci_set_ctx_trigger_single(struct eventfd_ctx **ctx, trigger = *(uint8_t *)data;if (trigger && *ctx) -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx);return 0 ; }else if (flags &VFIO_IRQ_SET_DATA_EVENTFD ) {drivers/vfio/platform/vfio_platform_irq.c +2
-2@@ -155,7 +155,7 @@ static irqreturn_t vfio_automasked_irq_handler(int irq, void *dev_id)spin_unlock_irqrestore (&irq_ctx->lock, flags);if (ret ==IRQ_HANDLED ) -eventfd_signal (irq_ctx->trigger,1 ); +eventfd_signal (irq_ctx->trigger);return ret; }@@ -164,7 +164,7 @@ static irqreturn_t vfio_irq_handler(int irq, void *dev_id) {struct vfio_platform_irq *irq_ctx = dev_id; -eventfd_signal (irq_ctx->trigger,1 ); +eventfd_signal (irq_ctx->trigger);return IRQ_HANDLED ; }drivers/vhost/vdpa.c +2
-2@@ -178,7 +178,7 @@ static irqreturn_t vhost_vdpa_virtqueue_cb(void *private)struct eventfd_ctx *call_ctx = vq->call_ctx.ctx;if (call_ctx) -eventfd_signal (call_ctx,1 ); +eventfd_signal (call_ctx);return IRQ_HANDLED ; }@@ -189,7 +189,7 @@ static irqreturn_t vhost_vdpa_config_cb(void *private)struct eventfd_ctx *config_ctx = v->config_ctx;if (config_ctx) -eventfd_signal (config_ctx,1 ); +eventfd_signal (config_ctx);return IRQ_HANDLED ; }drivers/vhost/vhost.c +5
-5@@ -2248,7 +2248,7 @@ int vhost_log_write(struct vhost_virtqueue *vq, struct vhost_log *log, len -= l;if (!len) {if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx);return 0 ; } }@@ -2271,7 +2271,7 @@ static int vhost_update_used_flags(struct vhost_virtqueue *vq)log_used (vq, (used - (void __user *)vq->used),sizeof vq->used->flags);if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx); }return 0 ; }@@ -2289,7 +2289,7 @@ static int vhost_update_avail_event(struct vhost_virtqueue *vq)log_used (vq, (used - (void __user *)vq->used),sizeof *vhost_avail_event (vq));if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx); }return 0 ; }@@ -2715,7 +2715,7 @@ int vhost_add_used_n(struct vhost_virtqueue *vq, struct vring_used_elem *heads,log_used (vq, offsetof(struct vring_used , idx),sizeof vq->used->idx);if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx); }return r; }@@ -2763,7 +2763,7 @@ void vhost_signal(struct vhost_dev *dev, struct vhost_virtqueue *vq) {/* Signal the Guest tell them we used something up. */ if (vq->call_ctx.ctx &&vhost_notify (dev, vq)) -eventfd_signal (vq->call_ctx.ctx,1 ); +eventfd_signal (vq->call_ctx.ctx); }EXPORT_SYMBOL_GPL (vhost_signal);drivers/vhost/vhost.h +1
-1@@ -249,7 +249,7 @@ void vhost_iotlb_map_free(struct vhost_iotlb *iotlb,#define vq_err (vq, fmt, ...) do { \ pr_debug(pr_fmt(fmt), ##__VA_ARGS__); \ if ((vq)->error_ctx) \ - eventfd_signal((vq)->error_ctx, 1);\ + eventfd_signal((vq)->error_ctx);\ } while (0)enum {drivers/virt/acrn/ioeventfd.c +1
-1@@ -223,7 +223,7 @@ static int acrn_ioeventfd_handler(struct acrn_ioreq_client *client,mutex_lock (&client->vm->ioeventfds_lock); p =hsm_ioeventfd_match (client->vm, addr, val, size, req->type);if (p) -eventfd_signal (p->eventfd,1 ); +eventfd_signal (p->eventfd);mutex_unlock (&client->vm->ioeventfds_lock);return 0 ;drivers/xen/privcmd.c +1
-1@@ -1147,7 +1147,7 @@ static irqreturn_t ioeventfd_interrupt(int irq, void *dev_id)if (ioreq->addr == kioeventfd->addr +VIRTIO_MMIO_QUEUE_NOTIFY && ioreq->size == kioeventfd->addr_len && (ioreq->data &QUEUE_NOTIFY_VQ_MASK ) == kioeventfd->vq) { -eventfd_signal (kioeventfd->eventfd,1 ); +eventfd_signal (kioeventfd->eventfd); state =STATE_IORESP_READY ;break ; }fs/aio.c +1
-1@@ -1166,7 +1166,7 @@ static void aio_complete(struct aio_kiocb *iocb)* from IRQ context. */ if (iocb->ki_eventfd) -eventfd_signal (iocb->ki_eventfd,1 ); +eventfd_signal (iocb->ki_eventfd);/* * We have to order our ring_info tail store above and test fs/eventfd.c +3
-6@@ -74,20 +74,17 @@ __u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __u64 n, __poll_t mask)/** * eventfd_signal - Adds @n to the eventfd counter. * @ctx: [in] Pointer to the eventfd context. -* @n: [in] Value of the counter to be added to the eventfd internal counter. -* The value cannot be negative. * * This function is supposed to be called by the kernel in paths that do not * allow sleeping. In this function we allow the counter to reach the ULLONG_MAX * value, and we signal this as overflow condition by returning a EPOLLERR * to poll(2). * -* Returns the amount by which the counter was incremented. This will be less -* than @n if the counter has overflowed. +* Returns the amount by which the counter was incremented. */ -__u64 eventfd_signal (struct eventfd_ctx *ctx,__u64 n) +__u64 eventfd_signal (struct eventfd_ctx *ctx) { -return eventfd_signal_mask (ctx, n,0 ); +return eventfd_signal_mask (ctx,1 ,0 ); }EXPORT_SYMBOL_GPL (eventfd_signal);include/linux/eventfd.h +2
-2@@ -35,7 +35,7 @@ void eventfd_ctx_put(struct eventfd_ctx *ctx);struct file *eventfd_fget (int fd);struct eventfd_ctx *eventfd_ctx_fdget (int fd);struct eventfd_ctx *eventfd_ctx_fileget (struct file *file); -__u64 eventfd_signal (struct eventfd_ctx *ctx,__u64 n); +__u64 eventfd_signal (struct eventfd_ctx *ctx);__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__u64 n,__poll_t mask);int eventfd_ctx_remove_wait_queue (struct eventfd_ctx *ctx,wait_queue_entry_t *wait,__u64 *cnt);@@ -58,7 +58,7 @@ static inline struct eventfd_ctx *eventfd_ctx_fdget(int fd)return ERR_PTR (-ENOSYS ); } -static inline int eventfd_signal (struct eventfd_ctx *ctx,__u64 n) +static inline int eventfd_signal (struct eventfd_ctx *ctx) {return -ENOSYS ; }mm/memcontrol.c +5
-5@@ -4378,7 +4378,7 @@ static void __mem_cgroup_threshold(struct mem_cgroup *memcg, bool swap)* only one element of the array here. */ for (; i >=0 &&unlikely (t->entries[i].threshold > usage); i--) -eventfd_signal (t->entries[i].eventfd,1 ); +eventfd_signal (t->entries[i].eventfd);/* i = current_threshold + 1 */ i++;@@ -4390,7 +4390,7 @@ static void __mem_cgroup_threshold(struct mem_cgroup *memcg, bool swap)* only one element of the array here. */ for (; i < t->size &&unlikely (t->entries[i].threshold <= usage); i++) -eventfd_signal (t->entries[i].eventfd,1 ); +eventfd_signal (t->entries[i].eventfd);/* Update current_threshold */ t->current_threshold = i -1 ;@@ -4430,7 +4430,7 @@ static int mem_cgroup_oom_notify_cb(struct mem_cgroup *memcg)spin_lock (&memcg_oom_lock);list_for_each_entry (ev, &memcg->oom_notify, list) -eventfd_signal (ev->eventfd,1 ); +eventfd_signal (ev->eventfd);spin_unlock (&memcg_oom_lock);return 0 ;@@ -4649,7 +4649,7 @@ static int mem_cgroup_oom_register_event(struct mem_cgroup *memcg,/* already in OOM ? */ if (memcg->under_oom) -eventfd_signal (eventfd,1 ); +eventfd_signal (eventfd);spin_unlock (&memcg_oom_lock);return 0 ;@@ -4941,7 +4941,7 @@ static void memcg_event_remove(struct work_struct *work) event->unregister_event (memcg, event->eventfd);/* Notify userspace the event is going away. */ -eventfd_signal (event->eventfd,1 ); +eventfd_signal (event->eventfd);eventfd_ctx_put (event->eventfd);kfree (event);mm/vmpressure.c +1
-1@@ -169,7 +169,7 @@ static bool vmpressure_event(struct vmpressure *vmpr,continue ;if (level < ev->level)continue ; -eventfd_signal (ev->efd,1 ); +eventfd_signal (ev->efd); ret = true; }mutex_unlock (&vmpr->events_lock);samples/vfio-mdev/mtty.c +2
-2@@ -234,10 +234,10 @@ static void mtty_trigger_interrupt(struct mdev_state *mdev_state)if (is_msi (mdev_state)) {if (mdev_state->msi_evtfd) -eventfd_signal (mdev_state->msi_evtfd,1 ); +eventfd_signal (mdev_state->msi_evtfd); }else if (is_intx (mdev_state)) {if (mdev_state->intx_evtfd && !mdev_state->intx_mask) { -eventfd_signal (mdev_state->intx_evtfd,1 ); +eventfd_signal (mdev_state->intx_evtfd); mdev_state->intx_mask = true; } }virt/kvm/eventfd.c +2
-3@@ -61,7 +61,7 @@ static void irqfd_resampler_notify(struct kvm_kernel_irqfd_resampler *resampler)list_for_each_entry_srcu (irqfd, &resampler->list, resampler_link,srcu_read_lock_held (&resampler->kvm->irq_srcu)) -eventfd_signal (irqfd->resamplefd,1 ); +eventfd_signal (irqfd->resamplefd); }/* @@ -786,7 +786,7 @@ ioeventfd_write(struct kvm_vcpu *vcpu, struct kvm_io_device *this, gpa_t addr,if (!ioeventfd_in_range (p, addr, len, val))return -EOPNOTSUPP ; -eventfd_signal (p->eventfd,1 ); +eventfd_signal (p->eventfd);return 0 ; } --2.42.0
Re: [PATCH v2 2/4] eventfd: simplify eventfd_signal()
For vfio_ap_ops.c
Quoted 695 lines · Stefan Hajnoczi
vhost and VIRTIO-related parts:
Reviewed-by Stefan Hajnoczi <[email protected]>Quoted 690 lines · Christian Brauner
Ever since the evenfd type was introduced back in 2007 in commit
e1ad7468c77d("signal/timer/event: eventfd core") theeventfd_signal()function only ever passed 1 as a value for @n. There's no point in keeping that additional argument.Signed-off-by Christian Brauner <[email protected]>--- arch/x86/kvm/hyperv.c | 2 +- arch/x86/kvm/xen.c | 2 +- drivers/accel/habanalabs/common/device.c | 2 +- drivers/fpga/dfl.c | 2 +- drivers/gpu/drm/drm_syncobj.c | 6 +++--- drivers/gpu/drm/i915/gvt/interrupt.c | 2 +- drivers/infiniband/hw/mlx5/devx.c | 2 +- drivers/misc/ocxl/file.c | 2 +- drivers/s390/cio/vfio_ccw_chp.c | 2 +- drivers/s390/cio/vfio_ccw_drv.c | 4 ++-- drivers/s390/cio/vfio_ccw_ops.c | 6 +++--- drivers/s390/crypto/vfio_ap_ops.c | 2 +- drivers/usb/gadget/function/f_fs.c | 4 ++-- drivers/vdpa/vdpa_user/vduse_dev.c | 6 +++--- drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c | 2 +- drivers/vfio/pci/vfio_pci_core.c | 6 +++--- drivers/vfio/pci/vfio_pci_intrs.c | 12 ++++++------ drivers/vfio/platform/vfio_platform_irq.c | 4 ++-- drivers/vhost/vdpa.c | 4 ++-- drivers/vhost/vhost.c | 10 +++++----- drivers/vhost/vhost.h | 2 +- drivers/virt/acrn/ioeventfd.c | 2 +- drivers/xen/privcmd.c | 2 +- fs/aio.c | 2 +- fs/eventfd.c | 9 +++------ include/linux/eventfd.h | 4 ++-- mm/memcontrol.c | 10 +++++----- mm/vmpressure.c | 2 +- samples/vfio-mdev/mtty.c | 4 ++-- virt/kvm/eventfd.c | 4 ++-- 30 files changed, 60 insertions(+), 63 deletions(-)arch/x86/kvm/hyperv.c +1
-1@@ -2388,7 +2388,7 @@ static u16 kvm_hvcall_signal_event(struct kvm_vcpu *vcpu, struct kvm_hv_hcall *hif (!eventfd)return HV_STATUS_INVALID_PORT_ID ; -eventfd_signal (eventfd,1 ); +eventfd_signal (eventfd);return HV_STATUS_SUCCESS ; }arch/x86/kvm/xen.c +1
-1@@ -2088,7 +2088,7 @@ static bool kvm_xen_hcall_evtchn_send(struct kvm_vcpu *vcpu, u64 param, u64 *r)if (ret <0 && ret != -ENOTCONN )return false; }else { -eventfd_signal (evtchnfd->deliver.eventfd.ctx,1 ); +eventfd_signal (evtchnfd->deliver.eventfd.ctx); } *r =0 ;drivers/accel/habanalabs/common/device.c +1
-1@@ -2044,7 +2044,7 @@ static void hl_notifier_event_send(struct hl_notifier_event *notifier_event, u64 notifier_event->events_mask |= event_mask;if (notifier_event->eventfd) -eventfd_signal (notifier_event->eventfd,1 ); +eventfd_signal (notifier_event->eventfd);mutex_unlock (¬ifier_event->lock); }drivers/fpga/dfl.c +1
-1@@ -1872,7 +1872,7 @@ static irqreturn_t dfl_irq_handler(int irq, void *arg) {struct eventfd_ctx *trigger = arg; -eventfd_signal (trigger,1 ); +eventfd_signal (trigger);return IRQ_HANDLED ; }drivers/gpu/drm/drm_syncobj.c +3
-3@@ -1365,7 +1365,7 @@ static void syncobj_eventfd_entry_fence_func(struct dma_fence *fence,struct syncobj_eventfd_entry *entry = container_of(cb, struct syncobj_eventfd_entry, fence_cb); -eventfd_signal (entry->ev_fd_ctx,1 ); +eventfd_signal (entry->ev_fd_ctx);syncobj_eventfd_entry_free (entry); }@@ -1388,13 +1388,13 @@ syncobj_eventfd_entry_func(struct drm_syncobj *syncobj, entry->fence = fence;if (entry->flags &DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE ) { -eventfd_signal (entry->ev_fd_ctx,1 ); +eventfd_signal (entry->ev_fd_ctx);syncobj_eventfd_entry_free (entry); }else { ret =dma_fence_add_callback (fence, &entry->fence_cb, syncobj_eventfd_entry_fence_func);if (ret == -ENOENT ) { -eventfd_signal (entry->ev_fd_ctx,1 ); +eventfd_signal (entry->ev_fd_ctx);syncobj_eventfd_entry_free (entry); } }drivers/gpu/drm/i915/gvt/interrupt.c +1
-1@@ -454,7 +454,7 @@ static void inject_virtual_interrupt(struct intel_vgpu *vgpu)return ;if (!vgpu->msi_trigger)return ; -eventfd_signal (vgpu->msi_trigger,1 ); +eventfd_signal (vgpu->msi_trigger); } static void propagate_event(struct intel_gvt_irq *irq,drivers/infiniband/hw/mlx5/devx.c +1
-1@@ -2498,7 +2498,7 @@ static void dispatch_event_fd(struct list_head *fd_list,list_for_each_entry_rcu (item, fd_list, xa_list) {if (item->eventfd) -eventfd_signal (item->eventfd,1 ); +eventfd_signal (item->eventfd);else deliver_event (item, data); }drivers/misc/ocxl/file.c +1
-1@@ -184,7 +184,7 @@ static irqreturn_t irq_handler(void *private) {struct eventfd_ctx *ev_ctx = private; -eventfd_signal (ev_ctx,1 ); +eventfd_signal (ev_ctx);return IRQ_HANDLED ; }drivers/s390/cio/vfio_ccw_chp.c +1
-1@@ -115,7 +115,7 @@ static ssize_t vfio_ccw_crw_region_read(struct vfio_ccw_private *private,/* Notify the guest if more CRWs are on our queue */ if (!list_empty (&private->crw) && private->crw_trigger) -eventfd_signal (private->crw_trigger,1 ); +eventfd_signal (private->crw_trigger);return ret; }drivers/s390/cio/vfio_ccw_drv.c +2
-2@@ -112,7 +112,7 @@ void vfio_ccw_sch_io_todo(struct work_struct *work) private->state =VFIO_CCW_STATE_IDLE ;if (private->io_trigger) -eventfd_signal (private->io_trigger,1 ); +eventfd_signal (private->io_trigger); }void vfio_ccw_crw_todo (struct work_struct *work)@@ -122,7 +122,7 @@ void vfio_ccw_crw_todo(struct work_struct *work) private = container_of(work, struct vfio_ccw_private, crw_work);if (!list_empty (&private->crw) && private->crw_trigger) -eventfd_signal (private->crw_trigger,1 ); +eventfd_signal (private->crw_trigger); }/* drivers/s390/cio/vfio_ccw_ops.c +3
-3@@ -421,7 +421,7 @@ static int vfio_ccw_mdev_set_irqs(struct vfio_ccw_private *private,case VFIO_IRQ_SET_DATA_NONE : {if (*ctx) -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx);return 0 ; }case VFIO_IRQ_SET_DATA_BOOL :@@ -432,7 +432,7 @@ static int vfio_ccw_mdev_set_irqs(struct vfio_ccw_private *private,return -EFAULT ;if (trigger && *ctx) -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx);return 0 ; }case VFIO_IRQ_SET_DATA_EVENTFD :@@ -612,7 +612,7 @@ static void vfio_ccw_mdev_request(struct vfio_device *vdev, unsigned int count)"Relaying device request to user (#%u)\n" , count); -eventfd_signal (private->req_trigger,1 ); +eventfd_signal (private->req_trigger); }else if (count ==0 ) {dev_notice (dev,"No device request channel registered, blocked until released by user\n" );drivers/s390/crypto/vfio_ap_ops.c +1
-1@@ -1794,7 +1794,7 @@ static void vfio_ap_mdev_request(struct vfio_device *vdev, unsigned int count)"Relaying device request to user (#%u)\n" , count); -eventfd_signal (matrix_mdev->req_trigger,1 ); +eventfd_signal (matrix_mdev->req_trigger); }else if (count ==0 ) {dev_notice (dev,"No device request registered, blocked until released by user\n" );drivers/usb/gadget/function/f_fs.c +2
-2@@ -831,7 +831,7 @@ static void ffs_user_copy_worker(struct work_struct *work) io_data->kiocb->ki_complete (io_data->kiocb, ret);if (io_data->ffs->ffs_eventfd && !kiocb_has_eventfd) -eventfd_signal (io_data->ffs->ffs_eventfd,1 ); +eventfd_signal (io_data->ffs->ffs_eventfd);if (io_data->read)kfree (io_data->to_free);@@ -2738,7 +2738,7 @@ static void __ffs_event_add(struct ffs_data *ffs, ffs->ev.types[ffs->ev.count++] = type;wake_up_locked (&ffs->ev.waitq);if (ffs->ffs_eventfd) -eventfd_signal (ffs->ffs_eventfd,1 ); +eventfd_signal (ffs->ffs_eventfd); } static void ffs_event_add(struct ffs_data *ffs,drivers/vdpa/vdpa_user/vduse_dev.c +3
-3@@ -493,7 +493,7 @@ static void vduse_vq_kick(struct vduse_virtqueue *vq) goto unlock;if (vq->kickfd) -eventfd_signal (vq->kickfd,1 ); +eventfd_signal (vq->kickfd);else vq->kicked = true; unlock:@@ -911,7 +911,7 @@ static int vduse_kickfd_setup(struct vduse_dev *dev,eventfd_ctx_put (vq->kickfd); vq->kickfd = ctx;if (vq->ready && vq->kicked && vq->kickfd) { -eventfd_signal (vq->kickfd,1 ); +eventfd_signal (vq->kickfd); vq->kicked = false; }spin_unlock (&vq->kick_lock);@@ -960,7 +960,7 @@ static bool vduse_vq_signal_irqfd(struct vduse_virtqueue *vq)spin_lock_irq (&vq->irq_lock);if (vq->ready && vq->cb.trigger) { -eventfd_signal (vq->cb.trigger,1 ); +eventfd_signal (vq->cb.trigger); signal = true; }spin_unlock_irq (&vq->irq_lock);drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c +1
-1@@ -54,7 +54,7 @@ static irqreturn_t vfio_fsl_mc_irq_handler(int irq_num, void *arg) {struct vfio_fsl_mc_irq *mc_irq = (struct vfio_fsl_mc_irq *)arg; -eventfd_signal (mc_irq->trigger,1 ); +eventfd_signal (mc_irq->trigger);return IRQ_HANDLED ; }drivers/vfio/pci/vfio_pci_core.c +3
-3@@ -443,7 +443,7 @@ static int vfio_pci_core_runtime_resume(struct device *dev)*/ down_write (&vdev->memory_lock);if (vdev->pm_wake_eventfd_ctx) { -eventfd_signal (vdev->pm_wake_eventfd_ctx,1 ); +eventfd_signal (vdev->pm_wake_eventfd_ctx);__vfio_pci_runtime_pm_exit (vdev); }up_write (&vdev->memory_lock);@@ -1883,7 +1883,7 @@ void vfio_pci_core_request(struct vfio_device *core_vdev, unsigned int count)pci_notice_ratelimited (pdev,"Relaying device request to user (#%u)\n" , count); -eventfd_signal (vdev->req_trigger,1 ); +eventfd_signal (vdev->req_trigger); }else if (count ==0 ) {pci_warn (pdev,"No device request channel registered, blocked until released by user\n" );@@ -2302,7 +2302,7 @@ pci_ers_result_t vfio_pci_core_aer_err_detected(struct pci_dev *pdev,mutex_lock (&vdev->igate);if (vdev->err_trigger) -eventfd_signal (vdev->err_trigger,1 ); +eventfd_signal (vdev->err_trigger);mutex_unlock (&vdev->igate);drivers/vfio/pci/vfio_pci_intrs.c +6
-6@@ -94,7 +94,7 @@ static void vfio_send_intx_eventfd(void *opaque, void *unused) ctx =vfio_irq_ctx_get (vdev,0 );if (WARN_ON_ONCE (!ctx))return ; -eventfd_signal (ctx->trigger,1 ); +eventfd_signal (ctx->trigger); } }@@ -342,7 +342,7 @@ static irqreturn_t vfio_msihandler(int irq, void *arg) {struct eventfd_ctx *trigger = arg; -eventfd_signal (trigger,1 ); +eventfd_signal (trigger);return IRQ_HANDLED ; }@@ -689,11 +689,11 @@ static int vfio_pci_set_msi_trigger(struct vfio_pci_core_device *vdev,if (!ctx)continue ;if (flags &VFIO_IRQ_SET_DATA_NONE ) { -eventfd_signal (ctx->trigger,1 ); +eventfd_signal (ctx->trigger); }else if (flags &VFIO_IRQ_SET_DATA_BOOL ) {uint8_t *bools = data;if (bools[i - start]) -eventfd_signal (ctx->trigger,1 ); +eventfd_signal (ctx->trigger); } }return 0 ;@@ -707,7 +707,7 @@ static int vfio_pci_set_ctx_trigger_single(struct eventfd_ctx **ctx,if (flags &VFIO_IRQ_SET_DATA_NONE ) {if (*ctx) {if (count) { -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx); }else {eventfd_ctx_put (*ctx); *ctx =NULL ;@@ -722,7 +722,7 @@ static int vfio_pci_set_ctx_trigger_single(struct eventfd_ctx **ctx, trigger = *(uint8_t *)data;if (trigger && *ctx) -eventfd_signal (*ctx,1 ); +eventfd_signal (*ctx);return 0 ; }else if (flags &VFIO_IRQ_SET_DATA_EVENTFD ) {drivers/vfio/platform/vfio_platform_irq.c +2
-2@@ -155,7 +155,7 @@ static irqreturn_t vfio_automasked_irq_handler(int irq, void *dev_id)spin_unlock_irqrestore (&irq_ctx->lock, flags);if (ret ==IRQ_HANDLED ) -eventfd_signal (irq_ctx->trigger,1 ); +eventfd_signal (irq_ctx->trigger);return ret; }@@ -164,7 +164,7 @@ static irqreturn_t vfio_irq_handler(int irq, void *dev_id) {struct vfio_platform_irq *irq_ctx = dev_id; -eventfd_signal (irq_ctx->trigger,1 ); +eventfd_signal (irq_ctx->trigger);return IRQ_HANDLED ; }drivers/vhost/vdpa.c +2
-2@@ -178,7 +178,7 @@ static irqreturn_t vhost_vdpa_virtqueue_cb(void *private)struct eventfd_ctx *call_ctx = vq->call_ctx.ctx;if (call_ctx) -eventfd_signal (call_ctx,1 ); +eventfd_signal (call_ctx);return IRQ_HANDLED ; }@@ -189,7 +189,7 @@ static irqreturn_t vhost_vdpa_config_cb(void *private)struct eventfd_ctx *config_ctx = v->config_ctx;if (config_ctx) -eventfd_signal (config_ctx,1 ); +eventfd_signal (config_ctx);return IRQ_HANDLED ; }drivers/vhost/vhost.c +5
-5@@ -2248,7 +2248,7 @@ int vhost_log_write(struct vhost_virtqueue *vq, struct vhost_log *log, len -= l;if (!len) {if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx);return 0 ; } }@@ -2271,7 +2271,7 @@ static int vhost_update_used_flags(struct vhost_virtqueue *vq)log_used (vq, (used - (void __user *)vq->used),sizeof vq->used->flags);if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx); }return 0 ; }@@ -2289,7 +2289,7 @@ static int vhost_update_avail_event(struct vhost_virtqueue *vq)log_used (vq, (used - (void __user *)vq->used),sizeof *vhost_avail_event (vq));if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx); }return 0 ; }@@ -2715,7 +2715,7 @@ int vhost_add_used_n(struct vhost_virtqueue *vq, struct vring_used_elem *heads,log_used (vq, offsetof(struct vring_used , idx),sizeof vq->used->idx);if (vq->log_ctx) -eventfd_signal (vq->log_ctx,1 ); +eventfd_signal (vq->log_ctx); }return r; }@@ -2763,7 +2763,7 @@ void vhost_signal(struct vhost_dev *dev, struct vhost_virtqueue *vq) {/* Signal the Guest tell them we used something up. */ if (vq->call_ctx.ctx &&vhost_notify (dev, vq)) -eventfd_signal (vq->call_ctx.ctx,1 ); +eventfd_signal (vq->call_ctx.ctx); }EXPORT_SYMBOL_GPL (vhost_signal);drivers/vhost/vhost.h +1
-1@@ -249,7 +249,7 @@ void vhost_iotlb_map_free(struct vhost_iotlb *iotlb,#define vq_err (vq, fmt, ...) do { \ pr_debug(pr_fmt(fmt), ##__VA_ARGS__); \ if ((vq)->error_ctx) \ - eventfd_signal((vq)->error_ctx, 1);\ + eventfd_signal((vq)->error_ctx);\ } while (0)enum {drivers/virt/acrn/ioeventfd.c +1
-1@@ -223,7 +223,7 @@ static int acrn_ioeventfd_handler(struct acrn_ioreq_client *client,mutex_lock (&client->vm->ioeventfds_lock); p =hsm_ioeventfd_match (client->vm, addr, val, size, req->type);if (p) -eventfd_signal (p->eventfd,1 ); +eventfd_signal (p->eventfd);mutex_unlock (&client->vm->ioeventfds_lock);return 0 ;drivers/xen/privcmd.c +1
-1@@ -1147,7 +1147,7 @@ static irqreturn_t ioeventfd_interrupt(int irq, void *dev_id)if (ioreq->addr == kioeventfd->addr +VIRTIO_MMIO_QUEUE_NOTIFY && ioreq->size == kioeventfd->addr_len && (ioreq->data &QUEUE_NOTIFY_VQ_MASK ) == kioeventfd->vq) { -eventfd_signal (kioeventfd->eventfd,1 ); +eventfd_signal (kioeventfd->eventfd); state =STATE_IORESP_READY ;break ; }fs/aio.c +1
-1@@ -1166,7 +1166,7 @@ static void aio_complete(struct aio_kiocb *iocb)* from IRQ context. */ if (iocb->ki_eventfd) -eventfd_signal (iocb->ki_eventfd,1 ); +eventfd_signal (iocb->ki_eventfd);/* * We have to order our ring_info tail store above and test fs/eventfd.c +3
-6@@ -74,20 +74,17 @@ __u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __u64 n, __poll_t mask)/** * eventfd_signal - Adds @n to the eventfd counter. * @ctx: [in] Pointer to the eventfd context. -* @n: [in] Value of the counter to be added to the eventfd internal counter. -* The value cannot be negative. * * This function is supposed to be called by the kernel in paths that do not * allow sleeping. In this function we allow the counter to reach the ULLONG_MAX * value, and we signal this as overflow condition by returning a EPOLLERR * to poll(2). * -* Returns the amount by which the counter was incremented. This will be less -* than @n if the counter has overflowed. +* Returns the amount by which the counter was incremented. */ -__u64 eventfd_signal (struct eventfd_ctx *ctx,__u64 n) +__u64 eventfd_signal (struct eventfd_ctx *ctx) { -return eventfd_signal_mask (ctx, n,0 ); +return eventfd_signal_mask (ctx,1 ,0 ); }EXPORT_SYMBOL_GPL (eventfd_signal);include/linux/eventfd.h +2
-2@@ -35,7 +35,7 @@ void eventfd_ctx_put(struct eventfd_ctx *ctx);struct file *eventfd_fget (int fd);struct eventfd_ctx *eventfd_ctx_fdget (int fd);struct eventfd_ctx *eventfd_ctx_fileget (struct file *file); -__u64 eventfd_signal (struct eventfd_ctx *ctx,__u64 n); +__u64 eventfd_signal (struct eventfd_ctx *ctx);__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__u64 n,__poll_t mask);int eventfd_ctx_remove_wait_queue (struct eventfd_ctx *ctx,wait_queue_entry_t *wait,__u64 *cnt);@@ -58,7 +58,7 @@ static inline struct eventfd_ctx *eventfd_ctx_fdget(int fd)return ERR_PTR (-ENOSYS ); } -static inline int eventfd_signal (struct eventfd_ctx *ctx,__u64 n) +static inline int eventfd_signal (struct eventfd_ctx *ctx) {return -ENOSYS ; }mm/memcontrol.c +5
-5@@ -4378,7 +4378,7 @@ static void __mem_cgroup_threshold(struct mem_cgroup *memcg, bool swap)* only one element of the array here. */ for (; i >=0 &&unlikely (t->entries[i].threshold > usage); i--) -eventfd_signal (t->entries[i].eventfd,1 ); +eventfd_signal (t->entries[i].eventfd);/* i = current_threshold + 1 */ i++;@@ -4390,7 +4390,7 @@ static void __mem_cgroup_threshold(struct mem_cgroup *memcg, bool swap)* only one element of the array here. */ for (; i < t->size &&unlikely (t->entries[i].threshold <= usage); i++) -eventfd_signal (t->entries[i].eventfd,1 ); +eventfd_signal (t->entries[i].eventfd);/* Update current_threshold */ t->current_threshold = i -1 ;@@ -4430,7 +4430,7 @@ static int mem_cgroup_oom_notify_cb(struct mem_cgroup *memcg)spin_lock (&memcg_oom_lock);list_for_each_entry (ev, &memcg->oom_notify, list) -eventfd_signal (ev->eventfd,1 ); +eventfd_signal (ev->eventfd);spin_unlock (&memcg_oom_lock);return 0 ;@@ -4649,7 +4649,7 @@ static int mem_cgroup_oom_register_event(struct mem_cgroup *memcg,/* already in OOM ? */ if (memcg->under_oom) -eventfd_signal (eventfd,1 ); +eventfd_signal (eventfd);spin_unlock (&memcg_oom_lock);return 0 ;@@ -4941,7 +4941,7 @@ static void memcg_event_remove(struct work_struct *work) event->unregister_event (memcg, event->eventfd);/* Notify userspace the event is going away. */ -eventfd_signal (event->eventfd,1 ); +eventfd_signal (event->eventfd);eventfd_ctx_put (event->eventfd);kfree (event);mm/vmpressure.c +1
-1@@ -169,7 +169,7 @@ static bool vmpressure_event(struct vmpressure *vmpr,continue ;if (level < ev->level)continue ; -eventfd_signal (ev->efd,1 ); +eventfd_signal (ev->efd); ret = true; }mutex_unlock (&vmpr->events_lock);samples/vfio-mdev/mtty.c +2
-2@@ -234,10 +234,10 @@ static void mtty_trigger_interrupt(struct mdev_state *mdev_state)if (is_msi (mdev_state)) {if (mdev_state->msi_evtfd) -eventfd_signal (mdev_state->msi_evtfd,1 ); +eventfd_signal (mdev_state->msi_evtfd); }else if (is_intx (mdev_state)) {if (mdev_state->intx_evtfd && !mdev_state->intx_mask) { -eventfd_signal (mdev_state->intx_evtfd,1 ); +eventfd_signal (mdev_state->intx_evtfd); mdev_state->intx_mask = true; } }virt/kvm/eventfd.c +2
-3@@ -61,7 +61,7 @@ static void irqfd_resampler_notify(struct kvm_kernel_irqfd_resampler *resampler)list_for_each_entry_srcu (irqfd, &resampler->list, resampler_link,srcu_read_lock_held (&resampler->kvm->irq_srcu)) -eventfd_signal (irqfd->resamplefd,1 ); +eventfd_signal (irqfd->resamplefd); }/* @@ -786,7 +786,7 @@ ioeventfd_write(struct kvm_vcpu *vcpu, struct kvm_io_device *this, gpa_t addr,if (!ioeventfd_in_range (p, addr, len, val))return -EOPNOTSUPP ; -eventfd_signal (p->eventfd,1 ); +eventfd_signal (p->eventfd);return 0 ; } --2.42.0
Re: [PATCH v2 2/4] eventfd: simplify eventfd_signal()
In reply to Christian BraunerQuoted 6 lines · Christian Brauner
Ever since the evenfd type was introduced back in 2007 in commit
e1ad7468c77d("signal/timer/event: eventfd core") theeventfd_signal()function only ever passed 1 as a value for @n. There's no point in keeping that additional argument.
Quoted 6 lines
Signed-off-by Christian Brauner <[email protected]>--- arch/x86/kvm/hyperv.c | 2 +- arch/x86/kvm/xen.c | 2 +- virt/kvm/eventfd.c | 4 ++-- 30 files changed, 60 insertions(+), 63 deletions(-)
For KVM:
Christian Brauner
maintainerRe: [PATCH v2 2/4] eventfd: simplify eventfd_signal()
Quoted 14 lines · Paolo Bonzini
Quoted 6 lines · Christian Brauner
Ever since the evenfd type was introduced back in 2007 in commit
e1ad7468c77d("signal/timer/event: eventfd core") theeventfd_signal()function only ever passed 1 as a value for @n. There's no point in keeping that additional argument.Quoted 6 lines
Signed-off-by Christian Brauner <[email protected]>--- arch/x86/kvm/hyperv.c | 2 +- arch/x86/kvm/xen.c | 2 +- virt/kvm/eventfd.c | 4 ++-- 30 files changed, 60 insertions(+), 63 deletions(-)
Quoted 3 lines
For KVM:
Acked-by Paolo Bonzini <[email protected]>
I really appreciate all of the ACKs but just fyi that this was merged for v6.8-rc1. Just so that there's no confusion!
Christian Brauner
maintainerPATCH v2 3/4 eventfd: simplify eventfd_signal_mask()
In reply to Christian BraunerThe eventfd_signal_mask() helper was introduced for io_uring and similar to eventfd_signal() it always passed 1 for @n. So don't bother with that argument at all.
--- fs/eventfd.c | 7 ++++--- include/linux/eventfd.h | 5 ++--- io_uring/io_uring.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-)
fs/eventfd.c +4 -3
@@ -43,9 +43,10 @@ struct eventfd_ctx {int id; }; -__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__u64 n,__poll_t mask) +__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__poll_t mask) {unsigned long flags; +__u64 n =1 ;/* * Deadlock or stack overflow issues can happen if we recurse here
@@ -68,7 +69,7 @@ __u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __u64 n, __poll_t mask) current->in_eventfd =0 ;spin_unlock_irqrestore (&ctx->wqh.lock, flags); -return n; +return n ==1 ; }/**
@@ -84,7 +85,7 @@ __u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __u64 n, __poll_t mask)*/ __u64 eventfd_signal (struct eventfd_ctx *ctx) { -return eventfd_signal_mask (ctx,1 ,0 ); +return eventfd_signal_mask (ctx,0 ); }EXPORT_SYMBOL_GPL (eventfd_signal);
include/linux/eventfd.h +2 -3
@@ -36,7 +36,7 @@ struct file *eventfd_fget(int fd);struct eventfd_ctx *eventfd_ctx_fdget (int fd);struct eventfd_ctx *eventfd_ctx_fileget (struct file *file);__u64 eventfd_signal (struct eventfd_ctx *ctx); -__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__u64 n,__poll_t mask); +__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__poll_t mask);int eventfd_ctx_remove_wait_queue (struct eventfd_ctx *ctx,wait_queue_entry_t *wait,__u64 *cnt);void eventfd_ctx_do_read (struct eventfd_ctx *ctx,__u64 *cnt);
@@ -63,8 +63,7 @@ static inline int eventfd_signal(struct eventfd_ctx *ctx)return -ENOSYS ; } -static inline int eventfd_signal_mask (struct eventfd_ctx *ctx,__u64 n, -unsigned mask) +static inline int eventfd_signal_mask (struct eventfd_ctx *ctx,unsigned mask) {return -ENOSYS ; }
io_uring/io_uring.c +2 -2
@@ -558,7 +558,7 @@ static void io_eventfd_ops(struct rcu_head *rcu)int ops =atomic_xchg (&ev_fd->ops,0 );if (ops &BIT (IO_EVENTFD_OP_SIGNAL_BIT )) -eventfd_signal_mask (ev_fd->cq_ev_fd,1 ,EPOLL_URING_WAKE ); +eventfd_signal_mask (ev_fd->cq_ev_fd,EPOLL_URING_WAKE );/* IO_EVENTFD_OP_FREE_BIT may not be set here depending on callback * ordering in a race but if references are 0 we know we have to free
@@ -594,7 +594,7 @@ static void io_eventfd_signal(struct io_ring_ctx *ctx) goto out;if (likely (eventfd_signal_allowed ())) { -eventfd_signal_mask (ev_fd->cq_ev_fd,1 ,EPOLL_URING_WAKE ); +eventfd_signal_mask (ev_fd->cq_ev_fd,EPOLL_URING_WAKE ); }else {atomic_inc (&ev_fd->refs);if (!atomic_fetch_or (BIT (IO_EVENTFD_OP_SIGNAL_BIT ), &ev_fd->ops))
Signature · 1 line
2.42.0
Re: [PATCH v2 3/4] eventfd: simplify eventfd_signal_mask()
Quoted 5 lines · Christian Brauner
The
eventfd_signal_mask()helper was introduced forio_uringand similar toeventfd_signal()it always passed 1 for @n. So don't bother with that argument at all.Signed-off-by Christian Brauner <[email protected]>
Nice. Feel free to add:
Honza
Quoted 89 lines
--- fs/eventfd.c | 7 ++++--- include/linux/eventfd.h | 5 ++--- io_uring/io_uring.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-)fs/eventfd.c +4
-3@@ -43,9 +43,10 @@ struct eventfd_ctx {int id; }; -__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__u64 n,__poll_t mask) +__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__poll_t mask) {unsigned long flags; +__u64 n =1 ;/* * Deadlock or stack overflow issues can happen if we recurse here @@ -68,7 +69,7 @@ __u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __u64 n, __poll_t mask) current->in_eventfd =0 ;spin_unlock_irqrestore (&ctx->wqh.lock, flags); -return n; +return n ==1 ; }/** @@ -84,7 +85,7 @@ __u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __u64 n, __poll_t mask)*/ __u64 eventfd_signal (struct eventfd_ctx *ctx) { -return eventfd_signal_mask (ctx,1 ,0 ); +return eventfd_signal_mask (ctx,0 ); }EXPORT_SYMBOL_GPL (eventfd_signal);include/linux/eventfd.h +2
-3@@ -36,7 +36,7 @@ struct file *eventfd_fget(int fd);struct eventfd_ctx *eventfd_ctx_fdget (int fd);struct eventfd_ctx *eventfd_ctx_fileget (struct file *file);__u64 eventfd_signal (struct eventfd_ctx *ctx); -__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__u64 n,__poll_t mask); +__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__poll_t mask);int eventfd_ctx_remove_wait_queue (struct eventfd_ctx *ctx,wait_queue_entry_t *wait,__u64 *cnt);void eventfd_ctx_do_read (struct eventfd_ctx *ctx,__u64 *cnt);@@ -63,8 +63,7 @@ static inline int eventfd_signal(struct eventfd_ctx *ctx)return -ENOSYS ; } -static inline int eventfd_signal_mask (struct eventfd_ctx *ctx,__u64 n, -unsigned mask) +static inline int eventfd_signal_mask (struct eventfd_ctx *ctx,unsigned mask) {return -ENOSYS ; }io_uring/io_uring.c +2
-2@@ -558,7 +558,7 @@ static void io_eventfd_ops(struct rcu_head *rcu)int ops =atomic_xchg (&ev_fd->ops,0 );if (ops &BIT (IO_EVENTFD_OP_SIGNAL_BIT )) -eventfd_signal_mask (ev_fd->cq_ev_fd,1 ,EPOLL_URING_WAKE ); +eventfd_signal_mask (ev_fd->cq_ev_fd,EPOLL_URING_WAKE );/* IO_EVENTFD_OP_FREE_BIT may not be set here depending on callback * ordering in a race but if references are 0 we know we have to free @@ -594,7 +594,7 @@ static void io_eventfd_signal(struct io_ring_ctx *ctx) goto out;if (likely (eventfd_signal_allowed ())) { -eventfd_signal_mask (ev_fd->cq_ev_fd,1 ,EPOLL_URING_WAKE ); +eventfd_signal_mask (ev_fd->cq_ev_fd,EPOLL_URING_WAKE ); }else {atomic_inc (&ev_fd->refs);if (!atomic_fetch_or (BIT (IO_EVENTFD_OP_SIGNAL_BIT ), &ev_fd->ops))Signature · 2 lines
-- 2.42.0
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Christian Brauner
maintainerPATCH v2 4/4 eventfd: make eventfd_signal{_mask}() void
In reply to Christian BraunerNo caller care about the return value.
--- fs/eventfd.c | 40 +++++++++++++++------------------------- include/linux/eventfd.h | 16 +++++++--------- 2 files changed, 22 insertions(+), 34 deletions(-)
fs/eventfd.c +15 -25
@@ -43,10 +43,19 @@ struct eventfd_ctx {int id; }; -__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__poll_t mask) +/** +* eventfd_signal - Adds @n to the eventfd counter. +* @ctx: [in] Pointer to the eventfd context. +* @mask: [in] poll mask +* +* This function is supposed to be called by the kernel in paths that do not +* allow sleeping. In this function we allow the counter to reach the ULLONG_MAX +* value, and we signal this as overflow condition by returning a EPOLLERR +* to poll(2). +*/ +void eventfd_signal_mask (struct eventfd_ctx *ctx,__poll_t mask) {unsigned long flags; -__u64 n =1 ;/* * Deadlock or stack overflow issues can happen if we recurse here
@@ -57,37 +66,18 @@ __u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __poll_t mask)* safe context. */ if (WARN_ON_ONCE (current->in_eventfd)) -return 0 ; +return ;spin_lock_irqsave (&ctx->wqh.lock, flags); current->in_eventfd =1 ; -if (ULLONG_MAX - ctx->count < n) - n =ULLONG_MAX - ctx->count; - ctx->count += n; +if (ctx->count <ULLONG_MAX ) + ctx->count++;if (waitqueue_active (&ctx->wqh))wake_up_locked_poll (&ctx->wqh,EPOLLIN | mask); current->in_eventfd =0 ;spin_unlock_irqrestore (&ctx->wqh.lock, flags); - -return n ==1 ; -} - -/** -* eventfd_signal - Adds @n to the eventfd counter. -* @ctx: [in] Pointer to the eventfd context. -* -* This function is supposed to be called by the kernel in paths that do not -* allow sleeping. In this function we allow the counter to reach the ULLONG_MAX -* value, and we signal this as overflow condition by returning a EPOLLERR -* to poll(2). -* -* Returns the amount by which the counter was incremented. -*/ -__u64 eventfd_signal (struct eventfd_ctx *ctx) -{ -return eventfd_signal_mask (ctx,0 ); } -EXPORT_SYMBOL_GPL (eventfd_signal); +EXPORT_SYMBOL_GPL (eventfd_signal_mask);static void eventfd_free_ctx (struct eventfd_ctx *ctx) {
include/linux/eventfd.h +7 -9
@@ -35,8 +35,7 @@ void eventfd_ctx_put(struct eventfd_ctx *ctx);struct file *eventfd_fget (int fd);struct eventfd_ctx *eventfd_ctx_fdget (int fd);struct eventfd_ctx *eventfd_ctx_fileget (struct file *file); -__u64 eventfd_signal (struct eventfd_ctx *ctx); -__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__poll_t mask); +void eventfd_signal_mask (struct eventfd_ctx *ctx,__poll_t mask);int eventfd_ctx_remove_wait_queue (struct eventfd_ctx *ctx,wait_queue_entry_t *wait,__u64 *cnt);void eventfd_ctx_do_read (struct eventfd_ctx *ctx,__u64 *cnt);
@@ -58,14 +57,8 @@ static inline struct eventfd_ctx *eventfd_ctx_fdget(int fd)return ERR_PTR (-ENOSYS ); } -static inline int eventfd_signal (struct eventfd_ctx *ctx) +static inline void eventfd_signal_mask (struct eventfd_ctx *ctx,unsigned mask) { -return -ENOSYS ; -} - -static inline int eventfd_signal_mask (struct eventfd_ctx *ctx,unsigned mask) -{ -return -ENOSYS ; }static inline void eventfd_ctx_put (struct eventfd_ctx *ctx)
@@ -91,5 +84,10 @@ static inline void eventfd_ctx_do_read(struct eventfd_ctx *ctx, __u64 *cnt)#endif +static inline void eventfd_signal (struct eventfd_ctx *ctx) +{ +eventfd_signal_mask (ctx,0 ); +} +#endif /* _LINUX_EVENTFD_H */
Signature · 1 line
2.42.0
Re: [PATCH v2 4/4] eventfd: make eventfd_signal{_mask}() void
Quoted 3 lines · Christian Brauner
No caller care about the return value.
Signed-off-by Christian Brauner <[email protected]>
Yup. Feel free to add:
Honza
Quoted 118 lines
--- fs/eventfd.c | 40 +++++++++++++++------------------------- include/linux/eventfd.h | 16 +++++++--------- 2 files changed, 22 insertions(+), 34 deletions(-)fs/eventfd.c +15
-25@@ -43,10 +43,19 @@ struct eventfd_ctx {int id; }; -__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__poll_t mask) +/** +* eventfd_signal - Adds @n to the eventfd counter. +* @ctx: [in] Pointer to the eventfd context. +* @mask: [in] poll mask +* +* This function is supposed to be called by the kernel in paths that do not +* allow sleeping. In this function we allow the counter to reach the ULLONG_MAX +* value, and we signal this as overflow condition by returning a EPOLLERR +* to poll(2). +*/ +void eventfd_signal_mask (struct eventfd_ctx *ctx,__poll_t mask) {unsigned long flags; -__u64 n =1 ;/* * Deadlock or stack overflow issues can happen if we recurse here @@ -57,37 +66,18 @@ __u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __poll_t mask)* safe context. */ if (WARN_ON_ONCE (current->in_eventfd)) -return 0 ; +return ;spin_lock_irqsave (&ctx->wqh.lock, flags); current->in_eventfd =1 ; -if (ULLONG_MAX - ctx->count < n) - n =ULLONG_MAX - ctx->count; - ctx->count += n; +if (ctx->count <ULLONG_MAX ) + ctx->count++;if (waitqueue_active (&ctx->wqh))wake_up_locked_poll (&ctx->wqh,EPOLLIN | mask); current->in_eventfd =0 ;spin_unlock_irqrestore (&ctx->wqh.lock, flags); - -return n ==1 ; -} - -/** -* eventfd_signal - Adds @n to the eventfd counter. -* @ctx: [in] Pointer to the eventfd context. -* -* This function is supposed to be called by the kernel in paths that do not -* allow sleeping. In this function we allow the counter to reach the ULLONG_MAX -* value, and we signal this as overflow condition by returning a EPOLLERR -* to poll(2). -* -* Returns the amount by which the counter was incremented. -*/ -__u64 eventfd_signal (struct eventfd_ctx *ctx) -{ -return eventfd_signal_mask (ctx,0 ); } -EXPORT_SYMBOL_GPL (eventfd_signal); +EXPORT_SYMBOL_GPL (eventfd_signal_mask);static void eventfd_free_ctx (struct eventfd_ctx *ctx) {include/linux/eventfd.h +7
-9@@ -35,8 +35,7 @@ void eventfd_ctx_put(struct eventfd_ctx *ctx);struct file *eventfd_fget (int fd);struct eventfd_ctx *eventfd_ctx_fdget (int fd);struct eventfd_ctx *eventfd_ctx_fileget (struct file *file); -__u64 eventfd_signal (struct eventfd_ctx *ctx); -__u64 eventfd_signal_mask (struct eventfd_ctx *ctx,__poll_t mask); +void eventfd_signal_mask (struct eventfd_ctx *ctx,__poll_t mask);int eventfd_ctx_remove_wait_queue (struct eventfd_ctx *ctx,wait_queue_entry_t *wait,__u64 *cnt);void eventfd_ctx_do_read (struct eventfd_ctx *ctx,__u64 *cnt);@@ -58,14 +57,8 @@ static inline struct eventfd_ctx *eventfd_ctx_fdget(int fd)return ERR_PTR (-ENOSYS ); } -static inline int eventfd_signal (struct eventfd_ctx *ctx) +static inline void eventfd_signal_mask (struct eventfd_ctx *ctx,unsigned mask) { -return -ENOSYS ; -} - -static inline int eventfd_signal_mask (struct eventfd_ctx *ctx,unsigned mask) -{ -return -ENOSYS ; }static inline void eventfd_ctx_put (struct eventfd_ctx *ctx)@@ -91,5 +84,10 @@ static inline void eventfd_ctx_do_read(struct eventfd_ctx *ctx, __u64 *cnt)#endif +static inline void eventfd_signal (struct eventfd_ctx *ctx) +{ +eventfd_signal_mask (ctx,0 ); +} +#endif /* _LINUX_EVENTFD_H */ Signature · 2 lines
-- 2.42.0
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for eventfd: simplify signal helpers (rev2)
In reply to Christian Brauner== Series Details ==
== Series Details ==
Series: eventfd: simplify signal helpers (rev2)
URL : https://patchwork.freedesktop.org/series/120668/
State : warning
== Summary ==
Error: dim checkpatch failede92bae5ad94b i915: make inject_virtual_interrupt() voidbfcd18e1f64a eventfd: simplify eventfd_signal()
-:465: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 32) #465: FILE: drivers/vhost/vhost.h:251:
if ((vq)->error_ctx) \
+ eventfd_signal((vq)->error_ctx);\
total: 0 errors, 1 warnings, 0 checks, 471 lines checked f60980b7c2ce eventfd: simplify eventfd_signal_mask()
-:66: WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #66: FILE: include/linux/eventfd.h:66:
+static inline int eventfd_signal_mask(struct eventfd_ctx *ctx, unsigned mask)
total: 0 errors, 1 warnings, 0 checks, 60 lines checked e27025df3d70 eventfd: make eventfd_signal{_mask}() void
-:98: WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #98: FILE: include/linux/eventfd.h:60:
+static inline void eventfd_signal_mask(struct eventfd_ctx *ctx, unsigned mask)
total: 0 errors, 1 warnings, 0 checks, 96 lines checked
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for eventfd: simplify signal helpers (rev2)
In reply to Christian Brauner== Series Details ==
== Series Details ==
Series: eventfd: simplify signal helpers (rev2)
URL : https://patchwork.freedesktop.org/series/120668/
State : warning
== Summary ==
Error: dim sparse failed
Sparse version: v0.6.2
Fast mode used, each commit won't be checked separately.
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for eventfd: simplify signal helpers (rev2)
In reply to Christian Brauner== Series Details ==
== Series Details ==
Series: eventfd: simplify signal helpers (rev2)
URL : https://patchwork.freedesktop.org/series/120668/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_13912 -> Patchwork_120668v2
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/index.html
Participating hosts (38 -> 37)
------------------------------
Additional (1): bat-dg1-5
Missing (2): bat-kbl-2 fi-snb-2520m
Known issues
------------
Here are the changes found in Patchwork_120668v2 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s0@smem:
- bat-dg2-9: [PASS][1] -> [INCOMPLETE][2] ([i915#8797] / [i915#9275])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/bat-dg2-9/igt@gem_exec_suspend@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-dg2-9/igt@gem_exec_suspend@[email protected]
* igt@gem_mmap@basic:
- bat-dg1-5: NOTRUN -> [SKIP][3] ([i915#4083])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-dg1-5/igt@[email protected]
* igt@gem_tiled_fence_blits@basic:
- bat-dg1-5: NOTRUN -> [SKIP][4] ([i915#4077]) +2 other tests skip
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-dg1-5/igt@[email protected]
* igt@gem_tiled_pread_basic:
- bat-dg1-5: NOTRUN -> [SKIP][5] ([i915#4079]) +1 other test skip
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-dg1-5/igt@gem_tiled_pread_basic.html
* igt@i915_module_load@reload:
- fi-skl-6600u: [PASS][6] -> [DMESG-WARN][7] ([i915#1982])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/fi-skl-6600u/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/fi-skl-6600u/igt@[email protected]
* igt@i915_pm_rps@basic-api:
- bat-dg1-5: NOTRUN -> [SKIP][8] ([i915#6621])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-dg1-5/igt@[email protected]
* igt@i915_selftest@live@gt_heartbeat:
- fi-apl-guc: [PASS][9] -> [DMESG-FAIL][10] ([i915#5334])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
* igt@i915_selftest@live@hangcheck:
- bat-adls-5: [PASS][11] -> [DMESG-WARN][12] ([i915#5591])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/bat-adls-5/igt@i915_selftest@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-adls-5/igt@i915_selftest@[email protected]
* igt@kms_addfb_basic@basic-x-tiled-legacy:
- bat-dg1-5: NOTRUN -> [SKIP][13] ([i915#4212]) +7 other tests skip
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-dg1-5/igt@[email protected]
* igt@kms_addfb_basic@basic-y-tiled-legacy:
- bat-dg1-5: NOTRUN -> [SKIP][14] ([i915#4215])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-dg1-5/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- bat-dg1-5: NOTRUN -> [SKIP][15] ([i915#4103] / [i915#4213]) +1 other test skip
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-dg1-5/igt@[email protected]
* igt@kms_dsc@dsc-basic:
- bat-dg1-5: NOTRUN -> [SKIP][16] ([i915#3555] / [i915#3840])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-dg1-5/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- bat-dg1-5: NOTRUN -> [SKIP][17] ([fdo#109285])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-dg1-5/igt@[email protected]
* igt@kms_hdmi_inject@inject-audio:
- bat-dg1-5: NOTRUN -> [SKIP][18] ([i915#433])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-dg1-5/igt@[email protected]
- fi-kbl-guc: [PASS][19] -> [FAIL][20] ([IGT#3])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/fi-kbl-guc/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/fi-kbl-guc/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1:
- bat-rplp-1: [PASS][21] -> [ABORT][22] ([i915#8668])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/bat-rplp-1/igt@kms_pipe_crc_basic@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-rplp-1/igt@kms_pipe_crc_basic@[email protected]
* igt@kms_setmode@basic-clone-single-crtc:
- bat-dg1-5: NOTRUN -> [SKIP][23] ([i915#3555])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-dg1-5/igt@[email protected]
* igt@prime_vgem@basic-fence-read:
- bat-dg1-5: NOTRUN -> [SKIP][24] ([i915#3708]) +3 other tests skip
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-dg1-5/igt@[email protected]
* igt@prime_vgem@basic-gtt:
- bat-dg1-5: NOTRUN -> [SKIP][25] ([i915#3708] / [i915#4077]) +1 other test skip
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-dg1-5/igt@[email protected]
#### Possible fixes ####
* {igt@kms_psr@psr_cursor_plane_move@edp-1}:
- bat-jsl-3: [SKIP][26] ([i915#9648]) -> [PASS][27] +3 other tests pass
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/bat-jsl-3/igt@kms_psr@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/bat-jsl-3/igt@kms_psr@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[IGT#3]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/3
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#433]: https://gitlab.freedesktop.org/drm/intel/issues/433
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#5591]: https://gitlab.freedesktop.org/drm/intel/issues/5591
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668
[i915#8797]: https://gitlab.freedesktop.org/drm/intel/issues/8797
[i915#9275]: https://gitlab.freedesktop.org/drm/intel/issues/9275
[i915#9648]: https://gitlab.freedesktop.org/drm/intel/issues/9648
[i915#9673]: https://gitlab.freedesktop.org/drm/intel/issues/9673
Build changes
-------------
* Linux: CI_DRM_13912 -> Patchwork_120668v2
CI-20190529: 20190529
CI_DRM_13912: c786dbcdf438209819ac979f1931b5e380eddf1b @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7597: 380983dbd9bb2f7eea5e917e8fed0569bfe8cf9c @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_120668v2: c786dbcdf438209819ac979f1931b5e380eddf1b @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
217d8f138332 eventfd: make eventfd_signal{_mask}() void 8446137c6a5a eventfd: simplify eventfd_signal_mask() 9583bd54911f eventfd: simplify eventfd_signal() bc6fca6ec866 i915: make inject_virtual_interrupt() void
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/index.html
Quoted 6 lines · Christian Brauner
Hey everyone,
This simplifies the
eventfd_signal()andeventfd_signal_mask()helpers significantly. They can be made void and not take any unnecessary arguments.
Quoted 7 lines
I've added a few more simplifications based on Sean's suggestion.
Signed-off-by Christian Brauner <[email protected]>Changes in v2:
- further simplify helpers
- Link to v1: https://lore.kernel.org/r/[email protected]
Only oddity I spotted was the kerneldoc, which someone else already brought up.
Signature · 1 line
Jens Axboe
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for eventfd: simplify signal helpers (rev2)
In reply to Christian Brauner== Series Details ==
== Series Details ==
Series: eventfd: simplify signal helpers (rev2)
URL : https://patchwork.freedesktop.org/series/120668/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_13912_full -> Patchwork_120668v2_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/index.html
Participating hosts (10 -> 11)
------------------------------
Additional (1): shard-tglu0
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_120668v2_full:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* {igt@kms_dirtyfb@fbc-dirtyfb-ioctl@a-hdmi-a-3}:
- shard-dg1: NOTRUN -> [SKIP][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-12/igt@kms_dirtyfb@[email protected]
Known issues
------------
Here are the changes found in Patchwork_120668v2_full that come from known issues:
### CI changes ###
#### Issues hit ####
* boot:
- shard-glk: ([PASS][2], [PASS][3], [PASS][4], [PASS][5], [PASS][6], [PASS][7], [PASS][8], [PASS][9], [PASS][10], [PASS][11], [PASS][12], [PASS][13], [PASS][14], [PASS][15], [PASS][16], [PASS][17], [PASS][18], [PASS][19], [PASS][20], [PASS][21], [PASS][22], [PASS][23], [PASS][24], [PASS][25], [PASS][26]) -> ([PASS][27], [PASS][28], [PASS][29], [PASS][30], [PASS][31], [PASS][32], [PASS][33], [PASS][34], [PASS][35], [PASS][36], [PASS][37], [PASS][38], [PASS][39], [PASS][40], [PASS][41], [PASS][42], [PASS][43], [PASS][44], [PASS][45], [PASS][46], [PASS][47], [PASS][48], [FAIL][49], [PASS][50]) ([i915#8293])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk7/boot.html
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk1/boot.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk1/boot.html
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk1/boot.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk2/boot.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk2/boot.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk2/boot.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk3/boot.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk3/boot.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk3/boot.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk9/boot.html
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk9/boot.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk4/boot.html
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk4/boot.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk4/boot.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk5/boot.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk5/boot.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk5/boot.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk6/boot.html
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk9/boot.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk6/boot.html
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk8/boot.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk8/boot.html
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk8/boot.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk6/boot.html
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk9/boot.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk9/boot.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk9/boot.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk8/boot.html
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk8/boot.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk8/boot.html
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk7/boot.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk7/boot.html
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk7/boot.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk6/boot.html
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk6/boot.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk6/boot.html
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk5/boot.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk4/boot.html
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk4/boot.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk4/boot.html
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk3/boot.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk3/boot.html
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk3/boot.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk2/boot.html
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk2/boot.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk2/boot.html
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk1/boot.html
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk1/boot.html
### IGT changes ###
#### Issues hit ####
* igt@api_intel_bb@object-reloc-purge-cache:
- shard-mtlp: NOTRUN -> [SKIP][51] ([i915#8411]) +1 other test skip
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@debugfs_test@read_all_entries_display_off:
- shard-mtlp: [PASS][52] -> [ABORT][53] ([i915#9414])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-mtlp-2/igt@debugfs_test@read_all_entries_display_off.html
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@debugfs_test@read_all_entries_display_off.html
* igt@device_reset@cold-reset-bound:
- shard-dg2: NOTRUN -> [SKIP][54] ([i915#7701]) +1 other test skip
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@drm_fdinfo@busy-check-all@ccs0:
- shard-mtlp: NOTRUN -> [SKIP][55] ([i915#8414]) +18 other tests skip
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@drm_fdinfo@[email protected]
* igt@drm_fdinfo@busy-idle@bcs0:
- shard-dg2: NOTRUN -> [SKIP][56] ([i915#8414]) +20 other tests skip
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-2/igt@drm_fdinfo@[email protected]
* igt@gem_ccs@block-multicopy-compressed:
- shard-mtlp: NOTRUN -> [SKIP][57] ([i915#9323])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@[email protected]
* igt@gem_ccs@suspend-resume@tile4-compressed-compfmt0-lmem0-lmem0:
- shard-dg2: NOTRUN -> [INCOMPLETE][58] ([i915#7297])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-5/igt@gem_ccs@[email protected]
* igt@gem_close_race@multigpu-basic-threads:
- shard-dg2: NOTRUN -> [SKIP][59] ([i915#7697])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
- shard-dg1: NOTRUN -> [SKIP][60] ([i915#7697])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@gem_ctx_persistence@heartbeat-hostile:
- shard-dg2: NOTRUN -> [SKIP][61] ([i915#8555])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-5/igt@[email protected]
* igt@gem_ctx_persistence@saturated-hostile-nopreempt@ccs0:
- shard-dg2: NOTRUN -> [SKIP][62] ([i915#5882]) +9 other tests skip
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@gem_ctx_persistence@[email protected]
* igt@gem_ctx_sseu@invalid-sseu:
- shard-dg2: NOTRUN -> [SKIP][63] ([i915#280])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@[email protected]
* igt@gem_ctx_sseu@mmap-args:
- shard-mtlp: NOTRUN -> [SKIP][64] ([i915#280])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@[email protected]
* igt@gem_exec_balancer@bonded-dual:
- shard-dg2: NOTRUN -> [SKIP][65] ([i915#4771]) +1 other test skip
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@gem_exec_capture@many-4k-incremental:
- shard-dg2: NOTRUN -> [FAIL][66] ([i915#9606])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
- shard-dg1: NOTRUN -> [FAIL][67] ([i915#9606])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@gem_exec_capture@many-4k-zero:
- shard-mtlp: NOTRUN -> [FAIL][68] ([i915#9606])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@gem_exec_fair@basic-none-share:
- shard-mtlp: NOTRUN -> [SKIP][69] ([i915#4473] / [i915#4771])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@[email protected]
* igt@gem_exec_flush@basic-uc-rw-default:
- shard-dg1: NOTRUN -> [SKIP][70] ([i915#3539] / [i915#4852])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@gem_exec_flush@basic-wb-rw-default:
- shard-dg2: NOTRUN -> [SKIP][71] ([i915#3539] / [i915#4852]) +4 other tests skip
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@gem_exec_reloc@basic-gtt-wc-active:
- shard-mtlp: NOTRUN -> [SKIP][72] ([i915#3281]) +1 other test skip
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@gem_exec_reloc@basic-write-cpu-active:
- shard-dg1: NOTRUN -> [SKIP][73] ([i915#3281]) +2 other tests skip
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@gem_exec_reloc@basic-write-read-active:
- shard-dg2: NOTRUN -> [SKIP][74] ([i915#3281]) +11 other tests skip
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@gem_exec_schedule@preempt-queue-contexts-chain:
- shard-dg2: NOTRUN -> [SKIP][75] ([i915#4537] / [i915#4812]) +1 other test skip
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@[email protected]
* igt@gem_exec_schedule@reorder-wide:
- shard-mtlp: NOTRUN -> [SKIP][76] ([i915#4537] / [i915#4812])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@gem_exec_suspend@basic-s4-devices@smem:
- shard-tglu: [PASS][77] -> [ABORT][78] ([i915#7975] / [i915#8213])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-tglu-3/igt@gem_exec_suspend@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-tglu-10/igt@gem_exec_suspend@[email protected]
* igt@gem_fenced_exec_thrash@no-spare-fences-interruptible:
- shard-mtlp: NOTRUN -> [SKIP][79] ([i915#4860]) +1 other test skip
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@gem_fenced_exec_thrash@too-many-fences:
- shard-dg2: NOTRUN -> [SKIP][80] ([i915#4860])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-2/igt@[email protected]
* igt@gem_lmem_swapping@basic:
- shard-mtlp: NOTRUN -> [SKIP][81] ([i915#4613]) +2 other tests skip
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@gem_lmem_swapping@massive-random:
- shard-glk: NOTRUN -> [SKIP][82] ([fdo#109271] / [i915#4613])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk9/igt@[email protected]
* igt@gem_lmem_swapping@smem-oom@lmem0:
- shard-dg2: [PASS][83] -> [DMESG-WARN][84] ([i915#4936] / [i915#5493])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-dg2-10/igt@gem_lmem_swapping@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-3/igt@gem_lmem_swapping@[email protected]
* igt@gem_media_vme:
- shard-dg2: NOTRUN -> [SKIP][85] ([i915#284])
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@gem_media_vme.html
* igt@gem_mmap@short-mmap:
- shard-mtlp: NOTRUN -> [SKIP][86] ([i915#4083])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@[email protected]
* igt@gem_mmap_gtt@flink-race:
- shard-mtlp: NOTRUN -> [SKIP][87] ([i915#4077]) +6 other tests skip
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@[email protected]
* igt@gem_mmap_wc@set-cache-level:
- shard-dg2: NOTRUN -> [SKIP][88] ([i915#4083])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-2/igt@[email protected]
* igt@gem_partial_pwrite_pread@reads-uncached:
- shard-dg2: NOTRUN -> [SKIP][89] ([i915#3282]) +6 other tests skip
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-5/igt@[email protected]
* igt@gem_pwrite@basic-exhaustion:
- shard-dg1: NOTRUN -> [SKIP][90] ([i915#3282]) +1 other test skip
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@gem_pwrite@basic-random:
- shard-mtlp: NOTRUN -> [SKIP][91] ([i915#3282])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@[email protected]
* igt@gem_pxp@protected-encrypted-src-copy-not-readible:
- shard-mtlp: NOTRUN -> [SKIP][92] ([i915#4270])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@[email protected]
* igt@gem_pxp@protected-raw-src-copy-not-readible:
- shard-dg2: NOTRUN -> [SKIP][93] ([i915#4270]) +4 other tests skip
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@[email protected]
* igt@gem_pxp@reject-modify-context-protection-on:
- shard-dg1: NOTRUN -> [SKIP][94] ([i915#4270])
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@gem_render_copy@x-tiled-to-vebox-yf-tiled:
- shard-mtlp: NOTRUN -> [SKIP][95] ([i915#8428]) +2 other tests skip
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@gem_set_tiling_vs_blt@tiled-to-tiled:
- shard-dg2: NOTRUN -> [SKIP][96] ([i915#4079])
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-5/igt@[email protected]
* igt@gem_softpin@evict-snoop:
- shard-dg2: NOTRUN -> [SKIP][97] ([i915#4885])
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-2/igt@[email protected]
* igt@gem_tiled_partial_pwrite_pread@reads:
- shard-dg2: NOTRUN -> [SKIP][98] ([i915#4077]) +6 other tests skip
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
- shard-dg1: NOTRUN -> [SKIP][99] ([i915#4077]) +1 other test skip
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@gem_tiled_pread_basic:
- shard-mtlp: NOTRUN -> [SKIP][100] ([i915#4079]) +1 other test skip
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@gem_tiled_pread_basic.html
* igt@gem_userptr_blits@create-destroy-unsync:
- shard-dg2: NOTRUN -> [SKIP][101] ([i915#3297]) +3 other tests skip
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@gem_userptr_blits@map-fixed-invalidate:
- shard-dg2: NOTRUN -> [SKIP][102] ([i915#3297] / [i915#4880])
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@gem_userptr_blits@set-cache-level:
- shard-mtlp: NOTRUN -> [SKIP][103] ([i915#3297])
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@gen9_exec_parse@basic-rejected:
- shard-mtlp: NOTRUN -> [SKIP][104] ([i915#2856])
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@[email protected]
* igt@gen9_exec_parse@bb-start-far:
- shard-dg1: NOTRUN -> [SKIP][105] ([i915#2527])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@gen9_exec_parse@shadow-peek:
- shard-dg2: NOTRUN -> [SKIP][106] ([i915#2856]) +3 other tests skip
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@[email protected]
* igt@i915_module_load@load:
- shard-mtlp: NOTRUN -> [SKIP][107] ([i915#6227])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@i915_module_load@reload-with-fault-injection:
- shard-dg2: [PASS][108] -> [DMESG-WARN][109] ([i915#9559])
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-dg2-10/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-3/igt@[email protected]
* igt@i915_pm_rps@thresholds@gt0:
- shard-mtlp: NOTRUN -> [SKIP][110] ([i915#8925])
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@i915_pm_rps@[email protected]
* igt@i915_pm_rps@thresholds@gt1:
- shard-mtlp: NOTRUN -> [SKIP][111] ([i915#3555] / [i915#8925])
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@i915_pm_rps@[email protected]
* igt@i915_query@query-topology-unsupported:
- shard-dg2: NOTRUN -> [SKIP][112] ([fdo#109302])
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@kms_addfb_basic@addfb25-x-tiled-legacy:
- shard-mtlp: NOTRUN -> [SKIP][113] ([i915#4212]) +1 other test skip
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@kms_addfb_basic@framebuffer-vs-set-tiling:
- shard-dg2: NOTRUN -> [SKIP][114] ([i915#4212])
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@kms_big_fb@4-tiled-8bpp-rotate-270:
- shard-mtlp: NOTRUN -> [SKIP][115] ([fdo#111614]) +2 other tests skip
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-0:
- shard-dg1: NOTRUN -> [SKIP][116] ([i915#4538] / [i915#5286]) +1 other test skip
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-0-hflip:
- shard-mtlp: [PASS][117] -> [FAIL][118] ([i915#5138])
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-mtlp-4/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-5/igt@[email protected]
* igt@kms_big_fb@linear-64bpp-rotate-270:
- shard-dg1: NOTRUN -> [SKIP][119] ([i915#3638])
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@kms_big_fb@x-tiled-16bpp-rotate-90:
- shard-dg2: NOTRUN -> [SKIP][120] ([fdo#111614]) +2 other tests skip
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-5/igt@[email protected]
* igt@kms_big_fb@y-tiled-64bpp-rotate-0:
- shard-dg2: NOTRUN -> [SKIP][121] ([i915#5190]) +14 other tests skip
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-2/igt@[email protected]
* igt@kms_big_fb@y-tiled-addfb-size-overflow:
- shard-mtlp: NOTRUN -> [SKIP][122] ([i915#6187])
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@[email protected]
* igt@kms_big_fb@yf-tiled-8bpp-rotate-90:
- shard-dg2: NOTRUN -> [SKIP][123] ([i915#4538] / [i915#5190]) +6 other tests skip
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180-hflip:
- shard-dg1: NOTRUN -> [SKIP][124] ([i915#4538]) +1 other test skip
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-180-hflip-async-flip:
- shard-mtlp: NOTRUN -> [SKIP][125] ([fdo#111615]) +5 other tests skip
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-7/igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-180-hflip-async-flip.html
* igt@kms_big_joiner@invalid-modeset:
- shard-mtlp: NOTRUN -> [SKIP][126] ([i915#2705])
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@kms_cdclk@mode-transition-all-outputs:
- shard-dg2: NOTRUN -> [SKIP][127] ([i915#4087] / [i915#7213])
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@kms_chamelium_color@ctm-negative:
- shard-mtlp: NOTRUN -> [SKIP][128] ([fdo#111827])
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@[email protected]
* igt@kms_chamelium_color@ctm-red-to-blue:
- shard-dg2: NOTRUN -> [SKIP][129] ([fdo#111827])
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@[email protected]
* igt@kms_chamelium_frames@hdmi-frame-dump:
- shard-dg1: NOTRUN -> [SKIP][130] ([i915#7828]) +1 other test skip
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@kms_chamelium_hpd@dp-hpd-storm:
- shard-dg2: NOTRUN -> [SKIP][131] ([i915#7828]) +12 other tests skip
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@kms_chamelium_hpd@vga-hpd-without-ddc:
- shard-mtlp: NOTRUN -> [SKIP][132] ([i915#7828]) +3 other tests skip
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@[email protected]
* igt@kms_color@deep-color:
- shard-dg2: NOTRUN -> [SKIP][133] ([i915#3555]) +5 other tests skip
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@[email protected]
* igt@kms_color@deep-color@pipe-b-edp-1-degamma:
- shard-mtlp: NOTRUN -> [FAIL][134] ([i915#6892]) +3 other tests fail
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@kms_color@[email protected]
* igt@kms_content_protection@atomic:
- shard-dg1: NOTRUN -> [SKIP][135] ([i915#7116])
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@kms_content_protection@atomic@pipe-a-dp-4:
- shard-dg2: NOTRUN -> [TIMEOUT][136] ([i915#7173])
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@kms_content_protection@[email protected]
* igt@kms_content_protection@srm:
- shard-dg2: NOTRUN -> [SKIP][137] ([i915#7118]) +2 other tests skip
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@[email protected]
* igt@kms_cursor_crc@cursor-onscreen-512x512:
- shard-dg1: NOTRUN -> [SKIP][138] ([i915#3359])
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@kms_cursor_crc@cursor-random-512x170:
- shard-dg2: NOTRUN -> [SKIP][139] ([i915#3359]) +3 other tests skip
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@kms_cursor_crc@cursor-rapid-movement-32x10:
- shard-mtlp: NOTRUN -> [SKIP][140] ([i915#3555] / [i915#8814]) +1 other test skip
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@kms_cursor_legacy@cursora-vs-flipb-atomic-transitions-varying-size:
- shard-mtlp: NOTRUN -> [SKIP][141] ([i915#3546])
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-7/igt@kms_cursor_legacy@cursora-vs-flipb-atomic-transitions-varying-size.html
* igt@kms_cursor_legacy@cursorb-vs-flipb-atomic:
- shard-dg2: NOTRUN -> [SKIP][142] ([fdo#109274] / [i915#5354]) +5 other tests skip
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-5/igt@[email protected]
* igt@kms_cursor_legacy@cursorb-vs-flipb-toggle:
- shard-dg2: NOTRUN -> [SKIP][143] ([fdo#109274] / [fdo#111767] / [i915#5354])
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@[email protected]
* igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions-varying-size:
- shard-dg2: NOTRUN -> [SKIP][144] ([i915#4103] / [i915#4213])
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions-varying-size.html
* igt@kms_cursor_legacy@short-busy-flip-before-cursor-toggle:
- shard-mtlp: NOTRUN -> [SKIP][145] ([i915#4213])
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@kms_display_modes@extended-mode-basic:
- shard-mtlp: NOTRUN -> [SKIP][146] ([i915#3555] / [i915#8827])
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@kms_dither@fb-8bpc-vs-panel-6bpc:
- shard-dg1: NOTRUN -> [SKIP][147] ([i915#3555]) +1 other test skip
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@kms_fence_pin_leak:
- shard-dg2: NOTRUN -> [SKIP][148] ([i915#4881]) +1 other test skip
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-2/igt@kms_fence_pin_leak.html
* igt@kms_flip@2x-flip-vs-blocking-wf-vblank:
- shard-dg2: NOTRUN -> [SKIP][149] ([fdo#109274] / [fdo#111767])
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@kms_flip@2x-flip-vs-panning-interruptible:
- shard-mtlp: NOTRUN -> [SKIP][150] ([i915#3637]) +1 other test skip
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@[email protected]
* igt@kms_flip@2x-plain-flip-fb-recreate-interruptible:
- shard-snb: NOTRUN -> [SKIP][151] ([fdo#109271]) +12 other tests skip
[151]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-snb4/igt@[email protected]
* igt@kms_flip@2x-single-buffer-flip-vs-dpms-off-vs-modeset-interruptible:
- shard-dg2: NOTRUN -> [SKIP][152] ([fdo#109274]) +2 other tests skip
[152]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@kms_flip@2x-single-buffer-flip-vs-dpms-off-vs-modeset-interruptible.html
* igt@kms_flip@flip-vs-fences-interruptible:
- shard-dg2: NOTRUN -> [SKIP][153] ([i915#8381])
[153]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile-upscaling@pipe-a-default-mode:
- shard-mtlp: NOTRUN -> [SKIP][154] ([i915#2672]) +2 other tests skip
[154]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile-upscaling@pipe-a-default-mode.html
* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling@pipe-a-valid-mode:
- shard-dg2: NOTRUN -> [SKIP][155] ([i915#2672])
[155]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling@pipe-a-valid-mode.html
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilercccs-downscaling@pipe-a-default-mode:
- shard-mtlp: NOTRUN -> [SKIP][156] ([i915#2672] / [i915#3555])
[156]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilercccs-downscaling@pipe-a-default-mode.html
* igt@kms_force_connector_basic@force-load-detect:
- shard-dg2: NOTRUN -> [SKIP][157] ([fdo#109285])
[157]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-mmap-gtt:
- shard-dg2: NOTRUN -> [SKIP][158] ([i915#8708]) +24 other tests skip
[158]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-mmap-gtt.html
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-mmap-cpu:
- shard-dg2: NOTRUN -> [SKIP][159] ([i915#3458]) +14 other tests skip
[159]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-mmap-cpu.html
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-mmap-wc:
- shard-dg1: NOTRUN -> [SKIP][160] ([i915#8708]) +4 other tests skip
[160]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-cur-indfb-onoff:
- shard-mtlp: NOTRUN -> [SKIP][161] ([i915#1825]) +18 other tests skip
[161]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-rgb101010-draw-mmap-gtt:
- shard-mtlp: NOTRUN -> [SKIP][162] ([i915#8708]) +6 other tests skip
[162]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-draw-mmap-cpu:
- shard-dg1: NOTRUN -> [SKIP][163] ([i915#3458]) +1 other test skip
[163]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-draw-mmap-cpu.html
* igt@kms_frontbuffer_tracking@psr-2p-primscrn-pri-indfb-draw-blt:
- shard-glk: NOTRUN -> [SKIP][164] ([fdo#109271]) +23 other tests skip
[164]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk9/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-primscrn-pri-indfb-draw-render:
- shard-dg2: NOTRUN -> [SKIP][165] ([i915#5354]) +30 other tests skip
[165]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-5/igt@kms_frontbuffer_tracking@psr-2p-primscrn-pri-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-indfb-plflip-blt:
- shard-dg1: NOTRUN -> [SKIP][166] ([fdo#111825]) +11 other tests skip
[166]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@kms_hdr@static-toggle-suspend:
- shard-dg2: NOTRUN -> [SKIP][167] ([i915#3555] / [i915#8228]) +3 other tests skip
[167]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@[email protected]
- shard-mtlp: NOTRUN -> [SKIP][168] ([i915#3555] / [i915#8228])
[168]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@kms_multipipe_modeset@basic-max-pipe-crc-check:
- shard-dg2: NOTRUN -> [SKIP][169] ([i915#4816])
[169]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-2/igt@[email protected]
* igt@kms_panel_fitting@atomic-fastset:
- shard-dg2: NOTRUN -> [SKIP][170] ([i915#6301])
[170]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
- shard-dg1: NOTRUN -> [SKIP][171] ([i915#6301])
[171]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@[email protected]
* igt@kms_pipe_b_c_ivb@pipe-b-double-modeset-then-modeset-pipe-c:
- shard-dg2: NOTRUN -> [SKIP][172] ([fdo#109289])
[172]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-5/igt@[email protected]
* igt@kms_plane_lowres@tiling-y:
- shard-mtlp: NOTRUN -> [SKIP][173] ([i915#3555] / [i915#8821])
[173]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@[email protected]
* igt@kms_plane_multiple@tiling-yf:
- shard-mtlp: NOTRUN -> [SKIP][174] ([i915#3555] / [i915#8806])
[174]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25@pipe-d-dp-4:
- shard-dg2: NOTRUN -> [SKIP][175] ([i915#5235]) +19 other tests skip
[175]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25@pipe-d-dp-4.html
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-d-hdmi-a-4:
- shard-dg1: NOTRUN -> [SKIP][176] ([i915#5235]) +11 other tests skip
[176]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@kms_plane_scaling@[email protected]
* igt@kms_prime@basic-crc-vgem:
- shard-dg2: NOTRUN -> [SKIP][177] ([i915#6524] / [i915#6805])
[177]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-2/igt@[email protected]
* igt@kms_psr2_sf@cursor-plane-update-sf:
- shard-dg2: NOTRUN -> [SKIP][178] ([i915#9683]) +1 other test skip
[178]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@kms_psr2_su@page_flip-xrgb8888:
- shard-mtlp: NOTRUN -> [SKIP][179] ([i915#4348])
[179]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@kms_psr2_su@page_flip-xrgb8888.html
* igt@kms_psr@psr2_suspend:
- shard-dg2: NOTRUN -> [SKIP][180] ([i915#9681])
[180]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@kms_psr@psr2_suspend.html
* igt@kms_rotation_crc@bad-pixel-format:
- shard-dg2: NOTRUN -> [SKIP][181] ([i915#4235]) +1 other test skip
[181]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-90:
- shard-dg2: NOTRUN -> [SKIP][182] ([i915#4235] / [i915#5190])
[182]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-2/igt@[email protected]
* igt@kms_rotation_crc@sprite-rotation-90-pos-100-0:
- shard-mtlp: NOTRUN -> [SKIP][183] ([i915#4235])
[183]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@kms_sysfs_edid_timing:
- shard-dg1: NOTRUN -> [FAIL][184] ([IGT#2] / [i915#6493])
[184]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@kms_sysfs_edid_timing.html
* igt@kms_tv_load_detect@load-detect:
- shard-dg2: NOTRUN -> [SKIP][185] ([fdo#109309])
[185]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@[email protected]
* igt@kms_vrr@flipline:
- shard-mtlp: NOTRUN -> [SKIP][186] ([i915#3555] / [i915#8808])
[186]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@perf@unprivileged-single-ctx-counters:
- shard-mtlp: NOTRUN -> [SKIP][187] ([fdo#109289]) +1 other test skip
[187]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@prime_vgem@basic-fence-mmap:
- shard-mtlp: NOTRUN -> [SKIP][188] ([i915#3708] / [i915#4077])
[188]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@prime_vgem@basic-write:
- shard-dg2: NOTRUN -> [SKIP][189] ([i915#3291] / [i915#3708])
[189]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-5/igt@[email protected]
* igt@prime_vgem@fence-flip-hang:
- shard-mtlp: NOTRUN -> [SKIP][190] ([i915#3708])
[190]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@[email protected]
* igt@prime_vgem@fence-write-hang:
- shard-dg2: NOTRUN -> [SKIP][191] ([i915#3708])
[191]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-6/igt@[email protected]
* igt@sysfs_heartbeat_interval@nopreempt@vecs0:
- shard-mtlp: [PASS][192] -> [ABORT][193] ([i915#9262])
[192]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-mtlp-4/igt@sysfs_heartbeat_interval@[email protected]
[193]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-4/igt@sysfs_heartbeat_interval@[email protected]
* igt@tools_test@sysfs_l3_parity:
- shard-mtlp: NOTRUN -> [SKIP][194] ([i915#4818])
[194]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@tools_test@sysfs_l3_parity.html
* igt@v3d/v3d_get_param@get-bad-flags:
- shard-dg2: NOTRUN -> [SKIP][195] ([i915#2575]) +12 other tests skip
[195]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@v3d/[email protected]
* igt@v3d/v3d_submit_cl@bad-in-sync:
- shard-dg1: NOTRUN -> [SKIP][196] ([i915#2575]) +2 other tests skip
[196]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@v3d/[email protected]
* igt@v3d/v3d_submit_csd@bad-bo:
- shard-mtlp: NOTRUN -> [SKIP][197] ([i915#2575]) +6 other tests skip
[197]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@v3d/[email protected]
* igt@vc4/vc4_mmap@mmap-bo:
- shard-dg2: NOTRUN -> [SKIP][198] ([i915#7711]) +7 other tests skip
[198]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-11/igt@vc4/[email protected]
* igt@vc4/vc4_purgeable_bo@access-purged-bo-mem:
- shard-mtlp: NOTRUN -> [SKIP][199] ([i915#7711]) +5 other tests skip
[199]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-7/igt@vc4/[email protected]
* igt@vc4/vc4_tiling@set-bad-modifier:
- shard-dg1: NOTRUN -> [SKIP][200] ([i915#7711]) +1 other test skip
[200]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-15/igt@vc4/[email protected]
#### Possible fixes ####
* igt@gem_ctx_freq@sysfs@gt0:
- shard-dg2: [FAIL][201] ([i915#9561]) -> [PASS][202]
[201]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-dg2-7/igt@gem_ctx_freq@[email protected]
[202]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-3/igt@gem_ctx_freq@[email protected]
* igt@gem_eio@in-flight-contexts-immediate:
- shard-mtlp: [ABORT][203] ([i915#9414]) -> [PASS][204] +1 other test pass
[203]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-mtlp-5/igt@[email protected]
[204]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-7/igt@[email protected]
* igt@gem_eio@reset-stress:
- shard-dg1: [FAIL][205] ([i915#5784]) -> [PASS][206]
[205]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-dg1-12/igt@[email protected]
[206]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg1-17/igt@[email protected]
* igt@gem_exec_fair@basic-pace-solo@rcs0:
- shard-tglu: [FAIL][207] ([i915#2842]) -> [PASS][208]
[207]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-tglu-3/igt@gem_exec_fair@[email protected]
[208]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-tglu-3/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@vcs0:
- shard-glk: [FAIL][209] ([i915#2842]) -> [PASS][210]
[209]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk8/igt@gem_exec_fair@[email protected]
[210]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_params@rel-constants-invalid-rel-gen5:
- shard-mtlp: [DMESG-WARN][211] ([i915#2017]) -> [PASS][212]
[211]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-mtlp-7/igt@[email protected]
[212]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-8/igt@[email protected]
* igt@gen9_exec_parse@allowed-all:
- shard-glk: [INCOMPLETE][213] ([i915#5566]) -> [PASS][214]
[213]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk5/igt@[email protected]
[214]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk9/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip:
- shard-tglu: [FAIL][215] ([i915#3743]) -> [PASS][216] +2 other tests pass
[215]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-tglu-6/igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html
[216]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-tglu-8/igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html
* igt@kms_plane_scaling@2x-scaler-multi-pipe:
- shard-glk: [DMESG-WARN][217] ([i915#118]) -> [PASS][218]
[217]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-glk4/igt@[email protected]
[218]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-glk4/igt@[email protected]
* {igt@kms_pm_rpm@dpms-lpsp}:
- shard-dg2: [SKIP][219] ([i915#9519]) -> [PASS][220]
[219]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-dg2-5/igt@[email protected]
[220]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-dg2-10/igt@[email protected]
* igt@kms_universal_plane@cursor-fb-leak@pipe-b-hdmi-a-1:
- shard-tglu: [FAIL][221] ([i915#9196]) -> [PASS][222]
[221]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-tglu-9/igt@kms_universal_plane@[email protected]
[222]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-tglu-10/igt@kms_universal_plane@[email protected]
* igt@perf_pmu@busy-double-start@bcs0:
- shard-mtlp: [FAIL][223] ([i915#4349]) -> [PASS][224]
[223]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-mtlp-7/igt@perf_pmu@[email protected]
[224]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-2/igt@perf_pmu@[email protected]
#### Warnings ####
* igt@kms_async_flips@crc@pipe-b-edp-1:
- shard-mtlp: [DMESG-FAIL][225] ([i915#8561]) -> [FAIL][226] ([i915#8247]) +1 other test fail
[225]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-mtlp-7/igt@kms_async_flips@[email protected]
[226]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-5/igt@kms_async_flips@[email protected]
* igt@kms_async_flips@crc@pipe-d-edp-1:
- shard-mtlp: [FAIL][227] ([i915#8247]) -> [DMESG-FAIL][228] ([i915#8561])
[227]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13912/shard-mtlp-7/igt@kms_async_flips@[email protected]
[228]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/shard-mtlp-5/igt@kms_async_flips@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[IGT#2]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/2
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109293]: https://bugs.freedesktop.org/show_bug.cgi?id=109293
[fdo#109302]: https://bugs.freedesktop.org/show_bug.cgi?id=109302
[fdo#109309]: https://bugs.freedesktop.org/show_bug.cgi?id=109309
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111767]: https://bugs.freedesktop.org/show_bug.cgi?id=111767
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#2017]: https://gitlab.freedesktop.org/drm/intel/issues/2017
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#284]: https://gitlab.freedesktop.org/drm/intel/issues/284
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
[i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3591]: https://gitlab.freedesktop.org/drm/intel/issues/3591
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3743]: https://gitlab.freedesktop.org/drm/intel/issues/3743
[i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4087]: https://gitlab.freedesktop.org/drm/intel/issues/4087
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4235]: https://gitlab.freedesktop.org/drm/intel/issues/4235
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4348]: https://gitlab.freedesktop.org/drm/intel/issues/4348
[i915#4349]: https://gitlab.freedesktop.org/drm/intel/issues/4349
[i915#4473]: https://gitlab.freedesktop.org/drm/intel/issues/4473
[i915#4537]: https://gitlab.freedesktop.org/drm/intel/issues/4537
[i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771
[i915#4812]: https://gitlab.freedesktop.org/drm/intel/issues/4812
[i915#4816]: https://gitlab.freedesktop.org/drm/intel/issues/4816
[i915#4818]: https://gitlab.freedesktop.org/drm/intel/issues/4818
[i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852
[i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
[i915#4880]: https://gitlab.freedesktop.org/drm/intel/issues/4880
[i915#4881]: https://gitlab.freedesktop.org/drm/intel/issues/4881
[i915#4885]: https://gitlab.freedesktop.org/drm/intel/issues/4885
[i915#4936]: https://gitlab.freedesktop.org/drm/intel/issues/4936
[i915#5138]: https://gitlab.freedesktop.org/drm/intel/issues/5138
[i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#5493]: https://gitlab.freedesktop.org/drm/intel/issues/5493
[i915#5566]: https://gitlab.freedesktop.org/drm/intel/issues/5566
[i915#5784]: https://gitlab.freedesktop.org/drm/intel/issues/5784
[i915#5882]: https://gitlab.freedesktop.org/drm/intel/issues/5882
[i915#5978]: https://gitlab.freedesktop.org/drm/intel/issues/5978
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6187]: https://gitlab.freedesktop.org/drm/intel/issues/6187
[i915#6227]: https://gitlab.freedesktop.org/drm/intel/issues/6227
[i915#6301]: https://gitlab.freedesktop.org/drm/intel/issues/6301
[i915#6493]: https://gitlab.freedesktop.org/drm/intel/issues/6493
[i915#6524]: https://gitlab.freedesktop.org/drm/intel/issues/6524
[i915#6805]: https://gitlab.freedesktop.org/drm/intel/issues/6805
[i915#6892]: https://gitlab.freedesktop.org/drm/intel/issues/6892
[i915#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116
[i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118
[i915#7173]: https://gitlab.freedesktop.org/drm/intel/issues/7173
[i915#7213]: https://gitlab.freedesktop.org/drm/intel/issues/7213
[i915#7297]: https://gitlab.freedesktop.org/drm/intel/issues/7297
[i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697
[i915#7701]: https://gitlab.freedesktop.org/drm/intel/issues/7701
[i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7975]: https://gitlab.freedesktop.org/drm/intel/issues/7975
[i915#8213]: https://gitlab.freedesktop.org/drm/intel/issues/8213
[i915#8228]: https://gitlab.freedesktop.org/drm/intel/issues/8228
[i915#8247]: https://gitlab.freedesktop.org/drm/intel/issues/8247
[i915#8293]: https://gitlab.freedesktop.org/drm/intel/issues/8293
[i915#8381]: https://gitlab.freedesktop.org/drm/intel/issues/8381
[i915#8411]: https://gitlab.freedesktop.org/drm/intel/issues/8411
[i915#8414]: https://gitlab.freedesktop.org/drm/intel/issues/8414
[i915#8428]: https://gitlab.freedesktop.org/drm/intel/issues/8428
[i915#8555]: https://gitlab.freedesktop.org/drm/intel/issues/8555
[i915#8561]: https://gitlab.freedesktop.org/drm/intel/issues/8561
[i915#8708]: https://gitlab.freedesktop.org/drm/intel/issues/8708
[i915#8709]: https://gitlab.freedesktop.org/drm/intel/issues/8709
[i915#8806]: https://gitlab.freedesktop.org/drm/intel/issues/8806
[i915#8808]: https://gitlab.freedesktop.org/drm/intel/issues/8808
[i915#8814]: https://gitlab.freedesktop.org/drm/intel/issues/8814
[i915#8821]: https://gitlab.freedesktop.org/drm/intel/issues/8821
[i915#8827]: https://gitlab.freedesktop.org/drm/intel/issues/8827
[i915#8925]: https://gitlab.freedesktop.org/drm/intel/issues/8925
[i915#9053]: https://gitlab.freedesktop.org/drm/intel/issues/9053
[i915#9196]: https://gitlab.freedesktop.org/drm/intel/issues/9196
[i915#9262]: https://gitlab.freedesktop.org/drm/intel/issues/9262
[i915#9293]: https://gitlab.freedesktop.org/drm/intel/issues/9293
[i915#9295]: https://gitlab.freedesktop.org/drm/intel/issues/9295
[i915#9323]: https://gitlab.freedesktop.org/drm/intel/issues/9323
[i915#9337]: https://gitlab.freedesktop.org/drm/intel/issues/9337
[i915#9412]: https://gitlab.freedesktop.org/drm/intel/issues/9412
[i915#9414]: https://gitlab.freedesktop.org/drm/intel/issues/9414
[i915#9423]: https://gitlab.freedesktop.org/drm/intel/issues/9423
[i915#9519]: https://gitlab.freedesktop.org/drm/intel/issues/9519
[i915#9559]: https://gitlab.freedesktop.org/drm/intel/issues/9559
[i915#9561]: https://gitlab.freedesktop.org/drm/intel/issues/9561
[i915#9606]: https://gitlab.freedesktop.org/drm/intel/issues/9606
[i915#9673]: https://gitlab.freedesktop.org/drm/intel/issues/9673
[i915#9681]: https://gitlab.freedesktop.org/drm/intel/issues/9681
[i915#9683]: https://gitlab.freedesktop.org/drm/intel/issues/9683
[i915#9688]: https://gitlab.freedesktop.org/drm/intel/issues/9688
Build changes
-------------
* Linux: CI_DRM_13912 -> Patchwork_120668v2
* Piglit: piglit_4509 -> None
CI-20190529: 20190529
CI_DRM_13912: c786dbcdf438209819ac979f1931b5e380eddf1b @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7597: 380983dbd9bb2f7eea5e917e8fed0569bfe8cf9c @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_120668v2: c786dbcdf438209819ac979f1931b5e380eddf1b @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_120668v2/index.html
Quoted 9 lines · Christian Brauner
Hey everyone,
This simplifies the
eventfd_signal()andeventfd_signal_mask()helpers significantly. They can be made void and not take any unnecessary arguments.I've added a few more simplifications based on Sean's suggestion.
[...]
Applied to the vfs.misc branch of the vfs/vfs.git tree. Patches in the vfs.misc branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.misc
[1/4] i915: make inject_virtual_interrupt() void
https://git.kernel.org/vfs/vfs/c/858848719210 [2/4] eventfd: simplify eventfd_signal() https://git.kernel.org/vfs/vfs/c/ded0f31f825f [3/4] eventfd: simplify eventfd_signal_mask() https://git.kernel.org/vfs/vfs/c/45ee1c990e88 [4/4] eventfd: make eventfd_signal{_mask}() void https://git.kernel.org/vfs/vfs/c/37d5d473e749