38 lines
1.5 KiB
Diff
38 lines
1.5 KiB
Diff
|
From b23bb194dc1dbad104f2afce1a8ed202d182b73b Mon Sep 17 00:00:00 2001
|
||
|
From: Shih-Yi Chen <shihyic@nvidia.com>
|
||
|
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 <shihyic@nvidia.com>
|
||
|
Reviewed-by: Liming Sun <limings@nvidia.com>
|
||
|
Acked-by: Bartlomiej Zolnierkiewicz <bartlomiej.zolnierkiewicz@canonical.com>
|
||
|
Acked-by: Tim Gardner <tim.gardner@canonical.com>
|
||
|
[bzolnier: use a short URL version for BugLink]
|
||
|
Signed-off-by: Bartlomiej Zolnierkiewicz <bartlomiej.zolnierkiewicz@canonical.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.14.1
|
||
|
|