From: Nishanth Menon <nm@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V5 09/11] ARM: OMAP5 / DRA7: Setup L2 Aux Control Register with recommended configuration
Date: Fri, 6 Mar 2015 11:33:12 -0600 [thread overview]
Message-ID: <54F9E4D8.4050604@ti.com> (raw)
In-Reply-To: <20150306170553.GB17895@bill-the-cat>
On 03/06/2015 11:05 AM, Tom Rini wrote:
> On Thu, Mar 05, 2015 at 10:41:04PM -0600, Nishanth Menon wrote:
>
>> Update to existing recommendation for L2ACTLR configuration to prevent
>> system instability and optimize performance.
>>
>> These apply to both OMAP5 and DRA7.
>>
>> Reported-by: Vivek Chengalvala <vchengalvala@ti.com>
>> Signed-off-by: Nishanth Menon <nm@ti.com>
>> ---
>> arch/arm/cpu/armv7/omap5/hwinit.c | 16 ++++++++++++++++
>> 1 file changed, 16 insertions(+)
>>
>> diff --git a/arch/arm/cpu/armv7/omap5/hwinit.c b/arch/arm/cpu/armv7/omap5/hwinit.c
>> index f8060555b680..8d6b59eeb044 100644
>> --- a/arch/arm/cpu/armv7/omap5/hwinit.c
>> +++ b/arch/arm/cpu/armv7/omap5/hwinit.c
>> @@ -304,6 +304,21 @@ void config_data_eye_leveling_samples(u32 emif_base)
>> (*ctrl)->control_emif2_sdram_config_ext);
>> }
>>
>> +void init_cpu_configuration(void)
>> +{
>> + u32 l2actlr;
>> +
>> + asm volatile("mrc p15, 1, %0, c15, c0, 0" : "=r"(l2actlr));
>> + /*
>> + * L2ACTLR: Ensure to enable the following:
>> + * 3: Disable clean/evict push to external
>> + * 4: Disable WriteUnique and WriteLineUnique transactions from master
>> + * 8: Disable DVM/CMO message broadcast
>> + */
>> + l2actlr |= 0x118;
>> + omap_smc1(OMAP5_SERVICE_L2ACTLR_SET, l2actlr);
>> +}
>> +
>
> The function should at least be marked as static. I don't see a better
> place for this since we want these bits set sooner rather than later so
> board_late_init or whatever is probably not super awesome as there's
> probably some corner case where we'll get bit, right?
>
yeah - i did consider late_init, then realized that folks might want
to turn on l2 cache, just like they did on cortex-a8 beagle, which'd
mean l2actlr modifications(if done in late_init) with cache on is not
really a good idea, instead stuck with init of omap revision - which
is as early as I could get for a logical place on SoC code.
--
Regards,
Nishanth Menon
next prev parent reply other threads:[~2015-03-06 17:33 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-06 4:40 [U-Boot] [PATCH V5 00/11] ARM: OMAP3-DRA7: CP15 erratum workarounds and improvements Nishanth Menon
2015-03-06 4:40 ` [U-Boot] [PATCH V5 01/11] ARM: Introduce erratum workaround for 798870 Nishanth Menon
2015-03-06 4:40 ` [U-Boot] [PATCH V5 02/11] ARM: Introduce erratum workaround for 454179 Nishanth Menon
2015-03-06 4:40 ` [U-Boot] [PATCH V5 03/11] ARM: Introduce erratum workaround for 430973 Nishanth Menon
2015-03-06 4:40 ` [U-Boot] [PATCH V5 04/11] ARM: Introduce erratum workaround for 621766 Nishanth Menon
2015-03-06 4:41 ` [U-Boot] [PATCH V5 05/11] ARM: OMAP: Change set_pl310_ctrl_reg to be generic Nishanth Menon
2015-03-06 17:08 ` Tom Rini
2015-03-06 17:38 ` Nishanth Menon
2015-03-06 4:41 ` [U-Boot] [PATCH V5 06/11] ARM: OMAP3: Rename omap3.h to omap.h to be generic as all SoCs Nishanth Menon
2015-03-06 4:41 ` [U-Boot] [PATCH V5 07/11] ARM: OMAP3: Get rid of omap3_gp_romcode_call and replace with omap_smc1 Nishanth Menon
2015-03-06 4:41 ` [U-Boot] [PATCH V5 08/11] ARM: DRA7 / OMAP5: Add workaround for ARM errata 798870 Nishanth Menon
2015-03-06 4:41 ` [U-Boot] [PATCH V5 09/11] ARM: OMAP5 / DRA7: Setup L2 Aux Control Register with recommended configuration Nishanth Menon
[not found] ` <20150306170553.GB17895@bill-the-cat>
2015-03-06 17:33 ` Nishanth Menon [this message]
2015-03-06 4:41 ` [U-Boot] [PATCH V5 10/11] ARM: OMAP3: Enable workaround for ARM errata 454179, 430973, 621766 Nishanth Menon
2015-03-06 4:41 ` [U-Boot] [PATCH V5 11/11] ARM: OMAP3: rx51: " Nishanth Menon
2015-03-06 17:39 ` [U-Boot] [PATCH V5 00/11] ARM: OMAP3-DRA7: CP15 erratum workarounds and improvements Nishanth Menon
2015-03-06 21:28 ` Matt Porter
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=54F9E4D8.4050604@ti.com \
--to=nm@ti.com \
--cc=u-boot@lists.denx.de \
/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