mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yaohan Li <shunsheng1218@gmail.com>
To: Jeff Hugo <jeff.hugo@oss.qualcomm.com>, Oded Gabbay <ogabbay@kernel.org>
Cc: Carl Vanderlip <carl.vanderlip@oss.qualcomm.com>,
	linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org,
	Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Subject: Re: [PATCH v2] accel/qaic: drain the control workqueue before the device is freed
Date: Tue, 01 Dec 2026 15:06:09 +0800	[thread overview]
Message-ID: <179610876957.3115730.6216059274582677194@gmail.com> (raw)
In-Reply-To: <7c07a388-c58e-4d8e-8291-31b462d84d00@oss.qualcomm.com>

Hi Jeff,

Thanks for the review.  I agree the MHI channel remove callback is a
much better place to drain the control response work than the PCI
remove path.

Looking over the rest of the driver, I also missed two related
workqueues in my original analysis: qts_wq and ssr_wq.  Their MHI
remove callbacks currently unprepare the channels without draining
those workqueues, while the workers can still touch qdev and
channel-related state, so those paths need to be checked as well.

Rather than reworking workqueue ownership across the driver, I'd keep
the existing DRM-managed allocation and synchronize the work at each
channel's teardown.  Before sending a revision, though, there is one
ordering detail I need to sort out: qaic_dev_reset_clean_local_state()
can run ahead of MHI channel removal and releases SSR-related state, so
I want to make sure an SSR worker cannot race with that cleanup.

I'll go through the producer shutdown and teardown ordering for all
three queues and keep any follow-up narrowly scoped.  I've only
compile-tested the patch so far and don't have QAIC hardware, so I
don't want to claim hardware validation.

Thanks again for pointing this out,
Yaohan

      reply	other threads:[~2026-12-01  7:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18  7:24 [PATCH] " Yaohan Li
2026-11-19  2:29 ` [PATCH v2] " Yaohan Li
2026-12-01  2:08   ` Jeff Hugo
2026-12-01  7:06     ` Yaohan Li [this message]

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=179610876957.3115730.6216059274582677194@gmail.com \
    --to=shunsheng1218@gmail.com \
    --cc=carl.vanderlip@oss.qualcomm.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jacek.lawrynowicz@linux.intel.com \
    --cc=jeff.hugo@oss.qualcomm.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ogabbay@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

all inboxes | Powered by JetHome®