[SRU][J:linux-bluefield][PATCH v3 1/1] UBUNTU: SAUCE: mlxbf-tmfifo.c: Amend previous tmfifo patch w/ regard to schedule_work
shihyic
shihyic at nvidia.com
Thu Jul 20 20:39:40 UTC 2023
From: Shih-Yi Chen <shihyic at nvidia.com>
BugLink: https://bugs.launchpad.net/ubuntu/+source/linux-bluefield/+bug/2028197
Fix rshim console output got cutoff due to tmfifo driver not processing all virtio console notifications.
Signed-off-by: Shih-Yi Chen <shihyic at nvidia.com>
Reviewed-by: Liming Sun <limings at nvidia.com>
---
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.30.1
More information about the kernel-team
mailing list