search for: wait_for_completion_timeout

Displaying 20 results from an estimated 75 matches for "wait_for_completion_timeout".

2017 Sep 13
2
Nouveau: kernel hang on Optimus+Intel+NVidia GeForce 1060m
...index 77273b53672c..fc0cb187d80d 100644 --- a/drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c +++ b/drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c @@ -326,7 +326,7 @@ nvkm_msgqueue_post(struct nvkm_msgqueue *priv, enum msgqueue_msg_priority prio,         int ret;           if (wait_init && !wait_for_completion_timeout(&priv->init_done, -                                        msecs_to_jiffies(1000))) +                                        msecs_to_jiffies(5000)))                 return -ETIMEDOUT;           queue = priv->func->cmd_queue(priv, prio); diff --git a/drivers/gpu/drm/nouveau/nvkm/falco...
2017 Sep 13
0
Nouveau: kernel hang on Optimus+Intel+NVidia GeForce 1060m
...100644 > --- a/drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c > +++ b/drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c > @@ -326,7 +326,7 @@ nvkm_msgqueue_post(struct nvkm_msgqueue *priv, enum > msgqueue_msg_priority prio, > int ret; > > if (wait_init && !wait_for_completion_timeout(&priv->init_done, > - msecs_to_jiffies(1000))) > + msecs_to_jiffies(5000))) > return -ETIMEDOUT; > > queue = priv->func->cmd_queue(priv, prio); > > diff --git a/dr...
2017 Sep 11
2
Nouveau: kernel hang on Optimus+Intel+NVidia GeForce 1060m
Hi Tobias, On Mon, Sep 11, 2017 at 8:49 PM, Tobias Klausmann < tobias.johannes.klausmann at mni.thm.de> wrote: > Hi, > > i remember seeing the same error with earlier firmware version with a > similar system (GP106) once in a while on boot, yet it does not happen > with newer versions. Maybe you could try to update the firmware to the > latest version from
2020 Sep 14
2
[PATCH v2] i2c: virtio: add a virtio i2c frontend driver
...2020-09-11 125 break; > 0a54ec77196674 Jie Deng 2020-09-11 126 } > 0a54ec77196674 Jie Deng 2020-09-11 127 > 0a54ec77196674 Jie Deng 2020-09-11 128 virtqueue_kick(vq); > 0a54ec77196674 Jie Deng 2020-09-11 129 > 0a54ec77196674 Jie Deng 2020-09-11 130 time_left = wait_for_completion_timeout(&vi->completion, adap->timeout); > 0a54ec77196674 Jie Deng 2020-09-11 131 if (!time_left) { > 0a54ec77196674 Jie Deng 2020-09-11 132 dev_err(&adap->dev, "msg[%d]: addr=0x%x timeout.\n", i, msgs[i].addr); > 0a54ec77196674 Jie Deng 2020-09-11 133 brea...
2020 Sep 14
2
[PATCH v2] i2c: virtio: add a virtio i2c frontend driver
...2020-09-11 125 break; > 0a54ec77196674 Jie Deng 2020-09-11 126 } > 0a54ec77196674 Jie Deng 2020-09-11 127 > 0a54ec77196674 Jie Deng 2020-09-11 128 virtqueue_kick(vq); > 0a54ec77196674 Jie Deng 2020-09-11 129 > 0a54ec77196674 Jie Deng 2020-09-11 130 time_left = wait_for_completion_timeout(&vi->completion, adap->timeout); > 0a54ec77196674 Jie Deng 2020-09-11 131 if (!time_left) { > 0a54ec77196674 Jie Deng 2020-09-11 132 dev_err(&adap->dev, "msg[%d]: addr=0x%x timeout.\n", i, msgs[i].addr); > 0a54ec77196674 Jie Deng 2020-09-11 133 brea...
2020 Sep 04
2
[PATCH] i2c: virtio: add a virtio i2c frontend driver
...); >> +??????? if (ret) { >> +??????????? dev_err(&adap->dev, "failed to add msg[%d] to >> virtqueue.\n", i); >> +??????????? goto err_unlock_free; >> +??????? } >> + >> +??????? virtqueue_kick(vq); >> + >> +??????? time_left = wait_for_completion_timeout(&vi->completion, >> adap->timeout); >> +??????? if (!time_left) { >> +??????????? dev_err(&adap->dev, "msg[%d]: addr=0x%x timeout.\n", i, >> msgs[i].addr); >> +??????????? ret = i; >> +??????????? goto err_unlock_free; >> +?????...
2020 Sep 04
2
[PATCH] i2c: virtio: add a virtio i2c frontend driver
...); >> +??????? if (ret) { >> +??????????? dev_err(&adap->dev, "failed to add msg[%d] to >> virtqueue.\n", i); >> +??????????? goto err_unlock_free; >> +??????? } >> + >> +??????? virtqueue_kick(vq); >> + >> +??????? time_left = wait_for_completion_timeout(&vi->completion, >> adap->timeout); >> +??????? if (!time_left) { >> +??????????? dev_err(&adap->dev, "msg[%d]: addr=0x%x timeout.\n", i, >> msgs[i].addr); >> +??????????? ret = i; >> +??????????? goto err_unlock_free; >> +?????...
2020 Sep 03
9
[PATCH] i2c: virtio: add a virtio i2c frontend driver
...gt;i2c_lock); + vmsg_o->buf = NULL; + for (i = 0; i < num; i++) { + ret = virtio_i2c_add_msg(vq, vmsg_o, &msgs[i]); + if (ret) { + dev_err(&adap->dev, "failed to add msg[%d] to virtqueue.\n", i); + goto err_unlock_free; + } + + virtqueue_kick(vq); + + time_left = wait_for_completion_timeout(&vi->completion, adap->timeout); + if (!time_left) { + dev_err(&adap->dev, "msg[%d]: addr=0x%x timeout.\n", i, msgs[i].addr); + ret = i; + goto err_unlock_free; + } + + vmsg_i = (struct virtio_i2c_msg *)virtqueue_get_buf(vq, &len); + if (vmsg_i) { + /* vms...
2020 Sep 03
9
[PATCH] i2c: virtio: add a virtio i2c frontend driver
...gt;i2c_lock); + vmsg_o->buf = NULL; + for (i = 0; i < num; i++) { + ret = virtio_i2c_add_msg(vq, vmsg_o, &msgs[i]); + if (ret) { + dev_err(&adap->dev, "failed to add msg[%d] to virtqueue.\n", i); + goto err_unlock_free; + } + + virtqueue_kick(vq); + + time_left = wait_for_completion_timeout(&vi->completion, adap->timeout); + if (!time_left) { + dev_err(&adap->dev, "msg[%d]: addr=0x%x timeout.\n", i, msgs[i].addr); + ret = i; + goto err_unlock_free; + } + + vmsg_i = (struct virtio_i2c_msg *)virtqueue_get_buf(vq, &len); + if (vmsg_i) { + /* vms...
2017 Jun 28
0
[PATCH 2/2] drm/atomic: Wait indefinitely and interruptibly for hw_done.
...tall) { - int i; - long ret; + int i, ret; struct drm_connector *connector; struct drm_connector_state *old_conn_state, *new_conn_state; struct drm_crtc *crtc; @@ -2168,12 +2167,11 @@ int drm_atomic_helper_swap_state(struct drm_atomic_state *state, if (!commit) continue; - ret = wait_for_completion_timeout(&commit->hw_done, - 10*HZ); - if (ret == 0) - DRM_ERROR("[CRTC:%d:%s] hw_done timed out\n", - crtc->base.id, crtc->name); + ret = wait_for_completion_interruptible(&commit->hw_done); drm_crtc_commit_put(commit); + + if (ret) + return ret;...
2011 Jul 15
0
[PATCH 1/1] Staging: hv: vmbus: Don't wait indefinitely for IRQ resouces
...702,7 @@ static struct acpi_driver vmbus_acpi_driver = { static int __init hv_acpi_init(void) { - int ret; + int ret, t; init_completion(&probe_event); @@ -715,16 +715,25 @@ static int __init hv_acpi_init(void) if (ret) return ret; - wait_for_completion(&probe_event); + t = wait_for_completion_timeout(&probe_event, 5*HZ); + if (t == 0) { + ret = -ETIMEDOUT; + goto cleanup; + } if (irq <= 0) { - acpi_bus_unregister_driver(&vmbus_acpi_driver); - return -ENODEV; + ret = -ENODEV; + goto cleanup; } ret = vmbus_bus_init(irq); if (ret) - acpi_bus_unregister_driver(&vmb...
2011 Jul 15
0
[PATCH 1/1] Staging: hv: vmbus: Don't wait indefinitely for IRQ resouces
...702,7 @@ static struct acpi_driver vmbus_acpi_driver = { static int __init hv_acpi_init(void) { - int ret; + int ret, t; init_completion(&probe_event); @@ -715,16 +715,25 @@ static int __init hv_acpi_init(void) if (ret) return ret; - wait_for_completion(&probe_event); + t = wait_for_completion_timeout(&probe_event, 5*HZ); + if (t == 0) { + ret = -ETIMEDOUT; + goto cleanup; + } if (irq <= 0) { - acpi_bus_unregister_driver(&vmbus_acpi_driver); - return -ENODEV; + ret = -ENODEV; + goto cleanup; } ret = vmbus_bus_init(irq); if (ret) - acpi_bus_unregister_driver(&vmb...
2011 Jun 06
51
[PATCH 00/49] Staging: hv: Driver cleanup
Further cleanup of the hv drivers: 1) Continue to cleanup our drivers to conform to the Linux Driver Model. 2) Fix some long standing bugs with regards to unloading and reloading the drivers - block, net and stor. 3) VMBUS is an ACPI enumerated device; make VMBUS an ACPI bus driver. 4) Get rid of channel polling code; instead the channel receive paths will be purely interrupt
2011 Jun 06
51
[PATCH 00/49] Staging: hv: Driver cleanup
Further cleanup of the hv drivers: 1) Continue to cleanup our drivers to conform to the Linux Driver Model. 2) Fix some long standing bugs with regards to unloading and reloading the drivers - block, net and stor. 3) VMBUS is an ACPI enumerated device; make VMBUS an ACPI bus driver. 4) Get rid of channel polling code; instead the channel receive paths will be purely interrupt
2020 Sep 03
0
[PATCH] i2c: virtio: add a virtio i2c frontend driver
...< num; i++) { > + ret = virtio_i2c_add_msg(vq, vmsg_o, &msgs[i]); > + if (ret) { > + dev_err(&adap->dev, "failed to add msg[%d] to virtqueue.\n", i); > + goto err_unlock_free; break; > + } > + > + virtqueue_kick(vq); > + > + time_left = wait_for_completion_timeout(&vi->completion, adap->timeout); > + if (!time_left) { > + dev_err(&adap->dev, "msg[%d]: addr=0x%x timeout.\n", i, msgs[i].addr); > + ret = i; > + goto err_unlock_free; break; And so on. > + } > + > + vmsg_i = (struct virtio_i2c_msg *)vir...
2020 Sep 11
6
[PATCH v2] i2c: virtio: add a virtio i2c frontend driver
...k); + vmsg = &vi->vmsg; + vmsg->buf = NULL; + + for (i = 0; i < num; i++) { + ret = virtio_i2c_add_msg(vq, vmsg, &msgs[i]); + if (ret) { + dev_err(&adap->dev, "failed to add msg[%d] to virtqueue.\n", i); + break; + } + + virtqueue_kick(vq); + + time_left = wait_for_completion_timeout(&vi->completion, adap->timeout); + if (!time_left) { + dev_err(&adap->dev, "msg[%d]: addr=0x%x timeout.\n", i, msgs[i].addr); + break; + } + + vmsg = (struct virtio_i2c_msg *)virtqueue_get_buf(vq, &len); + if (vmsg) { + /* vmsg should point to the same addre...
2020 Sep 11
6
[PATCH v2] i2c: virtio: add a virtio i2c frontend driver
...k); + vmsg = &vi->vmsg; + vmsg->buf = NULL; + + for (i = 0; i < num; i++) { + ret = virtio_i2c_add_msg(vq, vmsg, &msgs[i]); + if (ret) { + dev_err(&adap->dev, "failed to add msg[%d] to virtqueue.\n", i); + break; + } + + virtqueue_kick(vq); + + time_left = wait_for_completion_timeout(&vi->completion, adap->timeout); + if (!time_left) { + dev_err(&adap->dev, "msg[%d]: addr=0x%x timeout.\n", i, msgs[i].addr); + break; + } + + vmsg = (struct virtio_i2c_msg *)virtqueue_get_buf(vq, &len); + if (vmsg) { + /* vmsg should point to the same addre...
2011 Jun 29
38
[PATCH 00/40] Staging: hv: Driver cleanup
Further cleanup of the hv drivers: 1) Cleanup the reference counting mess for both stor and net devices. 2) Handle all block devices using the storvsc driver. 3) Accomodate some host side scsi emulation bugs. 4) In case of scsi errors off-line the device. Regads, K. Y
2011 Jun 29
38
[PATCH 00/40] Staging: hv: Driver cleanup
Further cleanup of the hv drivers: 1) Cleanup the reference counting mess for both stor and net devices. 2) Handle all block devices using the storvsc driver. 3) Accomodate some host side scsi emulation bugs. 4) In case of scsi errors off-line the device. Regads, K. Y
2020 Sep 14
0
[PATCH v2] i2c: virtio: add a virtio i2c frontend driver
...; 0a54ec77196674 Jie Deng 2020-09-11 125 break; 0a54ec77196674 Jie Deng 2020-09-11 126 } 0a54ec77196674 Jie Deng 2020-09-11 127 0a54ec77196674 Jie Deng 2020-09-11 128 virtqueue_kick(vq); 0a54ec77196674 Jie Deng 2020-09-11 129 0a54ec77196674 Jie Deng 2020-09-11 130 time_left = wait_for_completion_timeout(&vi->completion, adap->timeout); 0a54ec77196674 Jie Deng 2020-09-11 131 if (!time_left) { 0a54ec77196674 Jie Deng 2020-09-11 132 dev_err(&adap->dev, "msg[%d]: addr=0x%x timeout.\n", i, msgs[i].addr); 0a54ec77196674 Jie Deng 2020-09-11 133 break; 0a54ec771966...