Skip to content

Commit 0848cab

Browse files
shihyicjwrdegoede
authored andcommitted
platform/mellanox: Fix mlxbf-tmfifo not handling all virtio CONSOLE notifications
rshim console does not show all entries of dmesg. Fixed by setting MLXBF_TM_TX_LWM_IRQ for every CONSOLE notification. Signed-off-by: Shih-Yi Chen <shihyic@nvidia.com> Reviewed-by: Liming Sung <limings@nvidia.com> Reviewed-by: David Thompson <davthompson@nvidia.com> Link: https://lore.kernel.org/r/20230821150627.26075-1-shihyic@nvidia.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent a260f7d commit 0848cab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/platform/mellanox/mlxbf-tmfifo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,7 @@ static bool mlxbf_tmfifo_virtio_notify(struct virtqueue *vq)
887887
tm_vdev = fifo->vdev[VIRTIO_ID_CONSOLE];
888888
mlxbf_tmfifo_console_output(tm_vdev, vring);
889889
spin_unlock_irqrestore(&fifo->spin_lock[0], flags);
890+
set_bit(MLXBF_TM_TX_LWM_IRQ, &fifo->pend_events);
890891
} else if (test_and_set_bit(MLXBF_TM_TX_LWM_IRQ,
891892
&fifo->pend_events)) {
892893
return true;

0 commit comments

Comments
 (0)