All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Linus Walleij <linusw@kernel.org>
Cc: Orgad Shaneh <orgads@gmail.com>,
	 richard@nod.at,  vigneshr@ti.com, tsbogend@alpha.franken.de,
	 linux-mtd@lists.infradead.org, linux-mips@vger.kernel.org,
	 linux-kernel@vger.kernel.org, kaloz@kernel.org,
	 ulli.kroll@googlemail.com,  john@phrozen.org, nico@fluxnic.net,
	 dwmw2@infradead.org,  corbet@lwn.net, linux-doc@vger.kernel.org
Subject: Re: [PATCH v4 0/4] mtd: point() for cfi_cmdset_0002, on simple maps only
Date: Mon, 30 Nov 2026 10:08:20 +0100	[thread overview]
Message-ID: <87mrqq3cvv.fsf@bootlin.com> (raw)
In-Reply-To: <CAD++jLm9jg80-W+OFZwEwzG289mS+s-_MbVy+DqBFDqCwWbibg@mail.gmail.com> (Linus Walleij's message of "Mon, 30 Nov 2026 01:09:46 +0100")

On 30/11/2026 at 01:09:46 +01, Linus Walleij <linusw@kernel.org> wrote:

> On Tue, Nov 17, 2026 at 10:41 PM Orgad Shaneh <orgads@gmail.com> wrote:
>
>> jffs2 scans a flash in place through mtd_point() when the chip driver
>> offers it, and copies every used eraseblock otherwise. cfi_cmdset_0002
>> has no point(), so an Octeon CN6635 board with a 100 MB jffs2
>> partition on an 8-bit M29EW spends 15-30 s mounting it at every boot.
>>
>> 1/4 lets point() through only for maps read through the simple
>> accessors; cfi_cmdset_0001, lpddr, map_ram and map_rom point today at
>> maps whose own accessors swap bytes, switch pins or lock the bus.
>> 2/4 adds point() to cfi_cmdset_0002 behind that gate.
>> 3/4 gives each Octeon flash device its own map.
>> 4/4 lets that map use the simple accessors when no eMMC shares the
>> boot bus. 3/4 and 4/4 build alone, but 4/4 only pays off with 1/4 and
>> 2/4, so taking all four through mtd with an ack from Thomas seems
>> simplest.
>
> I guess I should test this on the ixp4xx but don't have time right
> now, the patches seem sound so:
> Acked-by: Linus Walleij <linusw@kernel.org>

Great, thanks for the feedback. I'll wait a bit for Vignesh to give his
feedback as well, but otherwise I'll eventually take it then.

Thanks,
Miquèl

WARNING: multiple messages have this Message-ID (diff)
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Linus Walleij <linusw@kernel.org>
Cc: Orgad Shaneh <orgads@gmail.com>,
	 richard@nod.at,  vigneshr@ti.com, tsbogend@alpha.franken.de,
	 linux-mtd@lists.infradead.org, linux-mips@vger.kernel.org,
	 linux-kernel@vger.kernel.org, kaloz@kernel.org,
	 ulli.kroll@googlemail.com,  john@phrozen.org, nico@fluxnic.net,
	 dwmw2@infradead.org,  corbet@lwn.net, linux-doc@vger.kernel.org
Subject: Re: [PATCH v4 0/4] mtd: point() for cfi_cmdset_0002, on simple maps only
Date: Mon, 30 Nov 2026 10:08:20 +0100	[thread overview]
Message-ID: <87mrqq3cvv.fsf@bootlin.com> (raw)
In-Reply-To: <CAD++jLm9jg80-W+OFZwEwzG289mS+s-_MbVy+DqBFDqCwWbibg@mail.gmail.com> (Linus Walleij's message of "Mon, 30 Nov 2026 01:09:46 +0100")

On 30/11/2026 at 01:09:46 +01, Linus Walleij <linusw@kernel.org> wrote:

> On Tue, Nov 17, 2026 at 10:41 PM Orgad Shaneh <orgads@gmail.com> wrote:
>
>> jffs2 scans a flash in place through mtd_point() when the chip driver
>> offers it, and copies every used eraseblock otherwise. cfi_cmdset_0002
>> has no point(), so an Octeon CN6635 board with a 100 MB jffs2
>> partition on an 8-bit M29EW spends 15-30 s mounting it at every boot.
>>
>> 1/4 lets point() through only for maps read through the simple
>> accessors; cfi_cmdset_0001, lpddr, map_ram and map_rom point today at
>> maps whose own accessors swap bytes, switch pins or lock the bus.
>> 2/4 adds point() to cfi_cmdset_0002 behind that gate.
>> 3/4 gives each Octeon flash device its own map.
>> 4/4 lets that map use the simple accessors when no eMMC shares the
>> boot bus. 3/4 and 4/4 build alone, but 4/4 only pays off with 1/4 and
>> 2/4, so taking all four through mtd with an ack from Thomas seems
>> simplest.
>
> I guess I should test this on the ixp4xx but don't have time right
> now, the patches seem sound so:
> Acked-by: Linus Walleij <linusw@kernel.org>

Great, thanks for the feedback. I'll wait a bit for Vignesh to give his
feedback as well, but otherwise I'll eventually take it then.

Thanks,
Miquèl

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

  reply	other threads:[~2026-11-30  9:08 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17 21:41 [PATCH v4 0/4] mtd: point() for cfi_cmdset_0002, on simple maps only Orgad Shaneh
2026-11-17 21:41 ` Orgad Shaneh
2026-11-17 21:41 ` [PATCH v4 1/4] mtd: maps: only point() maps read through the simple accessors Orgad Shaneh
2026-11-17 21:41   ` Orgad Shaneh
2026-11-17 21:41 ` [PATCH v4 2/4] mtd: cfi_cmdset_0002: implement point() for simple linear maps Orgad Shaneh
2026-11-17 21:41   ` Orgad Shaneh
2026-11-17 21:57   ` sashiko-bot
2026-11-17 22:06     ` Orgad Shaneh
2026-11-17 21:41 ` [PATCH v4 3/4] MIPS: Octeon: flash: allocate the map per device Orgad Shaneh
2026-11-17 21:41   ` Orgad Shaneh
2026-11-17 21:50   ` sashiko-bot
2026-11-17 22:06     ` Orgad Shaneh
2026-11-17 21:41 ` [PATCH v4 4/4] MIPS: Octeon: flash: use the simple map accessors without a shared eMMC Orgad Shaneh
2026-11-17 21:41   ` Orgad Shaneh
2026-11-17 22:06   ` sashiko-bot
2026-11-18  6:35     ` Orgad Shaneh
2026-11-30  0:09 ` [PATCH v4 0/4] mtd: point() for cfi_cmdset_0002, on simple maps only Linus Walleij
2026-11-30  0:09   ` Linus Walleij
2026-11-30  9:08   ` Miquel Raynal [this message]
2026-11-30  9:08     ` 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=87mrqq3cvv.fsf@bootlin.com \
    --to=miquel.raynal@bootlin.com \
    --cc=corbet@lwn.net \
    --cc=dwmw2@infradead.org \
    --cc=john@phrozen.org \
    --cc=kaloz@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=nico@fluxnic.net \
    --cc=orgads@gmail.com \
    --cc=richard@nod.at \
    --cc=tsbogend@alpha.franken.de \
    --cc=ulli.kroll@googlemail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.