From: gregory.clement@free-electrons.com (Gregory CLEMENT)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: mvebu: use DT properties to fine-tune the L2 configuration
Date: Wed, 17 Jun 2015 16:28:22 +0200 [thread overview]
Message-ID: <55818406.3070703@free-electrons.com> (raw)
In-Reply-To: <1434023472-19851-1-git-send-email-thomas.petazzoni@free-electrons.com>
Hi Thomas,
On 11/06/2015 13:51, Thomas Petazzoni wrote:
> In order to optimize the L2 cache performance, this commit adjusts the
> configuration of the L2 on the Cortex-A9 based Marvell EBU processors
> (Armada 375, 38x and 39x), using the appropriate DT properties.
>
> We enable double linefill, incr double linefill, data prefetch and
> disable double linefill on wrap. This matches the configuration that
> was fine tuned in the Marvell BSP.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
applied on mvebu/dt-4.3
Thanks,
Gregory
> ---
> Enabling the data prefetching depends on a patch from "Hauke Mehrtens
> <hauke@hauke-m.de>", [PATCH v4] ARM: l2c: add options to overwrite
> prefetching behavior, which has been applied by Russell (see
> http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=8391/1)
> but does not appear yet in his for-next branch.
> ---
> arch/arm/boot/dts/armada-375.dtsi | 4 ++++
> arch/arm/boot/dts/armada-38x.dtsi | 4 ++++
> arch/arm/boot/dts/armada-39x.dtsi | 4 ++++
> 3 files changed, 12 insertions(+)
>
> diff --git a/arch/arm/boot/dts/armada-375.dtsi b/arch/arm/boot/dts/armada-375.dtsi
> index f076ff8..4d4964b 100644
> --- a/arch/arm/boot/dts/armada-375.dtsi
> +++ b/arch/arm/boot/dts/armada-375.dtsi
> @@ -176,6 +176,10 @@
> reg = <0x8000 0x1000>;
> cache-unified;
> cache-level = <2>;
> + arm,double-linefill-incr = <1>;
> + arm,double-linefill-wrap = <0>;
> + arm,double-linefill = <1>;
> + prefetch-data = <1>;
> };
>
> scu at c000 {
> diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi
> index 218a2ac..a86d1dc 100644
> --- a/arch/arm/boot/dts/armada-38x.dtsi
> +++ b/arch/arm/boot/dts/armada-38x.dtsi
> @@ -143,6 +143,10 @@
> reg = <0x8000 0x1000>;
> cache-unified;
> cache-level = <2>;
> + arm,double-linefill-incr = <1>;
> + arm,double-linefill-wrap = <0>;
> + arm,double-linefill = <1>;
> + prefetch-data = <1>;
> };
>
> scu at c000 {
> diff --git a/arch/arm/boot/dts/armada-39x.dtsi b/arch/arm/boot/dts/armada-39x.dtsi
> index ecd1318..06d9cc5 100644
> --- a/arch/arm/boot/dts/armada-39x.dtsi
> +++ b/arch/arm/boot/dts/armada-39x.dtsi
> @@ -104,6 +104,10 @@
> reg = <0x8000 0x1000>;
> cache-unified;
> cache-level = <2>;
> + arm,double-linefill-incr = <1>;
> + arm,double-linefill-wrap = <0>;
> + arm,double-linefill = <1>;
> + prefetch-data = <1>;
> };
>
> scu at c000 {
>
--
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
prev parent reply other threads:[~2015-06-17 14:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-11 11:51 [PATCH] ARM: mvebu: use DT properties to fine-tune the L2 configuration Thomas Petazzoni
2015-06-17 14:28 ` Gregory CLEMENT [this message]
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=55818406.3070703@free-electrons.com \
--to=gregory.clement@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.