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 1/3] accel/ivpu: Avoid taking the context lock when unmapping pages
Date: Wed, 2 Dec 2026 14:42:53 +0100 [thread overview]
Message-ID: <bed96dea-ea77-492d-bc23-befc415ccee1@linux.intel.com> (raw)
In-Reply-To: <20261201150150.653061-2-dawid.osuchowski@linux.intel.com>
On 01-Dec-26 4:01 PM, Dawid Osuchowski wrote:
> From: Jozef Wludzik <jozef.wludzik@linux.intel.com>
>
> Unmapping a BO only invalidates leaf PTEs in its reserved VA range. The
> caller serializes access to that range and keeps the context and VA node
> alive until unmapping completes. Intermediate page tables remain
> allocated until context teardown.
>
> Remove the context mutex from scatter-gather unmapping and use
> WRITE_ONCE() for leaf PTE invalidation. Keep the write barrier and TLB
> invalidation, as well as the existing locking for mapping, page-table
> allocation and drm_mm 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 [this message]
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
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=bed96dea-ea77-492d-bc23-befc415ccee1@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.