From b23bb194dc1dbad104f2afce1a8ed202d182b73b Mon Sep 17 00:00:00 2001 From: Shih-Yi Chen Date: Thu, 20 Jul 2023 16:39:40 -0400 Subject: [PATCH] UBUNTU: SAUCE: mlxbf-tmfifo.c: Amend previous tmfifo patch w/ regard to schedule_work X-NVConfidentiality: public BugLink: https://bugs.launchpad.net/bugs/2028197 Fix rshim console output got cutoff due to tmfifo driver not processing all virtio console notifications. Signed-off-by: Shih-Yi Chen Reviewed-by: Liming Sun Acked-by: Bartlomiej Zolnierkiewicz Acked-by: Tim Gardner [bzolnier: use a short URL version for BugLink] Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/platform/mellanox/mlxbf-tmfifo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/platform/mellanox/mlxbf-tmfifo.c b/drivers/platform/mellanox/mlxbf-tmfifo.c index 4f3226007e32..36b87d5d8baf 100644 --- a/drivers/platform/mellanox/mlxbf-tmfifo.c +++ b/drivers/platform/mellanox/mlxbf-tmfifo.c @@ -1065,6 +1065,8 @@ static bool mlxbf_tmfifo_virtio_notify(struct virtqueue *vq) tm_vdev = fifo->vdev[VIRTIO_ID_CONSOLE]; mlxbf_tmfifo_console_output(tm_vdev, vring); spin_unlock_irqrestore(&fifo->spin_lock[0], flags); + test_and_set_bit(MLXBF_TM_TX_LWM_IRQ, + &fifo->pend_events); } else if (test_and_set_bit(MLXBF_TM_TX_LWM_IRQ, &fifo->pend_events)) { return true; -- 2.14.1