public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Sinan Akman <sinan@writeme.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] armv7/fsl-ls102xa: Workaround for DDR erratum A008514
Date: Fri, 14 Aug 2015 12:28:29 -0400	[thread overview]
Message-ID: <55CE172D.5020508@writeme.com> (raw)
In-Reply-To: <1439535264-41637-1-git-send-email-yao.yuan@freescale.com>


   Hi Yuan

On 14/08/15 02:54 AM, Yuan Yao wrote:
> Affects: DDR
> Description: Memory controller performance is not optimal with default
> internal target queue register values.
> Impact: Memory controller performance is not optimal.
> Workaround: Write a value of 63b2_0002h to address: 157_020Ch.
>
> Signed-off-by: Yuan Yao <yao.yuan@freescale.com>
> ---
>   arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h |  2 +-
>   board/freescale/ls1021aqds/ls1021aqds.c           | 10 ++++++++++
>   board/freescale/ls1021atwr/ls1021atwr.c           | 10 ++++++++++
>   3 files changed, 21 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h b/arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h
> index d34044a..21bd65b 100644
> --- a/arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h
> +++ b/arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h
> @@ -221,7 +221,7 @@ struct ccsr_scfg {
>   	u32 scfgrevcr;
>   	u32 coresrencr;
>   	u32 pex2pmrdsr;
> -	u32 ddrc1cr;
> +	u32 eddrtqcfg;

   Is this a simple name change on the register, that ddrc1cr
is not needed/used anywhere else ?

>   	u32 ddrc2cr;
>   	u32 ddrc3cr;
>   	u32 ddrc4cr;
> diff --git a/board/freescale/ls1021aqds/ls1021aqds.c b/board/freescale/ls1021aqds/ls1021aqds.c
> index d6ef6ba..52bffc8 100644
> --- a/board/freescale/ls1021aqds/ls1021aqds.c
> +++ b/board/freescale/ls1021aqds/ls1021aqds.c
> @@ -299,6 +299,16 @@ int board_early_init_f(void)
>   	out_be32(&scfg->endiancr, SCFG_ENDIANCR_LE);
>
>   	/*
> +	 * Memory controller require a register write before being enabled.
> +	 * Affects: DDR
> +	 * Register: EDDRTQCFG
> +	 * Description: Memory controller performance is not optimal with
> +	 *		default internal target queue register values.
> +	 * Workaround: Write a value of 63b2_0002h to address: 157_020Ch.
> +	 */
> +	out_be32(&scfg->eddrtqcfg, 0x63b20002);

   Can you perhaps bring the comment from your 2/3 patch that
explains EDDRTQCFG Registers are so that the reader sees it
before its first usage.

   Also, is it possible to explain here what that magic
value 0x63b20002 corresponds to and perhaps use a #define
that explains its function ?

> +
> +	/*
>   	 * Enable snoop requests and DVM message requests for
>   	 * Slave insterface S4 (A7 core cluster)
>   	 */
> diff --git a/board/freescale/ls1021atwr/ls1021atwr.c b/board/freescale/ls1021atwr/ls1021atwr.c
> index b7458a9..c565e91 100644
> --- a/board/freescale/ls1021atwr/ls1021atwr.c
> +++ b/board/freescale/ls1021atwr/ls1021atwr.c
> @@ -501,6 +501,16 @@ int board_early_init_f(void)
>   	out_be32(&scfg->endiancr, SCFG_ENDIANCR_LE);
>
>   	/*
> +	 * Memory controller require a register write before being enabled.
> +	 * Affects: DDR
> +	 * Register: EDDRTQCFG
> +	 * Description: Memory controller performance is not optimal with
> +	 *		default internal target queue register values.
> +	 * Workaround: Write a value of 63b2_0002h to address: 157_020Ch.
> +	 */
> +	out_be32(&scfg->eddrtqcfg, 0x63b20002);

   Same here.

> +
> +	/*
>   	 * Enable snoop requests and DVM message requests for
>   	 * Slave insterface S4 (A7 core cluster)
>   	 */
>

   Regards
   Sinan Akman

  parent reply	other threads:[~2015-08-14 16:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-14  6:54 [U-Boot] [PATCH 1/3] armv7/fsl-ls102xa: Workaround for DDR erratum A008514 Yuan Yao
2015-08-14  6:54 ` [U-Boot] [PATCH 2/3] LS102XA:workaround:disable priorities within DDR Yuan Yao
2015-08-14 16:28   ` Sinan Akman
2015-08-18 19:13   ` York Sun
2015-08-14  6:54 ` [U-Boot] [PATCH 3/3] ls102xa: Enable snoop and DVM message requests Yuan Yao
2015-08-18 19:15   ` York Sun
2015-08-14 16:28 ` Sinan Akman [this message]
2015-08-17  2:37   ` [U-Boot] [PATCH 1/3] armv7/fsl-ls102xa: Workaround for DDR erratum A008514 Yao Yuan
2015-08-14 17:23 ` York Sun

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=55CE172D.5020508@writeme.com \
    --to=sinan@writeme.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