On 01-Dec-26 4:01 PM, Dawid Osuchowski wrote:
From: Jozef Wludzik <[email protected]>
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 <[email protected]>
Signed-off-by: Dawid Osuchowski <[email protected]>
---Reviewed-by: Andrzej Kacprowski <[email protected]>