From: Christian Loehle <christian.loehle@arm.com>
To: "Wolfram Sang" <wsa+renesas@sang-engineering.com>,
"Allen Pais" <allen.lkml@gmail.com>,
"Aubin Constans" <aubin.constans@microchip.com>,
"Ulf Hansson" <ulf.hansson@linaro.org>,
"Nicolas Ferre" <nicolas.ferre@microchip.com>,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
"Claudiu Beznea" <claudiu.beznea@tuxon.dev>,
"Manuel Lauss" <manuel.lauss@gmail.com>,
"Michał Mirosław" <mirq-linux@rere.qmqm.pl>,
"Jaehoon Chung" <jh80.chung@samsung.com>,
"Aaro Koskinen" <aaro.koskinen@iki.fi>,
"Adrian Hunter" <adrian.hunter@intel.com>,
"Florian Fainelli" <florian.fainelli@broadcom.com>,
"Ray Jui" <rjui@broadcom.com>,
"Scott Branden" <sbranden@broadcom.com>,
"Broadcom internal kernel review list"
<bcm-kernel-feedback-list@broadcom.com>,
"Alex Dubov" <oakad@yahoo.com>,
"Kunihiko Hayashi" <hayashi.kunihiko@socionext.com>,
"Masami Hiramatsu" <mhiramat@kernel.org>,
"Bruce Chang" <brucechang@via.com.tw>,
"Harald Welte" <HaraldWelte@viatech.com>,
"Pierre Ossman" <pierre@ossman.eu>,
linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v3] mmc: Convert from tasklet to BH workqueue
Date: Fri, 21 Jun 2024 11:06:37 +0100 [thread overview]
Message-ID: <fc2b8a80-373a-4049-bdaf-9970a1c1f651@arm.com> (raw)
In-Reply-To: <gw6adkoy3ndjdjufti2gs2gnk3xdgylt6tnia2zha76hsgdwtq@dr3czbxjij66>
On 6/21/24 10:53, Wolfram Sang wrote:
> Hi,
>
> On Tue, Jun 18, 2024 at 03:52:07PM GMT, Allen Pais wrote:
>> The only generic interface to execute asynchronously in the BH context is
>> tasklet; however, it's marked deprecated and has some design flaws. To
>> replace tasklets, BH workqueue support was recently added. A BH workqueue
>> behaves similarly to regular workqueues except that the queued work items
>> are executed in the BH context.
>>
>> This patch converts drivers/mmc/* from tasklet to BH workqueue.
>>
>> Based on the work done by Tejun Heo <tj@kernel.org>
>
> Has this been fully build-tested?
Obviously not, FWIW I noted this on v1:
https://lore.kernel.org/linux-mmc/9c31b697-3d80-407a-82b3-cfbb19fafb31@arm.com/
But hadn't looked at the patch since then, sorry.
>
> ===
> drivers/mmc/host/renesas_sdhi_internal_dmac.c: In function ‘renesas_sdhi_internal_dmac_complete_work_fn’:
> ./include/linux/container_of.h:20:54: error: ‘struct tmio_mmc_host’ has no member named ‘dma_complete’
> ===
>
> In deed, 'dma_complete' is only in 'struct renesas_sdhi_dma'. From
> there, we can get to the parent 'struct renesas_sdhi' using
> container_of. But then, I don't see a way to go to 'struct
> tmio_mmc_host' from there. The other way around is possible because
> there is the pointer 'struct tmio_mmc_data *pdata' in the TMIO struct
> pointing to the data contained in 'struct renesas_sdhi'. 'host_to_priv()'
> does the math. But I don't see a path the other way around.
>
> So, it doesn't look like the workqueue interface can provide a
> generic pointer like tasklets could do? This means we have to add a
> pointer from 'struct renesas_sdhi' to 'struct tmio_mmc_host'?
>
> All the best,
>
> Wolfram
>
next prev parent reply other threads:[~2024-06-21 10:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-18 22:52 [PATCH v3] mmc: Convert from tasklet to BH workqueue Allen Pais
2024-06-20 15:14 ` Ulf Hansson
2024-06-21 9:53 ` Wolfram Sang
2024-06-21 10:06 ` Christian Loehle [this message]
2024-06-21 10:22 ` Wolfram Sang
2024-06-21 17:47 ` Allen
2024-06-21 18:35 ` Allen
2024-06-21 21:42 ` Wolfram Sang
2024-06-21 23:09 ` Allen
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=fc2b8a80-373a-4049-bdaf-9970a1c1f651@arm.com \
--to=christian.loehle@arm.com \
--cc=HaraldWelte@viatech.com \
--cc=aaro.koskinen@iki.fi \
--cc=adrian.hunter@intel.com \
--cc=alexandre.belloni@bootlin.com \
--cc=allen.lkml@gmail.com \
--cc=aubin.constans@microchip.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=brucechang@via.com.tw \
--cc=claudiu.beznea@tuxon.dev \
--cc=florian.fainelli@broadcom.com \
--cc=hayashi.kunihiko@socionext.com \
--cc=jh80.chung@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=manuel.lauss@gmail.com \
--cc=mhiramat@kernel.org \
--cc=mirq-linux@rere.qmqm.pl \
--cc=nicolas.ferre@microchip.com \
--cc=oakad@yahoo.com \
--cc=pierre@ossman.eu \
--cc=rjui@broadcom.com \
--cc=sbranden@broadcom.com \
--cc=ulf.hansson@linaro.org \
--cc=wsa+renesas@sang-engineering.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