From: Andrzej Kacprowski <andrzej.kacprowski@linux.intel.com>
To: Dawid Osuchowski <dawid.osuchowski@linux.intel.com>,
dri-devel@lists.freedesktop.org
Cc: oded.gabbay@gmail.com, jeff.hugo@oss.qualcomm.com,
karol.wachowski@linux.intel.com, lizhi.hou@amd.com,
Jozef Wludzik <jozef.wludzik@linux.intel.com>
Subject: Re: [PATCH 2/3] accel/ivpu: Separate VA allocator locking from page-table locking
Date: Wed, 2 Dec 2026 14:43:40 +0100 [thread overview]
Message-ID: <892b3e10-2207-4bee-adb0-95c41c9e2bc8@linux.intel.com> (raw)
In-Reply-To: <20261201150150.653061-3-dawid.osuchowski@linux.intel.com>
On 01-Dec-26 4:01 PM, Dawid Osuchowski wrote:
> From: Jozef Wludzik <jozef.wludzik@linux.intel.com>
>
> The context mutex is held across reclaimable page-table allocations.
> Taking the same mutex to remove a VA node during BO destruction can
> deadlock when destruction runs in direct reclaim.
>
> Protect drm_mm insertion and removal with a dedicated spinlock instead.
> These operations use preallocated nodes and do not sleep. Keep both
> alignment attempts under the same lock and retain the context mutex for
> page-table mapping, allocation and context descriptor updates.
>
> Signed-off-by: Jozef Wludzik <jozef.wludzik@linux.intel.com>
> Signed-off-by: Dawid Osuchowski <dawid.osuchowski@linux.intel.com>
> ---
Reviewed-by: Andrzej Kacprowski <andrzej.kacprowski@linux.intel.com>
next prev parent reply other threads:[~2026-12-02 13:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 15:01 [PATCH 0/3] accel/ivpu: Remove ctx->lock on MMU context unmap Dawid Osuchowski
2026-12-01 15:01 ` [PATCH 1/3] accel/ivpu: Avoid taking the context lock when unmapping pages Dawid Osuchowski
2026-12-02 13:42 ` Andrzej Kacprowski
2026-12-01 15:01 ` [PATCH 2/3] accel/ivpu: Separate VA allocator locking from page-table locking Dawid Osuchowski
2026-12-02 13:43 ` Andrzej Kacprowski [this message]
2026-12-01 15:01 ` [PATCH 3/3] accel/ivpu: Shorten bo_list_lock hold time in BO free Dawid Osuchowski
2026-12-02 13:44 ` Andrzej Kacprowski
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=892b3e10-2207-4bee-adb0-95c41c9e2bc8@linux.intel.com \
--to=andrzej.kacprowski@linux.intel.com \
--cc=dawid.osuchowski@linux.intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jeff.hugo@oss.qualcomm.com \
--cc=jozef.wludzik@linux.intel.com \
--cc=karol.wachowski@linux.intel.com \
--cc=lizhi.hou@amd.com \
--cc=oded.gabbay@gmail.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.