public inbox for nouveau@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 0/3] nouveau/vmm: fix switching between small and large PTEs (series v2)
@ 2026-02-04  3:00 Dave Airlie
  2026-02-04  3:00 ` [PATCH 1/3] nouveau/vmm: rewrite pte tracker using a struct and bitfields Dave Airlie
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Dave Airlie @ 2026-02-04  3:00 UTC (permalink / raw)
  To: dri-devel; +Cc: nouveau

[This is a repost with a fix for a bug noticed in patch 2 from yesterday.]

The nouveau page table has dual page tables with special states for
tracking small vs large pages at the bottom level. However the current
code isn't designed with the higher level large page support in mind.

The nouveau_uvmm/gpuvm code can cause unrefs to get delayed, so things
like ref SPT, map SPT, unmap SPT, ref LPT, map LPT, unref SPT can happen.

unrefs can end up quite delayed and it shouldn't matter as unref should
just affect reference counts.

However at least the SPT unref path was overwriting the LPT value when
all SPT were unreffed even if an LPT was referenced in between.

This series refactors the code to use a union, then increases the size
as I think even with the current code there was enough ref counts for SPTE.
The last patch adds LPTE tracking.

Dave.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-02-04 16:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-04  3:00 [PATCH 0/3] nouveau/vmm: fix switching between small and large PTEs (series v2) Dave Airlie
2026-02-04  3:00 ` [PATCH 1/3] nouveau/vmm: rewrite pte tracker using a struct and bitfields Dave Airlie
2026-02-04  3:00 ` [PATCH 2/3] nouveau/vmm: increase size of vmm pte tracker struct to u32 (v2) Dave Airlie
2026-02-04  3:00 ` [PATCH 3/3] nouveau/vmm: start tracking if the LPT PTE is valid. (v6) Dave Airlie
2026-02-04 12:43 ` [PATCH 0/3] nouveau/vmm: fix switching between small and large PTEs (series v2) Mary Guillemard
2026-02-04 16:40   ` M Henning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox