drm/xe: dma-buf Add VRAM pin limit for backports when dmem_cgroup is not present - #514
Merged
pravalikagurram1 merged 1 commit intoAug 28, 2026
Conversation
smuqthya
approved these changes
Aug 25, 2026
| From 9adf8d7f4ca55cffdbe2cc58a023d2dae6c98cb0 Mon Sep 17 00:00:00 2001 | ||
| From: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> | ||
| Date: Mon, 3 Aug 2026 10:40:35 +0530 | ||
| Subject: [PATCH 7/8] drm/xe/vram: show pinned vram in debug |
Author
There was a problem hiding this comment.
validation kunit is not supported . Till igt comes
pravalikagurram1
force-pushed
the
vram_pinning
branch
from
August 28, 2026 06:05
ab95739 to
f907232
Compare
…not present Remove the dummy drmm_cgroup_register_region() stub from the backport header and replace it with a driver-level VRAM pin accounting and enforcement mechanism for kernels where dmem_cgroup is not available. The dmem_cgroup subsystem, introduced in newer kernels, provides per-cgroup limits on device memory usage such as GPU VRAM. On older backport target kernels this subsystem is absent (BPM_DRMM_CGROUP_REGISTER_REGION_NOT_PRESENT), so no VRAM pinning limits were enforced — external dma-buf consumers could pin an unbounded amount of VRAM, potentially starving the GPU driver and local workloads. The VRAM pin percentage is configurable via the module parameter: xe.pin_vram_percent=<0-100> (default: 50) A value of 0 disables the limit (unlimited pinning). Signed-off-by: Pravalika Gurram <pravalika.gurram@intel.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove the dummy drmm_cgroup_register_region() stub from the backport
header and replace it with a driver-level VRAM pin accounting and
enforcement mechanism for kernels where dmem_cgroup is not available.
The dmem_cgroup subsystem, introduced in
newer kernels, provides per-cgroup limits on device memory usage such
as GPU VRAM. On older backport target kernels this subsystem is absent
(BPM_DRMM_CGROUP_REGISTER_REGION_NOT_PRESENT), so no VRAM pinning
limits were enforced — external dma-buf consumers could pin an
unbounded amount of VRAM, potentially starving the GPU driver and
local workloads.
The VRAM pin percentage is configurable via the module parameter:
xe.pin_vram_percent=<0-100> (default: 50)
A value of 0 disables the limit (unlimited pinning).
Signed-off-by: Pravalika Gurram pravalika.gurram@intel.com