From: Will Deacon <will.deacon@arm.com>
To: Vivek Gautam <gautam.vivek@samsung.com>
Cc: "linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-samsung-soc@vger.kernel.org"
<linux-samsung-soc@vger.kernel.org>,
"linux@arm.linux.org.uk" <linux@arm.linux.org.uk>,
"kgene.kim@samsung.com" <kgene.kim@samsung.com>,
"sboyd@codeaurora.org" <sboyd@codeaurora.org>,
Doug Anderson <dianders@chromium.org>,
David Garbett <David.Garbett@arm.com>,
Catalin Marinas <Catalin.Marinas@arm.com>,
"gregory.clement@free-electrons.com"
<gregory.clement@free-electrons.com>,
Olof Johansson <olofj@chromium.org>
Subject: Re: [PATCH] arm: Add Arm Erratum 773769 for Large data RAM latency.
Date: Wed, 8 Jan 2014 14:35:29 +0000 [thread overview]
Message-ID: <20140108143529.GB14122@mudshark.cambridge.arm.com> (raw)
In-Reply-To: <1389187991-26446-1-git-send-email-gautam.vivek@samsung.com>
On Wed, Jan 08, 2014 at 01:33:11PM +0000, Vivek Gautam wrote:
> The erratum-773769 occurs on Arm Coretex-A15 (rev r2p0),
> when L2 Data Ram latency is set to 4 cycles or more; or
> when ACP is in use, or with L2 Data RAM slice configured.
> Therefore, the effective latency as calculated in Table 7-2 of
> Cotex-A15 (rev r2p0) trm should be 3 cycles or less.
>
> On Exynos5250 based systems the effective data ram latency
> is 4 cycles, since we have DATA_RAM_SETUP bit enabled (L2CTRL[5]=1b'1)
> and DATA_RAM_LATENCY bits set to 0x2 (L2CTLR[2:0]=3b'010) therefore,
> the effective L2 data RAM latency becomes 4 cycles.
> So erratum '773769' occurs causing a corrupted L2 Cache.
>
> This patch gives a workaround to the mentioned erratum, using below
> mentioned algo:
> ----------------------------------------------------------------
> if data RAM setup = 1
> then check if effective latency i.e (latency + setup + 1) > 3
> if 'true'
> then clear data RAM setup
> goto branch 'a'
> if data RAM setup = 0
> a: then check if data RAM latency > 0x10
> if true then force data RAM latency = 0x10
> ----------------------------------------------------------------
> so that the effective data RAM latency reduces to 3 cycles or less
> and hence prevent hitting the erratum.
>
> NOTE: The Exynos5250 based products have already been shipped, which
> makes it impossible to add the change in bootloader, so we are
> adding the required change in kernel.
NAK. Whilst I appreciate that you may not be able to fix your bootloader,
this isn't the right change to make in the kernel. Blindly changing memory
latencies is likely to do more harm than good for a multi-platform kernel,
even if it works for exynos 5250. The only alternative I can think of (if you
have to make a mainline kernel change) is to restrict the clock frequencies at
which the CPU is allowed to run, although that obviously requires some
investigation in order to determine how viable it is for your SoC.
Will
next prev parent reply other threads:[~2014-01-08 14:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-08 13:33 Vivek Gautam
2014-01-08 14:35 ` Will Deacon [this message]
2014-01-08 16:21 ` Doug Anderson
2014-01-08 19:20 ` Russell King - ARM Linux
2014-01-08 19:43 ` Doug Anderson
2014-01-08 20:58 ` Nicolas Pitre
2014-01-08 21:32 ` Doug Anderson
2014-01-08 21:02 ` Russell King - ARM Linux
2014-01-08 21:33 ` Doug Anderson
2014-01-08 21:08 ` Nicolas Pitre
2014-01-08 21:35 ` Doug Anderson
2014-01-29 12:26 ` Sander
2014-01-10 17:09 ` Tomasz Figa
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=20140108143529.GB14122@mudshark.cambridge.arm.com \
--to=will.deacon@arm.com \
--cc=Catalin.Marinas@arm.com \
--cc=David.Garbett@arm.com \
--cc=dianders@chromium.org \
--cc=gautam.vivek@samsung.com \
--cc=gregory.clement@free-electrons.com \
--cc=kgene.kim@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=olofj@chromium.org \
--cc=sboyd@codeaurora.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
all inboxes | Powered by JetHome®