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


Groups > linux.kernel > #1730210

Re: [DEBUG] mtd: spi-nor: dump DWORDs of the Basic Flash Parameter Table

From Geert Uytterhoeven <geert@linux-m68k.org>
Newsgroups linux.kernel
Subject Re: [DEBUG] mtd: spi-nor: dump DWORDs of the Basic Flash Parameter Table
Date 2017-09-11 11:00 +0200
Message-ID <uosJs-zh-11@gated-at.bofh.it> (permalink)
References <un02S-5LU-21@gated-at.bofh.it> <unaEW-4tO-27@gated-at.bofh.it> <unaEW-4tO-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Cyrille,

On Thu, Sep 7, 2017 at 9:28 PM, Cyrille Pitchen
<cyrille.pitchen@wedev4u.fr> wrote:
>> Can you apply this patch on your tree then report me what was printed, please?
>> I have an idea of the root cause of your issue then a potential work-around
>> but I first need to validate my assumption to confirm that the work-around
>> would actually work.

+m25p80 spi0.0: DWORD1 = 0xffffffff
+m25p80 spi0.0: DWORD2 = 0xffffffff
+m25p80 spi0.0: DWORD3 = 0xffffffff
+m25p80 spi0.0: DWORD4 = 0xffffffff
+m25p80 spi0.0: DWORD5 = 0xffffffff
+m25p80 spi0.0: DWORD6 = 0xffffffff
+m25p80 spi0.0: DWORD7 = 0xffffffff
+m25p80 spi0.0: DWORD8 = 0xffffffff
+m25p80 spi0.0: DWORD9 = 0xffffffff
+m25p80 spi0.0: DWORD10 = 0x00000000
+m25p80 spi0.0: DWORD11 = 0x00000000
+m25p80 spi0.0: DWORD12 = 0x00000000
+m25p80 spi0.0: DWORD13 = 0x00000000
+m25p80 spi0.0: DWORD14 = 0x00000000
+m25p80 spi0.0: DWORD15 = 0x00000000
+m25p80 spi0.0: DWORD16 = 0x00000000
+m25p80 spi0.0: BFPT version 1.0 (length = 9)

> If you could also dump the value of the 'addr' argument of
> spi_nor_read_sfdp_dma_unsafe() just before the for () loop below in the
> very same function. Actually, I suspect the SFDP tables of your SPI NOR

+m25p80 spi0.0: addr = 0x448

> memory sample to have been programmed with invalid values, neither
> compliant with the JEDEC JESD216 specification nor with the Cypress
> datasheet for this memory part.

Sounds plausible.
I get the same values when disabling DMA, so it's not due to bad DMA handling.
All Renesas boards I have local or remote access to have spansion,s25fl512s.

Thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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


Thread

[PATCH] mtd: spi-nor: fix DMA unsafe buffer issue in spi_nor_read_sfdp() Cyrille Pitchen <cyrille.pitchen@wedev4u.fr> - 2017-09-07 02:20 +0200
  Re: [PATCH] mtd: spi-nor: fix DMA unsafe buffer issue in  spi_nor_read_sfdp() Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-09-07 09:10 +0200
  Re: [PATCH] mtd: spi-nor: fix DMA unsafe buffer issue in spi_nor_read_sfdp() Geert Uytterhoeven <geert@linux-m68k.org> - 2017-09-07 10:10 +0200
    Re: [PATCH] mtd: spi-nor: fix DMA unsafe buffer issue in  spi_nor_read_sfdp() Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-09-07 13:40 +0200
      Re: [PATCH] mtd: spi-nor: fix DMA unsafe buffer issue in spi_nor_read_sfdp() Geert Uytterhoeven <geert@linux-m68k.org> - 2017-09-07 13:50 +0200
    Re: [DEBUG] mtd: spi-nor: dump DWORDs of the Basic Flash Parameter  Table Cyrille Pitchen <cyrille.pitchen@wedev4u.fr> - 2017-09-07 21:30 +0200
      Re: [DEBUG] mtd: spi-nor: dump DWORDs of the Basic Flash Parameter Table Geert Uytterhoeven <geert@linux-m68k.org> - 2017-09-11 11:00 +0200
        Re: [DEBUG] mtd: spi-nor: dump DWORDs of the Basic Flash Parameter  Table Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-09-12 15:20 +0200
          Re: [DEBUG] mtd: spi-nor: dump DWORDs of the Basic Flash Parameter  Table Cyrille Pitchen <cyrille.pitchen@wedev4u.fr> - 2017-09-14 18:50 +0200
            Re: [DEBUG] mtd: spi-nor: dump DWORDs of the Basic Flash Parameter  Table Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-09-19 22:20 +0200
    [DEBUG] mtd: spi-nor: dump DWORDs of the Basic Flash Parameter Table Cyrille Pitchen <cyrille.pitchen@wedev4u.fr> - 2017-09-07 23:30 +0200
    Re: [PATCH] mtd: spi-nor: fix DMA unsafe buffer issue in  spi_nor_read_sfdp() Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-09-10 11:10 +0200
  Re: [PATCH] mtd: spi-nor: fix DMA unsafe buffer issue in  spi_nor_read_sfdp() Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-09-19 22:20 +0200

csiph-web