mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ping Li <leeonion.muyu@gmail.com>
To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com
Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
	leeonion.muyu@gmail.com
Subject: Re: [PATCH 1/3] mtd: rawnand: fsmc: declare NAND_USES_DMA
Date: Mon, 23 Nov 2026 15:04:15 +0800	[thread overview]
Message-ID: <20261123070415.3060054-1-leeonion.muyu@gmail.com> (raw)
In-Reply-To: <sashiko-outbox-228750@kernel.org>

From: leeonion.muyu@gmail.com

Hi,

Thanks for the review.  I verified the three findings and they
all check out:

- fsmc: indeed, nothing has set host->mode since the platform
  data removal (a1b1e1d5bdfe), so the DMA paths are dead code
  and fsmc_exec_op() always takes the PIO branch.  I am dropping
  this patch; declaring NAND_USES_DMA there would only add an
  unnecessary full-page bounce for every vmalloc'd buffer.

- intel: the unmap problems in ebu_dma_start() are real, thanks
  for catching them.  I will include a fix in v2: unmap on the
  success path as well, return directly when the mapping itself
  fails, and unmap with the device the buffer was mapped with.

- The Fixes: tags were indeed wrong: mtdblock's vmalloc'ed write
  cache and UBIFS LPT buffers reach mtd_write() long before the
  mtdchar ioctls did, so the exposure goes back to each driver's
  introduction.  v2 will point the tags at 0b1039f016e8a (intel)
  and 67e054e919248 (r852).

I will send a v2 with the fsmc patch dropped, the Fixes: tags
corrected and the ebu_dma_start() fix added.

Thanks,
Ping

       reply	other threads:[~2026-11-23  7:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <sashiko-outbox-228750@kernel.org>
2026-11-23  7:04 ` Ping Li [this message]
2026-11-23  5:50 [PATCH 0/3] mtd: rawnand: protect DMA engines from vmalloc'd buffers ping.li
2026-11-23  5:50 ` [PATCH 1/3] mtd: rawnand: fsmc: declare NAND_USES_DMA ping.li

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=20261123070415.3060054-1-leeonion.muyu@gmail.com \
    --to=leeonion.muyu@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=miquel.raynal@bootlin.com \
    --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®