Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
Hi Jagan, As already discussed in this forum that flash "S25FS512S" have Hybrid sector option and to come out of this hybrid mode we required "spansion_s25fss_disable_4KB_erase" patch in which we set bit 3 of "Configuration Register 3 Non-Volatile (CR3NV)/ Configuration Register-3 Volatile (CR3V)". This disable 4-kB Erase and configure flash in Uniform Sector Architecture. After removing this patch, we are facing issues in erasing initial sectors of flash. Please let me know what is your plan to fix this issue, Can I send patch again ? Thanks SuresH > -Original Message- > From: york sun > Sent: Friday, March 31, 2017 5:50 AM > To: Suresh Gupta <suresh.gu...@nxp.com> > Cc: Mingkai Hu <mingkai...@nxp.com>; Jagan Teki > <jagannadh.t...@gmail.com>; Jagan Teki <ja...@openedev.com>; u- > b...@lists.denx.de > Subject: Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase > > On 03/27/2017 06:12 PM, Mingkai Hu wrote: > > > >> -Original Message- > >> From: Jagan Teki [mailto:jagannadh.t...@gmail.com] > >> Sent: Tuesday, March 28, 2017 1:57 AM > >> To: york sun <york....@nxp.com> > >> Cc: Jagan Teki <ja...@openedev.com>; u-boot@lists.denx.de; Mingkai Hu > >> <mingkai...@nxp.com> > >> Subject: Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase > >> > >> On Mon, Mar 27, 2017 at 11:05 PM, york sun <york@nxp.com> wrote: > >>> On 03/15/2017 06:44 PM, york@nxp.com wrote: > >>>> On 01/27/2017 10:04 AM, Jagan Teki wrote: > >>>>> On Mon, Jan 23, 2017 at 8:05 PM, york sun <york@nxp.com> wrote: > >>>>>> On 12/12/2016 09:32 PM, Yao Yuan wrote: > >>>>>>> Hi Jagan, > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> Do you have any comments? > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> Thanks for your work and you know it's important for QSPI with > >>>>>>> S25FS512S. > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> It seems S25FS512S can't support the SECT_4K, right? > >>>>>>> > >>>>>>> And it better to retain the disable_4kb, but we can add a flag > >>>>>>> in dts to select whether enable it. > >>>>>>> > >>>>>>> > >>>>>> > >>>>>> Jagan, > >>>>>> > >>>>>> This is blocking me from using the board with this specific flash chip. > >>>>>> Can you take a look? By reverting this single commit 116e005c, my > >>>>>> board works again. > >>>>> > >>>>> I will try to work on this. > >>>>> > >>>> > >>>> Guys, > >>>> > >>>> Where are we on this issue? > >>>> > >>>> York > >>>> > >>> > >>> Can we revert this patch or have a fix? > >> > >> Just wanted to understand more about this, I've attached programming > >> model in previous mail about this and based on that I've fixed with all 4K. > >> Waiting for 'Yao Yuan' inputs on this. > >> > > > > +Suresh to follow up this question. > > > > Suresh, > > Can you follow up on this? This issue is blocking me from testing QSPI on > LS1046ARDB. Even I revert this patch, I can only erase part of the flash. > > York ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
> -Original Message- > From: Jagan Teki [mailto:jagannadh.t...@gmail.com] > Sent: Tuesday, March 28, 2017 1:57 AM > To: york sun <york@nxp.com> > Cc: Jagan Teki <ja...@openedev.com>; u-boot@lists.denx.de; Mingkai Hu > <mingkai...@nxp.com> > Subject: Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase > > On Mon, Mar 27, 2017 at 11:05 PM, york sun <york@nxp.com> wrote: > > On 03/15/2017 06:44 PM, york@nxp.com wrote: > >> On 01/27/2017 10:04 AM, Jagan Teki wrote: > >>> On Mon, Jan 23, 2017 at 8:05 PM, york sun <york@nxp.com> wrote: > >>>> On 12/12/2016 09:32 PM, Yao Yuan wrote: > >>>>> Hi Jagan, > >>>>> > >>>>> > >>>>> > >>>>> Do you have any comments? > >>>>> > >>>>> > >>>>> > >>>>> Thanks for your work and you know it’s important for QSPI with > >>>>> S25FS512S. > >>>>> > >>>>> > >>>>> > >>>>> It seems S25FS512S can’t support the SECT_4K, right? > >>>>> > >>>>> And it better to retain the disable_4kb, but we can add a flag in > >>>>> dts to select whether enable it. > >>>>> > >>>>> > >>>> > >>>> Jagan, > >>>> > >>>> This is blocking me from using the board with this specific flash chip. > >>>> Can you take a look? By reverting this single commit 116e005c, my > >>>> board works again. > >>> > >>> I will try to work on this. > >>> > >> > >> Guys, > >> > >> Where are we on this issue? > >> > >> York > >> > > > > Can we revert this patch or have a fix? > > Just wanted to understand more about this, I've attached programming > model in previous mail about this and based on that I've fixed with all 4K. > Waiting for 'Yao Yuan' inputs on this. > +Suresh to follow up this question. Thanks, Mingkai ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
On 03/27/2017 06:12 PM, Mingkai Hu wrote: > >> -Original Message- >> From: Jagan Teki [mailto:jagannadh.t...@gmail.com] >> Sent: Tuesday, March 28, 2017 1:57 AM >> To: york sun <york@nxp.com> >> Cc: Jagan Teki <ja...@openedev.com>; u-boot@lists.denx.de; Mingkai Hu >> <mingkai...@nxp.com> >> Subject: Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase >> >> On Mon, Mar 27, 2017 at 11:05 PM, york sun <york@nxp.com> wrote: >>> On 03/15/2017 06:44 PM, york@nxp.com wrote: >>>> On 01/27/2017 10:04 AM, Jagan Teki wrote: >>>>> On Mon, Jan 23, 2017 at 8:05 PM, york sun <york@nxp.com> wrote: >>>>>> On 12/12/2016 09:32 PM, Yao Yuan wrote: >>>>>>> Hi Jagan, >>>>>>> >>>>>>> >>>>>>> >>>>>>> Do you have any comments? >>>>>>> >>>>>>> >>>>>>> >>>>>>> Thanks for your work and you know it’s important for QSPI with >>>>>>> S25FS512S. >>>>>>> >>>>>>> >>>>>>> >>>>>>> It seems S25FS512S can’t support the SECT_4K, right? >>>>>>> >>>>>>> And it better to retain the disable_4kb, but we can add a flag in >>>>>>> dts to select whether enable it. >>>>>>> >>>>>>> >>>>>> >>>>>> Jagan, >>>>>> >>>>>> This is blocking me from using the board with this specific flash chip. >>>>>> Can you take a look? By reverting this single commit 116e005c, my >>>>>> board works again. >>>>> >>>>> I will try to work on this. >>>>> >>>> >>>> Guys, >>>> >>>> Where are we on this issue? >>>> >>>> York >>>> >>> >>> Can we revert this patch or have a fix? >> >> Just wanted to understand more about this, I've attached programming >> model in previous mail about this and based on that I've fixed with all 4K. >> Waiting for 'Yao Yuan' inputs on this. >> > > +Suresh to follow up this question. > Suresh, Can you follow up on this? This issue is blocking me from testing QSPI on LS1046ARDB. Even I revert this patch, I can only erase part of the flash. York ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
On Mon, Mar 27, 2017 at 11:05 PM, york sunwrote: > On 03/15/2017 06:44 PM, york@nxp.com wrote: >> On 01/27/2017 10:04 AM, Jagan Teki wrote: >>> On Mon, Jan 23, 2017 at 8:05 PM, york sun wrote: On 12/12/2016 09:32 PM, Yao Yuan wrote: > Hi Jagan, > > > > Do you have any comments? > > > > Thanks for your work and you know it’s important for QSPI with > S25FS512S. > > > > It seems S25FS512S can’t support the SECT_4K, right? > > And it better to retain the disable_4kb, but we can add a flag in > dts to > select whether enable it. > > Jagan, This is blocking me from using the board with this specific flash chip. Can you take a look? By reverting this single commit 116e005c, my board works again. >>> >>> I will try to work on this. >>> >> >> Guys, >> >> Where are we on this issue? >> >> York >> > > Can we revert this patch or have a fix? Just wanted to understand more about this, I've attached programming model in previous mail about this and based on that I've fixed with all 4K. Waiting for 'Yao Yuan' inputs on this. thanks! -- Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
On 03/15/2017 06:44 PM, york@nxp.com wrote: > On 01/27/2017 10:04 AM, Jagan Teki wrote: >> On Mon, Jan 23, 2017 at 8:05 PM, york sunwrote: >>> On 12/12/2016 09:32 PM, Yao Yuan wrote: Hi Jagan, Do you have any comments? Thanks for your work and you know it’s important for QSPI with S25FS512S. It seems S25FS512S can’t support the SECT_4K, right? And it better to retain the disable_4kb, but we can add a flag in dts to select whether enable it. >>> >>> Jagan, >>> >>> This is blocking me from using the board with this specific flash chip. >>> Can you take a look? By reverting this single commit 116e005c, my board >>> works again. >> >> I will try to work on this. >> > > Guys, > > Where are we on this issue? > > York > Can we revert this patch or have a fix? York ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
Ping? On Mon, Mar 20, 2017 at 9:42 PM, Jagan Tekiwrote: > Hi, > > Let's start the discussion, if possible we may add linux-mtd ML. > > Here is the details: from attached pdf Page no:2 > > In spansion S25FS-S family the physical sectors are grouped as > normal and parameter sectors. Parameter sectors are 4kB in size > with 8 set located at the bottom or top address of a device. > Normal sectors are similar to other flash family with sizes of > 64kB or 32 kB. > > Do we agree till this point? > > To erase whole flash using sector erase(D8h or DCh) won't effect > the parameter sectors, so in order to erase these we must use 4K > sector erase commands (20h or 21h) separately. > > So better to erase the whole flash using 4K sector erase instead > of detecting these family parts again and do two different erase > operations. > > On Tue, Dec 13, 2016 at 10:57 AM, Yao Yuan wrote: >> Hi Jagan, >> >> Do you have any comments? >> >> Thanks for your work and you know it's important for QSPI with S25FS512S. >> >> It seems S25FS512S can't support the SECT_4K, right? >> And it better to retain the disable_4kb, but we can add a flag in dts to >> select whether enable it. >> >> Best Regards, >> Yao >> >> From: Yao Yuan >> Sent: Wednesday, November 30, 2016 3:23 PM >> To: 'Jagan Teki' >> Subject: sf: Remove spansion_s25fss_disable_4KB_erase >> >> Hi Jagan, >> >> I have noticed that you have a patch to: >> >> commit 116e005cfd00021424f5f81eeedd355e4ca72f07 >> Author: Jagan Teki >> > >> Date: Tue Nov 15 22:57:42 2016 +0530 >> >> - Removed spansion_s25fss_disable_4KB_erase code >> - Add SECT_4K for S25FS512S chip >> >> Do you have any test for this patch? >> Because with this patch, my QSPI driver can't working with S25FS512S. >> >> As you said, >> In spansion S25FS-S family the physical sectors are grouped as normal and >> parameter sectors. >> Parameter sectors are 4kB in size with 8 set located at the bottom or top >> address of a device. >> Normal sectors are similar to other flash family with sizes of 64kB or 32 kB. >> >> Base on the RM and in my understand, not all the erase sectors are 4-kb. >> >> In my case regions are: >> >> 1. 0-32KiB (8*4KiB) - 4K_ERASE (0x20/0x21) >> >> 2. 32 - 256 - SE_CMD (0xd8/0xdc) >> >> 3. Rest of the flash SE_CMD (0xd8/0xdc) >> >> 4. To erase whole flash you can also use CHIP_ERASE_CMD >> >> (0x60/0xC7) command, you just need to add one more mtd >> >> partition that will cover whole flash. >> >> So we can't add SECT_4K for S25FS512S chip. >> If we add SECT_4K for S25FS512S chip, that means all the erase sectors are >> 4-kb. >> But I think it's not right. >> >> And disable 4kb is necessary for me, I also suggestion to add a flag to >> select whether enable 4-kb. >> >> if (of_property_read_bool(np, "spi-nor, disable-4kb")) { >> >> spansion_s25fs_disable_4kb_erase(); >> >> } >> >> else >> >> ... >> >> >> >> In dts: >> >> { >> >> qflash0: s25fs512s@0 { >> >> compatible = "spansion, s25fs512s"; >> >> spi-nor, disable-4kb >> >> #address-cells = <1>; >> >> #size-cells = <1>; >> >> spi-max-frequency = <2000>; >> >> reg = <0>; >> >> }; >> >> >> Attachment is the RM for S25FS-S. > > thanks! > -- > Jagan Teki > Free Software Engineer | www.openedev.com > U-Boot, Linux | Upstream Maintainer > Hyderabad, India. -- Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
On 01/27/2017 10:04 AM, Jagan Teki wrote: > On Mon, Jan 23, 2017 at 8:05 PM, york sunwrote: >> On 12/12/2016 09:32 PM, Yao Yuan wrote: >>> Hi Jagan, >>> >>> >>> >>> Do you have any comments? >>> >>> >>> >>> Thanks for your work and you know it’s important for QSPI with S25FS512S. >>> >>> >>> >>> It seems S25FS512S can’t support the SECT_4K, right? >>> >>> And it better to retain the disable_4kb, but we can add a flag in dts to >>> select whether enable it. >>> >>> >> >> Jagan, >> >> This is blocking me from using the board with this specific flash chip. >> Can you take a look? By reverting this single commit 116e005c, my board >> works again. > > I will try to work on this. > Guys, Where are we on this issue? York ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
On Mon, Jan 23, 2017 at 8:05 PM, york sunwrote: > On 12/12/2016 09:32 PM, Yao Yuan wrote: >> Hi Jagan, >> >> >> >> Do you have any comments? >> >> >> >> Thanks for your work and you know it’s important for QSPI with S25FS512S. >> >> >> >> It seems S25FS512S can’t support the SECT_4K, right? >> >> And it better to retain the disable_4kb, but we can add a flag in dts to >> select whether enable it. >> >> > > Jagan, > > This is blocking me from using the board with this specific flash chip. > Can you take a look? By reverting this single commit 116e005c, my board > works again. I will try to work on this. thanks! -- Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
On 12/12/2016 09:32 PM, Yao Yuan wrote: > Hi Jagan, > > > > Do you have any comments? > > > > Thanks for your work and you know it’s important for QSPI with S25FS512S. > > > > It seems S25FS512S can’t support the SECT_4K, right? > > And it better to retain the disable_4kb, but we can add a flag in dts to > select whether enable it. > > Jagan, This is blocking me from using the board with this specific flash chip. Can you take a look? By reverting this single commit 116e005c, my board works again. York ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot