[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230814175313.7101-1-shihyic@nvidia.com>
Date:   Mon, 14 Aug 2023 13:53:13 -0400
From:   Shiih-Yi Chen <shihyic@...dia.com>
To:     <linux-kernel@...r.kernel.org>,
        Hans de Goede <hdegoede@...hat.com>,
        "Mark Gross" <markgross@...nel.org>,
        Vadim Pasternak <vadimp@...dia.com>,
        <platform-driver-x86@...r.kernel.org>
CC:     shihyic <shihyic@...dia.com>, <davthompson@...dia.com>,
        <limings@...dia.com>
Subject: [PATCH v1] [v1] platform/mellanox: Fix mlxbf-tmfifo not handling all virtio CONSOLE notifictions
From: shihyic <shihyic@...dia.com>
rshim console does not show all entries of dmesg.
Fixed by setting MLXBF_TM_TX_LWM_IRQ for every CONSOLE notification. 
 
Signed-off-by: shihyic <shihyic@...dia.com>
Review-by: limings@...dia.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 a79318e90a13..4561b7d42412 100644
--- a/drivers/platform/mellanox/mlxbf-tmfifo.c
+++ b/drivers/platform/mellanox/mlxbf-tmfifo.c
@@ -887,6 +887,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
Powered by blists - more mailing lists
 
