mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Change GCE hardware timeout to software timeout
@ 2024-01-10 15:51 Jason-JH.Lin
  2024-01-10 15:51 ` [PATCH 1/2] mailbox: mtk-cmdq: " Jason-JH.Lin
  2024-01-10 15:51 ` [PATCH 2/2] mailbox: mtk-cmdq: Add set GCE thread timeout interface Jason-JH.Lin
  0 siblings, 2 replies; 5+ messages in thread
From: Jason-JH.Lin @ 2024-01-10 15:51 UTC (permalink / raw)
  To: Jassi Brar, Matthias Brugger, AngeloGioacchino Del Regno, Chun-Kuang Hu
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, Jason-ch Chen,
	Johnson Wang, Jason-JH . Lin, Singo Chang, Nancy Lin, Shawn Sung,
	Project_Global_Chrome_Upstream_Group, Jason-jh Lin

From: Jason-jh Lin <jason-jh.lin@mediatek.corp-partner.google.com>

Since the max value of GCE hardware interrupt timeout for wait and poll
instructions is about 1760ms.
It is not enough for the use case of ISP driver below:
GCE Thread A: wait for SOF and set event 1.
GCE Thread B: wait for event 1 and set event 2.
GCE Thread C: wait for event 2 and set event 3.
GCE Thread D: wait for event 3 and set event 4.
GCE Thread E: wait for event 4 and set EOF.
If all GCE Threads start at the same time, the latest GCE Thread E will
wait for event more than 2 seconds.

Therefore, we changed the hardware timeout to software timeout, making it
longer, more certain, and making it configurable by CMDQ client drivers.

Jason-JH.Lin (2):
  mailbox: mtk-cmdq: Change GCE hardware timeout to software timeout
  mailbox: mtk-cmdq: Add set GCE thread timeout interface

 drivers/mailbox/mtk-cmdq-mailbox.c       | 183 +++++++++++++++++++++++
 include/linux/mailbox/mtk-cmdq-mailbox.h |   4 +
 2 files changed, 187 insertions(+)

-- 
2.18.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-12  6:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-10 15:51 [PATCH 0/2] Change GCE hardware timeout to software timeout Jason-JH.Lin
2024-01-10 15:51 ` [PATCH 1/2] mailbox: mtk-cmdq: " Jason-JH.Lin
2024-01-11  1:50   ` CK Hu (胡俊光)
2024-01-12  6:52     ` Jason-JH Lin (林睿祥)
2024-01-10 15:51 ` [PATCH 2/2] mailbox: mtk-cmdq: Add set GCE thread timeout interface Jason-JH.Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®