Part Number: AM3352
Tool/software: Linux
Dear all:
Our product is based on AM3352 and AMSDKv8.0. We find that the CPSW ethernet performance will become slow and the CPU utiliaztion will be 100% after running iperf or vsftpd application a few moment (about one minute).
This problem also be reported in this topic:https://e2e.ti.com/support/arm/sitara_arm/f/791/t/586788
Using SDK 01.00.00.03 can fix this problem. Also, I have found the patch below in AMSDK v8.0 cause the problem.
But I do not understand the reason. Can you give me an explanation:
1. Why this patch about mailbox-wkup_m3 module in AMSDK v8.0 can effect the CPSW ethernet performance and cause the CPU utilization very high ?
2. Which patches in SDK v01.00.00.03 fix this problem ?
=============================================
commit 2e560903e75ef790fd0428dbb53f65a2ee1ad4c6
Author: Dave Gerlach <d-gerlach@ti.com>
Date: Wed Dec 10 04:18:16 2014 +0000
mailbox/omap: Add ti,mbox-send-noirq quirk to fix AM33xx CPU Idle
The mailbox framework controls the transmission queue and requires
either its controller implementations or clients to run the state
machine for the Tx queue. The OMAP mailbox controller uses a Tx-ready
interrupt as the equivalent of a Tx-done interrupt to run this Tx
queue state-machine.
The WkupM3 processor on AM33xx and AM43xx SoCs is used to offload
certain PM tasks, like doing the necessary operations for Device
PM suspend/resume or for entering lower c-states during cpuidle.
The CPUIdle on AM33xx requires the messages to be sent without
having to trigger the Tx-ready interrupts, as the interrupt
would immediately terminate the CPUIdle operation. Support for
this has been added by introducing a DT quirk, "ti,mbox-send-noirq"
and using it to modify the normal OMAP mailbox controller behavior
on the sub-mailboxes used to communicate with the WkupM3 remote
processor. This also requires the wkup_m3_ipc driver to adjust
its mailbox usage logic to run the Tx state machine.
NOTE:
- AM43xx does not communicate with WkupM3 for CPU Idle, so is
not affected by this behavior. But, it uses the same IPC driver
for PM suspend/resume functionality, so requires the quirk as
well, because of changes to the common wkup_m3_ipc driver.
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
[s-anna@ti.com: revise logic and update comments/patch description]
Signed-off-by: Suman Anna <s-anna@ti.com>
Documentation/devicetree/bindings/mailbox/omap-mailbox.txt | 8 ++++++++
drivers/mailbox/omap-mailbox.c | 54 +++++++++++++++++++++++++++++++++++++++++++++++++----
2 files changed, 58 insertions(+), 4 deletions(-)
=============================================
The screenshot (the CPU utiliaztion is 100% when have FTP transfer)
