From: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
To: Bjorn Andersson <bjorn.andersson@linaro.org>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
"Matthias Brugger" <matthias.bgg@gmail.com>
Cc: <Project_Global_Chrome_Upstream_Group@mediatek.com>,
<linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-mediatek@lists.infradead.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-remoteproc@vger.kernel.org>,
Hsin-Yi Wang <hsinyi@chromium.org>,
Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Subject: [PATCH v2 0/1] enable cache for mt8186 SCP
Date: Fri, 1 Jul 2022 20:12:28 +0800 [thread overview]
Message-ID: <20220701121229.22756-1-allen-kh.cheng@mediatek.com> (raw)
This patch is based on kernel/git/next/linux-next.git/#master and for
enableing cache in SCP.
In mt8186 SCP, it provides parts of these features vedio encode/decode,
camera, and CrOS EC host command. We don't have enough SRAM to support
too many text segments, heap and stack, so SCP will use DRAM as execution
space.·
The DRAM power and latency is much larger than SRAM. cache is used to
mitigate the negative effects for performace. Also it's designed in SCP
bus architecture and does not affect implemenations where the application
processor is using caches.
We reserve 0x3C000 <-> 0x40000 in SRAM(SCP) to support cache and set
I-cache and D-cache size before loading SCP FW. If there isn't no this
patch, SCP still works with DRAM and SRAM.
This driver was tested on mt8186 with below firmware
This driver was tested on mt8186 with below firmware
https://lore.kernel.org/linux-firmware/10ed0b2a78baa88f7fd1d466036c98de2f6d8e29.camel@mediatek.com/T/#t
changes since v1:
- rebase to linux-next
- add more information in commit message
Allen-KH Cheng (1):
remoteproc: mediatek: enable cache for mt8186 SCP
drivers/remoteproc/mtk_scp.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
--
2.18.0
next reply other threads:[~2022-07-01 12:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-01 12:12 Allen-KH Cheng [this message]
2022-07-01 12:12 ` [PATCH v2 1/1] remoteproc: mediatek: enable cache for mt8186 SCP Allen-KH Cheng
2022-07-04 9:03 ` Tinghan Shen
2022-07-04 9:25 ` AngeloGioacchino Del Regno
2022-07-04 17:22 ` Mathieu Poirier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220701121229.22756-1-allen-kh.cheng@mediatek.com \
--to=allen-kh.cheng@mediatek.com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=hsinyi@chromium.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=mathieu.poirier@linaro.org \
--cc=matthias.bgg@gmail.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox