All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vinicius Costa Gomes <vinicius.gomes@intel.com>
To: Guenter Roeck <linux@roeck-us.net>,
	stable@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: dmaengine@vger.kernel.org, Guenter Roeck <linux@roeck-us.net>,
	Yi Sun <yi.sun@intel.com>, Shuai Xue <xueshuai@linux.alibaba.com>,
	Dave Jiang <dave.jiang@intel.com>, Vinod Koul <vkoul@kernel.org>
Subject: Re: [PATCH 6.12] dmaengine: Add missing cleanup on module unload
Date: Mon, 20 Oct 2025 14:11:57 -0700	[thread overview]
Message-ID: <87cy6hl1lu.fsf@intel.com> (raw)
In-Reply-To: <20251020170422.2630360-1-linux@roeck-us.net>

Guenter Roeck <linux@roeck-us.net> writes:

> Upstream commit b7cb9a034305 ("dmaengine: idxd: Fix refcount underflow
> on module unload") fixes a refcount underflow by replacing the call to
> idxd_cleanup() in the remove function with direct cleanup calls. That works
> fine upstream. However, upstream removed support for IOMMU_DEV_FEAT_IOPF,
> which is still supported in v6.12.y. The backport of commit b7cb9a034305
> into v6.12.y misses the call to disable it. This results in a warning
> backtrace when unloading and reloading the module.
>
> WARNING: CPU: 0 PID: 665849 at drivers/pci/ats.c:337 pci_reset_pri+0x4c/0x60
> ...
> RIP: 0010:pci_reset_pri+0xa7/0x130
>
> Add the missing cleanup call to fix the problem.
>
> Fixes: ce81905bec91 ("dmaengine: idxd: Fix refcount underflow on module unload")
> Cc: Yi Sun <yi.sun@intel.com>
> Cc: Shuai Xue <xueshuai@linux.alibaba.com>
> Cc: Dave Jiang <dave.jiang@intel.com>
> Cc: Vinicius Costa Gomes <vinicius.gomes@intel.com>
> Cc: Vinod Koul <vkoul@kernel.org>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
> The problem fixed with this patch only affects v6.12.y.
>

Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>


Cheers,
-- 
Vinicius

      reply	other threads:[~2025-10-20 21:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-20 17:04 [PATCH 6.12] dmaengine: Add missing cleanup on module unload Guenter Roeck
2025-10-20 21:11 ` Vinicius Costa Gomes [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=87cy6hl1lu.fsf@intel.com \
    --to=vinicius.gomes@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux@roeck-us.net \
    --cc=stable@vger.kernel.org \
    --cc=vkoul@kernel.org \
    --cc=xueshuai@linux.alibaba.com \
    --cc=yi.sun@intel.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.