All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benoit Sansoni <Benoit.Sansoni@kontron.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] enabling ecc on P2041 and QoreIQ familly not valid for memory >= 4GB
Date: Thu, 24 Jul 2014 06:56:35 +0000	[thread overview]
Message-ID: <53D0AE4A.6020901@kontron.com> (raw)
In-Reply-To: <53CFE3AB.7090000@freescale.com>

York,

I am going to check out the method that you talk about.
For now the fix allow me to boot our board with 8GB it is a good step 
for me.

Thanks
Benoit

On 07/23/2014 06:32 PM, York Sun wrote:
> Benoit,
>
> If your interest is in initializing DDR for ECC, you don't have use
> dma_meminit(). There is a better and faster way to do so. All Freescale modern
> DDR controllers support this feature. All you have to do is to define these macros
>
> CONFIG_DDR_ECC
> CONFIG_ECC_INIT_VIA_DDRCONTROLLER
> CONFIG_MEM_INIT_VALUE
>
> There are plenty of example for you to follow.
>
> But again, we should fix the DMA function anyway.
>
> York
>
>
> On 07/23/2014 12:21 AM, Benoit Sansoni wrote:
>> Hi York,
>>
>> That what I saw in the code.
>>
>> Also to test it you need to have the hardware, but the evaluation board
>> P2041rdb for example does not have some ECC signals rooted for DIMM slot.
>> I validated the patch that I sent on a board based on P2041 with 8GB of
>> memory. Obviously it works with 2GB and 4GB.
>>
>> If you need help, you are welcome.
>>
>> Thanks for your help
>> Benoit
>>
>> On 07/23/2014 12:53 AM, York Sun wrote:
>>> On 07/18/2014 06:11 AM, Benoit Sansoni wrote:
>>>> Hi ,
>>>>
>>>> I found out an issue when enabling ECC for P2041 platform with an amount
>>>> of memory of 8GB.
>>>> The routine "void dma_meminit(uint val, uint size)" is not adapted to
>>>> manage memory size greater or equal to 4GB due to the 'uint' type.
>>>> With this typing the dma_meminit sees 0 as size when memory is for
>>>> example at 8GB. So the ECC part of the memory is not initialized and
>>>> when going in memory the code crash.
>>>> To correct it you need to use phys_size_t type instead of uint.
>>>> It is the same thing for all routines that are called by "dma_meminit".
>>>> I attached a patch that able to correct it easily.
>>>> This patch should be integrated in the main branch I think so.
>>>>
>>>> Regards,
>>>> Benoit
>>>>
>>> This is a valid concern. Some code started when we had far less memory. We need
>>> to comb through the code to fix more of them.
>>>
>>> York
>>>
>>>
>>
> .
>


-- 
Benoit SANSONI
Kontron Modular Computers S.A.S
150 rue Marcelin Berthelot - ZI Toulon Est - BP 244
83078 TOULON Cedex 9 - FRANCE
E-mail: benoit.sansoni at kontron.com
TEL: +33 (0)4 98 16 33 68

  reply	other threads:[~2014-07-24  6:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-18 13:11 [U-Boot] enabling ecc on P2041 and QoreIQ familly not valid for memory >= 4GB Benoit Sansoni
2014-07-22 22:53 ` York Sun
2014-07-23  7:21   ` Benoit Sansoni
2014-07-23 16:32     ` York Sun
2014-07-24  6:56       ` Benoit Sansoni [this message]
2014-08-12 18:07         ` York Sun
2014-08-25 12:35           ` Benoit Sansoni
2014-09-22 17:13             ` 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=53D0AE4A.6020901@kontron.com \
    --to=benoit.sansoni@kontron.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 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.