Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1659509

Re: [PATCH -next] mtd: nand: Add support for Toshiba BENAND (Built-in ECC NAND)

From KOBAYASHI Yoshitake <yoshitake.kobayashi@toshiba.co.jp>
Newsgroups linux.kernel
Subject Re: [PATCH -next] mtd: nand: Add support for Toshiba BENAND (Built-in ECC NAND)
Date 2017-06-07 10:20 +0200
Message-ID <tPEm6-44h-17@gated-at.bofh.it> (permalink)
References <tLcHL-7OM-7@gated-at.bofh.it> <tLqhI-8aW-9@gated-at.bofh.it> <tOSUa-79A-23@gated-at.bofh.it> <tPu3o-5KI-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2017/06/07 6:11, Boris Brezillon wrote:
> On Mon, 5 Jun 2017 14:36:23 +0900
> KOBAYASHI Yoshitake <yoshitake.kobayashi@toshiba.co.jp> wrote:
> 
>> Hi Boris,
>>
>> Thank you very much for your detailed review.
>> I just comming back from busy week for conference and started to look it.
>>
>> I have a question regarding to the following comment.
>>
>>>>  static int toshiba_nand_init(struct nand_chip *chip)
>>>>  {
>>>> +	struct mtd_info *mtd = nand_to_mtd(chip);
>>>> +
>>>>  	if (nand_is_slc(chip))
>>>>  		chip->bbt_options |= NAND_BBT_SCAN2NDPAGE;
>>>>  
>>>> +	if (chip->ecc.mode == NAND_ECC_BENAND) {
>>>> +		chip->ecc.options = NAND_ECC_CUSTOM_PAGE_ACCESS;
>>>> +		chip->ecc.bytes = 0;  
>>>
>>> It should be set to 16 according to the datasheet. But I guess this is
>>> not exactly true. I'm pretty sure we can use some of these bytes to
>>> store real data. Assuming you're using BCH, only 13bytes are needed for
>>> 8bits/512bytes strength, and I guess the BBM region is also left
>>> untouched (first 2 bytes of the OOB region).  
>>
>> On BENAND, all OOB reginon can be used by user (driver). The calculated
>> ECC data stored into other isolated area which is ubable to access from user.
>> This is why chip->ecc.bytes = 0.
> 
> Oh, nice!
> 
>> To make sure this specification, I also checked the BENAND datasheet
>> but unfortunatelly it was undocumented. Sorry for this confusion.
> 
> No problem. Do you think you can update the datasheet (or ask someone
> who can) to clarify this aspect? As you said, it's really not clear
> that these ECC bytes are actually stored in a dedicated region that is
> invisible to users.

Thank you for your comment. I asked to the product department about this.
They say they are confirming whether they can update our product datasheet or not.

-- Yoshi

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH -next] mtd: nand: Add support for Toshiba BENAND (Built-in ECC NAND) KOBAYASHI Yoshitake <yoshitake.kobayashi@toshiba.co.jp> - 2017-05-26 04:00 +0200
  Re: [PATCH -next] mtd: nand: Add support for Toshiba BENAND  (Built-in ECC NAND) Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-05-26 18:30 +0200
    Re: [PATCH -next] mtd: nand: Add support for Toshiba BENAND (Built-in  ECC NAND) KOBAYASHI Yoshitake <yoshitake.kobayashi@toshiba.co.jp> - 2017-06-05 07:40 +0200
      Re: [PATCH -next] mtd: nand: Add support for Toshiba BENAND  (Built-in ECC NAND) Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-06-06 23:20 +0200
        Re: [PATCH -next] mtd: nand: Add support for Toshiba BENAND (Built-in  ECC NAND) KOBAYASHI Yoshitake <yoshitake.kobayashi@toshiba.co.jp> - 2017-06-07 10:20 +0200

csiph-web