core: kernel: fix big latency due to trace_ext_put() via. uart #7648
+0
−17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When optee emits log, the NW interrupts are masked, if console_putc() is implemetned by writing to a uart, given uart slow characteristic, this could introduce a big NW irq latency.
Though, this patch brings a side effect: trace_ext_put() may emit log simultenaously thus the log is hard to read. However, comparing the side effect between hard to read log and big NW irq latency, the NW irq latency is much more severe, we have to compromise here.