From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Cc: "Martin Hundebøll" <martin@geanix.com>,
"Måns Rullgård" <mans@mansr.com>,
"Richard Weinberger" <richard@nod.at>,
"Vignesh Raghavendra" <vigneshr@ti.com>,
JaimeLiao <jaimeliao.tw@gmail.com>,
kernel@pengutronix.de, linux-mtd@lists.infradead.org,
linux-kernel@vger.kernel.org,
"Alexander Shiyan" <eagle.alexander923@gmail.com>
Subject: Re: [PATCH] mtd: rawnand: check nand support for cache reads
Date: Fri, 22 Sep 2023 16:04:00 +0200 [thread overview]
Message-ID: <20230922160400.034ee828@xps-13> (raw)
In-Reply-To: <20230922100116.145090-1-r.czerwinski@pengutronix.de>
Hi Rouven,
Thanks a lot for the investigation and the patch!
r.czerwinski@pengutronix.de wrote on Fri, 22 Sep 2023 12:01:13 +0200:
Would you mind changing the title to
"mtd: rawnand: Ensure the nand chip supports cached reads"
> Both the JEDEC and ONFI specification say that read cache sequential
> support is an optional command.
I clearly overlooked that part, just checking the set/get_features()
entries as usual, good catch.
> This means that we not only need to
> check whether the individual controller implements the command, we also
The controller itself does not implement the command, but may or may
not support it (can you please update the sentence?).
> need to check the parameter pages for both ONFI and JEDEC NAND flashes
> before enabling sequential cache reads.
>
> This fixes support for NAND flashes which don't support enabling cache
> reads, i.e. Samsung K9F4G08U0F or Toshiba TC58NVG0S3HTA00.
>
> Sequential cache reads are no only available for ONFI and JEDEC devices,
> if individual vendors implement this, it needs to be enabled per vendor.
Agreed.
> Tested on i.MX6Q with a Samsung NAND flash chip that doesn't support
> sequential reads.
>
> Fixes: 003fe4b9545b ("mtd: rawnand: Support for sequential cache reads")
>
Please remove this empty line and instead add:
Cc: stable@vger.kernel.org
> Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
> ---
> @Martin, Måns:
> I would appreciate if you could test this on your hardware.
That would me much appreciated!
I also added Alexander who also had troubles with this patchset, could
you check on your setup if that solves the issue?
> @Miguel:
> I didn't have the time to test this on ONFI/JEDEC devices with support
> yet, I'd be fine if you hold off merging this.
Of course. I was about to send a revert but that looks a promising fix,
let's see how it goes.
>
> drivers/mtd/nand/raw/nand_base.c | 3 +++
> drivers/mtd/nand/raw/nand_jedec.c | 3 +++
> drivers/mtd/nand/raw/nand_onfi.c | 3 +++
> include/linux/mtd/jedec.h | 3 +++
> include/linux/mtd/onfi.h | 1 +
> include/linux/mtd/rawnand.h | 1 +
> 6 files changed, 14 insertions(+)
>
Thanks,
Miquèl
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
next prev parent reply other threads:[~2023-09-22 14:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-22 10:01 [PATCH] mtd: rawnand: check nand support for cache reads Rouven Czerwinski
2023-09-22 10:04 ` Martin Hundebøll
2023-09-22 10:07 ` Rouven Czerwinski
2023-09-22 11:20 ` kernel test robot
2023-09-22 14:04 ` Miquel Raynal [this message]
2023-09-29 17:00 ` kernel test robot
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=20230922160400.034ee828@xps-13 \
--to=miquel.raynal@bootlin.com \
--cc=eagle.alexander923@gmail.com \
--cc=jaimeliao.tw@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=mans@mansr.com \
--cc=martin@geanix.com \
--cc=r.czerwinski@pengutronix.de \
--cc=richard@nod.at \
--cc=vigneshr@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox