linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Allen <allen.lkml@gmail.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: imx@lists.linux.dev, "Ulf Hansson" <ulf.hansson@linaro.org>,
	"Oliver Neukum" <oneukum@suse.com>,
	"Duncan Sands" <duncan.sands@free.fr>,
	"Kunihiko Hayashi" <hayashi.kunihiko@socionext.com>,
	"linux-mmc @ vger . kernel . org" <linux-mmc@vger.kernel.org>,
	aubin.constans@microchip.com,
	"Linus Walleij" <linus.walleij@linaro.org>,
	"Frank Li" <Frank.Li@nxp.com>,
	linux-hyperv@vger.kernel.org, linux-usb@vger.kernel.org,
	HaraldWelte@viatech.com, "Paul Cercueil" <paul@crapouillou.net>,
	linux-tegra@vger.kernel.org, Netdev <netdev@vger.kernel.org>,
	maintainers@bluecherrydvr.com, peter.ujfalusi@gmail.com,
	"Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>,
	linux-riscv@lists.infradead.org,
	"K. Y. Srinivasan" <kys@microsoft.com>,
	"Robert Jarzmik" <robert.jarzmik@free.fr>,
	haijie1@huawei.com,
	Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
	"Wei Liu" <wei.liu@kernel.org>,
	Linux-OMAP <linux-omap@vger.kernel.org>,
	"Florian Fainelli" <florian.fainelli@broadcom.com>,
	linux-rdma@vger.kernel.org
Subject: Re: [PATCH 2/9] dma: Convert from tasklet to BH workqueue
Date: Thu, 28 Mar 2024 13:01:55 -0700	[thread overview]
Message-ID: <CAOMdWSKC4B8zn6N+=5DssB_BiR6JkHBEpJr0ohKb149eJvCKMQ@mail.gmail.com> (raw)
In-Reply-To: <678ba20b-9f1d-41cb-8a25-e716b61ffafe@app.fastmail.com>

> >> > Since almost every driver associates the tasklet with the
> >> > dma_chan, we could go one step further and add the
> >> > work_queue structure directly into struct dma_chan,
> >> > with the wrapper operating on the dma_chan rather than
> >> > the work_queue.
> >>
> >> I think that is very great idea. having this wrapped in dma_chan would
> >> be very good way as well
> >>
> >> Am not sure if Allen is up for it :-)
> >
> >  Thanks Arnd, I know we did speak about this at LPC. I did start
> > working on using completion. I dropped it as I thought it would
> > be easier to move to workqueues.
>
> It's definitely easier to do the workqueue conversion as a first
> step, and I agree adding support for the completion right away is
> probably too much. Moving the work_struct into the dma_chan
> is probably not too hard though, if you leave your current
> approach for the cases where the tasklet is part of the
> dma_dev rather than the dma_chan.
>

 Alright, I will work on moving work_struck into the dma_chan and
leave the dma_dev as is (using bh workqueues) and post a RFC.
Once reviewed, I could move to the next step.

Thank you.

- Allen

  reply	other threads:[~2024-03-28 22:06 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-27 16:03 [PATCH 0/9] Convert Tasklets to BH Workqueues Allen Pais
2024-03-27 16:03 ` [PATCH 1/9] hyperv: Convert from tasklet to BH workqueue Allen Pais
2024-04-03 16:43   ` Allen
2024-03-27 16:03 ` [PATCH 2/9] dma: " Allen Pais
2024-03-28  5:55   ` Vinod Koul
2024-03-28 10:08     ` Arnd Bergmann
2024-03-28 18:31       ` Vinod Koul
2024-03-28 19:39         ` Allen
2024-03-28 19:49           ` Arnd Bergmann
2024-03-28 20:01             ` Allen [this message]
2024-03-29 16:38               ` Vinod Koul
2024-03-29 16:39           ` Vinod Koul
2024-03-28 17:49     ` Allen
2024-04-02 12:25   ` Linus Walleij
2024-04-02 13:11     ` Vinod Koul
2024-03-27 16:03 ` [PATCH 3/9] IB: " Allen Pais
2024-03-27 16:03 ` [PATCH 4/9] USB: " Allen Pais
2024-03-27 16:20   ` Duncan Sands
2024-03-27 16:55   ` Greg KH
2024-03-27 16:58     ` Allen
2024-03-27 17:55   ` Alan Stern
2024-03-28 17:54     ` Allen
2024-03-27 16:03 ` [PATCH 5/9] mailbox: " Allen Pais
2024-03-27 16:03 ` [PATCH 6/9] ipmi: " Allen Pais
2024-03-27 17:58   ` Corey Minyard
2024-03-28 17:52     ` Allen
2024-03-28 19:23       ` Corey Minyard
2024-03-28 19:41         ` Allen
2024-03-28 19:52           ` Corey Minyard
2024-03-28 19:58             ` Allen
2024-03-27 16:03 ` [PATCH 7/9] s390: " Allen Pais
2024-04-02 12:48   ` Alexandra Winter
2024-04-03 13:33     ` Allen
2024-03-27 16:03 ` [PATCH 8/9] drivers/media/*: " Allen Pais
2024-03-27 16:03 ` [PATCH 9/9] mmc: " Allen Pais
2024-03-27 19:35   ` Jernej Škrabec
2024-03-28 10:16   ` Christian Loehle
2024-03-28 17:47     ` Allen
2024-03-28 12:53   ` Ulf Hansson
2024-03-28 13:37     ` Linus Walleij
2024-03-28 16:21     ` Tejun Heo
2024-04-02 10:15       ` Ulf Hansson

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='CAOMdWSKC4B8zn6N+=5DssB_BiR6JkHBEpJr0ohKb149eJvCKMQ@mail.gmail.com' \
    --to=allen.lkml@gmail.com \
    --cc=Frank.Li@nxp.com \
    --cc=HaraldWelte@viatech.com \
    --cc=arnd@arndb.de \
    --cc=aubin.constans@microchip.com \
    --cc=duncan.sands@free.fr \
    --cc=florian.fainelli@broadcom.com \
    --cc=haijie1@huawei.com \
    --cc=hayashi.kunihiko@socionext.com \
    --cc=imx@lists.linux.dev \
    --cc=kys@microsoft.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-hyperv@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=maintainers@bluecherrydvr.com \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=netdev@vger.kernel.org \
    --cc=oneukum@suse.com \
    --cc=paul@crapouillou.net \
    --cc=peter.ujfalusi@gmail.com \
    --cc=robert.jarzmik@free.fr \
    --cc=ulf.hansson@linaro.org \
    --cc=wei.liu@kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).