From: Daniel Mack <zonque@gmail.com>
To: "Philip, Avinash" <avinashphilip@ti.com>
Cc: "linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"Hunter, Jon" <jon-hunter@ti.com>,
"Mohammed, Afzal" <afzal@ti.com>,
"tony@atomide.com" <tony@atomide.com>,
"paul@pwsan.com" <paul@pwsan.com>,
"Nori, Sekhar" <nsekhar@ti.com>,
"jacmet@sunsite.dk" <jacmet@sunsite.dk>,
"grant.likely@secretlab.ca" <grant.likely@secretlab.ca>,
"rob.herring@calxeda.com" <rob.herring@calxeda.com>,
"devicetree-discuss@lists.ozlabs.org"
<devicetree-discuss@lists.ozlabs.org>
Subject: Re: [PATCH v5 4/4] ARM: OMAP: gpmc: add DT bindings for GPMC timings and NAND
Date: Thu, 29 Nov 2012 16:07:20 +0100 [thread overview]
Message-ID: <50B77A28.8080608@gmail.com> (raw)
In-Reply-To: <518397C60809E147AF5323E0420B992E3EA0BB4B@DBDE01.ent.ti.com>
On 29.11.2012 15:59, Philip, Avinash wrote:
> On Thu, Nov 29, 2012 at 18:11:42, Daniel Mack wrote:
>> On 29.11.2012 13:36, Philip, Avinash wrote:
>>> On Wed, Nov 28, 2012 at 22:28:59, Daniel Mack wrote:
>>> [...]
>>>> + if (!of_property_read_string(child, "ti,nand-ecc-opt", &s)) {
>>>> + for (val = 0; val < ARRAY_SIZE(nand_ecc_opts); val++)
>>>> + if (!strcasecmp(s, nand_ecc_opts[val])) {
>>>> + gpmc_nand_data->ecc_opt = val;
>>>> + break;
>>>> + }
>>>> +
>>>> + /*
>>>> + * AM335x RBL compatibility mode - dependns on runtime
>>>> + * detection of the error location module.
>>>> + */
>>>> + if (!strcasecmp(s, "bch8-am335xrbl-compatible")) {
>>>> + gpmc_nand_data->ecc_opt = OMAP_ECC_BCH8_CODE_HW;
>>>> + gpmc_nand_data->is_elm_used = true;
>>>
>>> Remove is_elm_used from struct omap_nand_platform_data. Now this data
>>> populated as part of run time detection of elm module. So please remove
>>> The usage of is_elm_used;
>>
>> So why do we need "bch8-am335xrbl-compatible" as special case then?
>>
>> I thought the whole idea here is to tell the driver we want bch8 *and*
>> the usage of the elm, instead of falling back to the (incompatible)
>> software mode? If I remove that assignment, "bch8-am335xrbl-compatible"
>> is the same than "bch8".
>>
>
> Here we have different problems present.
> 1. GPMC-NAND DT binding support.
> 2. Compatible ECC layout between kernel, boot loader.
> 3. Support for hardware accelerator, i.e ELM for error correction.
>
> So priority should go for GPMC DT binding support.
> Can you please proceed with GPMC-NAND DT bindings without considering
> ELM so that driver features existing can be obtained with DT.
>
> I will take care of ECC layout (or RBL) compatibility along with ELM
> series. I will make ELM series on top of your changes. This way we can
> avoid circular dependency
Ok, fair enough. I'll drop "bch8-am335xrbl-compatible" from the list
again and only care for those that are present in the enum.
Before I send the patches again, could you quickly state which
repository they will go through? I'll make sure there are no conflicts
when applying.
>> Which detail am I missing? :)
>
> I think what you need is NAND ECC layout to be common across Kernel and
> boot loader. Strictly speaking ELM is not a necessity for it. The common
> layout can be obtained even without presence of ELM, ELM is only a hardware
> accelerator for error correction. If ELM is not used, we can rely on software
> error correction, at least theoretically. But the way software error correction
> is handled currently in omap nand driver will not help us as ecc layout assumed
> is different.
Yes, understood, hence I need some workaround for now, which I can
happily keep in my local branch.
Thanks,
Daniel
WARNING: multiple messages have this Message-ID (diff)
From: zonque@gmail.com (Daniel Mack)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 4/4] ARM: OMAP: gpmc: add DT bindings for GPMC timings and NAND
Date: Thu, 29 Nov 2012 16:07:20 +0100 [thread overview]
Message-ID: <50B77A28.8080608@gmail.com> (raw)
In-Reply-To: <518397C60809E147AF5323E0420B992E3EA0BB4B@DBDE01.ent.ti.com>
On 29.11.2012 15:59, Philip, Avinash wrote:
> On Thu, Nov 29, 2012 at 18:11:42, Daniel Mack wrote:
>> On 29.11.2012 13:36, Philip, Avinash wrote:
>>> On Wed, Nov 28, 2012 at 22:28:59, Daniel Mack wrote:
>>> [...]
>>>> + if (!of_property_read_string(child, "ti,nand-ecc-opt", &s)) {
>>>> + for (val = 0; val < ARRAY_SIZE(nand_ecc_opts); val++)
>>>> + if (!strcasecmp(s, nand_ecc_opts[val])) {
>>>> + gpmc_nand_data->ecc_opt = val;
>>>> + break;
>>>> + }
>>>> +
>>>> + /*
>>>> + * AM335x RBL compatibility mode - dependns on runtime
>>>> + * detection of the error location module.
>>>> + */
>>>> + if (!strcasecmp(s, "bch8-am335xrbl-compatible")) {
>>>> + gpmc_nand_data->ecc_opt = OMAP_ECC_BCH8_CODE_HW;
>>>> + gpmc_nand_data->is_elm_used = true;
>>>
>>> Remove is_elm_used from struct omap_nand_platform_data. Now this data
>>> populated as part of run time detection of elm module. So please remove
>>> The usage of is_elm_used;
>>
>> So why do we need "bch8-am335xrbl-compatible" as special case then?
>>
>> I thought the whole idea here is to tell the driver we want bch8 *and*
>> the usage of the elm, instead of falling back to the (incompatible)
>> software mode? If I remove that assignment, "bch8-am335xrbl-compatible"
>> is the same than "bch8".
>>
>
> Here we have different problems present.
> 1. GPMC-NAND DT binding support.
> 2. Compatible ECC layout between kernel, boot loader.
> 3. Support for hardware accelerator, i.e ELM for error correction.
>
> So priority should go for GPMC DT binding support.
> Can you please proceed with GPMC-NAND DT bindings without considering
> ELM so that driver features existing can be obtained with DT.
>
> I will take care of ECC layout (or RBL) compatibility along with ELM
> series. I will make ELM series on top of your changes. This way we can
> avoid circular dependency
Ok, fair enough. I'll drop "bch8-am335xrbl-compatible" from the list
again and only care for those that are present in the enum.
Before I send the patches again, could you quickly state which
repository they will go through? I'll make sure there are no conflicts
when applying.
>> Which detail am I missing? :)
>
> I think what you need is NAND ECC layout to be common across Kernel and
> boot loader. Strictly speaking ELM is not a necessity for it. The common
> layout can be obtained even without presence of ELM, ELM is only a hardware
> accelerator for error correction. If ELM is not used, we can rely on software
> error correction, at least theoretically. But the way software error correction
> is handled currently in omap nand driver will not help us as ecc layout assumed
> is different.
Yes, understood, hence I need some workaround for now, which I can
happily keep in my local branch.
Thanks,
Daniel
next prev parent reply other threads:[~2012-11-29 15:07 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-28 16:58 [PATCH RESEND v5 0/4] OMAP GPMC DT bindings Daniel Mack
2012-11-28 16:58 ` Daniel Mack
2012-11-28 16:58 ` [PATCH v5 1/4] mtd: omap-nand: pass device_node in platform data Daniel Mack
2012-11-28 16:58 ` Daniel Mack
2012-11-28 16:58 ` [PATCH v5 2/4] ARM: OMAP: gpmc-nand: drop __init annotation Daniel Mack
2012-11-28 16:58 ` Daniel Mack
2012-11-28 16:58 ` [PATCH v5 3/4] ARM: OMAP: gpmc: enable hwecc for AM33xx SoCs Daniel Mack
2012-11-28 16:58 ` Daniel Mack
2012-11-28 16:58 ` [PATCH v5 4/4] ARM: OMAP: gpmc: add DT bindings for GPMC timings and NAND Daniel Mack
2012-11-28 16:58 ` Daniel Mack
[not found] ` <1354121939-11246-5-git-send-email-zonque-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-11-29 12:36 ` Philip, Avinash
2012-11-29 12:36 ` Philip, Avinash
2012-11-29 12:41 ` Daniel Mack
2012-11-29 12:41 ` Daniel Mack
2012-11-29 14:59 ` Philip, Avinash
2012-11-29 14:59 ` Philip, Avinash
2012-11-29 15:07 ` Daniel Mack [this message]
2012-11-29 15:07 ` Daniel Mack
[not found] ` <50B77A28.8080608-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-11-29 15:24 ` Philip, Avinash
2012-11-29 15:24 ` Philip, Avinash
[not found] ` <1354121939-11246-1-git-send-email-zonque-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-11-29 5:24 ` [PATCH RESEND v5 0/4] OMAP GPMC DT bindings Philip, Avinash
2012-11-29 5:24 ` Philip, Avinash
2012-11-29 11:58 ` Daniel Mack
2012-11-29 11:58 ` Daniel Mack
[not found] ` <50B74DCC.5060808-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-11-29 15:08 ` Philip, Avinash
2012-11-29 15:08 ` Philip, Avinash
2012-11-29 15:23 ` Daniel Mack
2012-11-29 15:23 ` Daniel Mack
[not found] ` <50B77DD5.4090001-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-11-30 5:53 ` Vaibhav Hiremath
2012-11-30 5:53 ` Vaibhav Hiremath
-- strict thread matches above, loose matches on Subject: below --
2012-11-28 14:38 [PATCH " Daniel Mack
2012-11-28 14:38 ` [PATCH v5 4/4] ARM: OMAP: gpmc: add DT bindings for GPMC timings and NAND Daniel Mack
2012-11-28 14:38 ` Daniel Mack
2012-11-28 16:46 ` Tony Lindgren
2012-11-28 16:46 ` Tony Lindgren
2012-11-28 16:59 ` Daniel Mack
2012-11-28 16:59 ` Daniel Mack
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=50B77A28.8080608@gmail.com \
--to=zonque@gmail.com \
--cc=afzal@ti.com \
--cc=avinashphilip@ti.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=grant.likely@secretlab.ca \
--cc=jacmet@sunsite.dk \
--cc=jon-hunter@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=nsekhar@ti.com \
--cc=paul@pwsan.com \
--cc=rob.herring@calxeda.com \
--cc=tony@atomide.com \
/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.