Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/2] drm/xe/shrinker: Runtime PM reference for non-system memory
@ 2026-09-04 21:50 Shuicheng Lin
  2026-09-04 21:50 ` [PATCH v6 1/2] drm/xe/shrinker: Return the freed page count through a parameter Shuicheng Lin
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Shuicheng Lin @ 2026-09-04 21:50 UTC (permalink / raw)
  To: intel-xe; +Cc: Shuicheng Lin

Patch 2 fixes the reported bug: the shrinker walks the SYSTEM and TT
LRUs without a runtime PM reference, so with the device runtime
suspended the page table zap trips an assert and the TLB invalidation
returns -ENODEV.

Patch 1 comes first because its Fixes commit is a year older and it
applies on its own to stable trees that must not take patch 2.  It
separates the freed page count from the return value so an error no
longer discards the pages already freed.

Verified with igt@xe_madvise@dontneed-before-exec while the GPU is
runtime suspended: 15/15 runs hit the WARN before, 0/15 after, and a
CI-like configuration with the device active still passes 10/10.

Shuicheng Lin (2):
  drm/xe/shrinker: Return the freed page count through a parameter
  drm/xe/shrinker: Take a runtime PM ref before shrinking non-system
    memory

 drivers/gpu/drm/xe/xe_shrinker.c | 114 ++++++++++++++++++-------------
 1 file changed, 66 insertions(+), 48 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-09-09 12:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-04 21:50 [PATCH v6 0/2] drm/xe/shrinker: Runtime PM reference for non-system memory Shuicheng Lin
2026-09-04 21:50 ` [PATCH v6 1/2] drm/xe/shrinker: Return the freed page count through a parameter Shuicheng Lin
2026-09-04 21:59   ` sashiko-bot
2026-09-09 12:58   ` Thomas Hellström
2026-09-04 21:50 ` [PATCH v6 2/2] drm/xe/shrinker: Take a runtime PM ref before shrinking non-system memory Shuicheng Lin
2026-09-04 22:05   ` sashiko-bot
2026-09-07  8:23   ` Thomas Hellström
2026-09-04 22:10 ` ✓ CI.KUnit: success for drm/xe/shrinker: Runtime PM reference for " Patchwork
2026-09-04 23:05 ` ✓ Xe.CI.BAT: " Patchwork
2026-09-05  4:15 ` ✓ Xe.CI.FULL: " Patchwork

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