mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Zongzhen Feng <1768315307@qq.com>
Cc: linux-mtd@lists.infradead.org,  linux-kernel@vger.kernel.org,
	richard@nod.at,  vigneshr@ti.com
Subject: Re: [PATCH v3] mtd: spinand: cache the last read page to avoid redundant SPI operations
Date: Tue, 08 Sep 2026 16:22:46 +0200	[thread overview]
Message-ID: <87o6e7u8jt.fsf@bootlin.com> (raw)
In-Reply-To: <tencent_E818586423F2F16D98DEF1EC2723EE4A6308@qq.com> (Zongzhen Feng's message of "Tue, 8 Sep 2026 18:19:58 +0800")

Hello Zongzhen,

On 08/09/2026 at 18:19:58 +08, Zongzhen Feng <1768315307@qq.com> wrote:

> When squashfs reads files through mtdblock, the mtdblock layer
> splits I/O into 512-byte sectors. For a 4K-page SPI NAND, this
> means reading the same page 8 times (4096 / 512), generating 7x
> redundant SPI read-from-cache operations. Each such operation
> involves a full SPI bus transaction, significantly slowing down
> boot time and file access.

I haven't made a review yet, but there are still a lot of Sashiko
complaints and they look reasonable. Can you please check them?

Thanks,
Miquèl

  reply	other threads:[~2026-09-08 14:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-08  3:25 [PATCH v2] " fzz
2026-09-08  9:39 ` Miquel Raynal
2026-09-08 10:28   ` Zongzhen Feng
2026-09-08 10:19 ` [PATCH v3] " Zongzhen Feng
2026-09-08 14:22   ` Miquel Raynal [this message]
2026-09-09  6:29     ` Zongzhen Feng
2026-09-10  4:08   ` [PATCH v4] " Zongzhen Feng
2026-09-10  4:26     ` sashiko-bot
2026-09-10 12:42       ` Miquel Raynal

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=87o6e7u8jt.fsf@bootlin.com \
    --to=miquel.raynal@bootlin.com \
    --cc=1768315307@qq.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --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

all inboxes | Powered by JetHome®