diff options
| author | Tejas Upadhyay <tejas.upadhyay@intel.com> | 2026-09-03 21:45:57 +0530 |
|---|---|---|
| committer | Matthew Brost <matthew.brost@intel.com> | 2026-09-03 22:29:35 -0700 |
| commit | 529f45af3e65e17448c6b402a4dce2245fb2df08 (patch) | |
| tree | 9aa9c49646fd1489b7dd03a89f84f9a5585b8c1d /scripts/Makefile.thinlto | |
| parent | 1faafb979f2da6662bc62aa4030020f38b2044aa (diff) | |
| download | linux-next-529f45af3e65e17448c6b402a4dce2245fb2df08.tar.gz linux-next-529f45af3e65e17448c6b402a4dce2245fb2df08.zip | |
drm/xe: Handle NULL resource and allow purging of VRAM pages
Add NULL checks for the buffer object's resource pointer in
xe_bo_is_vram() and xe_bo_is_stolen() to prevent potential NULL
pointer dereferences when checking memory location during page
offlining.
Additionally, remove the `!ttm_bo->ttm` check from
xe_ttm_bo_purge(). This restriction is stripped away to
explicitly allow the driver to purge VRAM pages during the
memory page offline sequence.
v2(Sashiko):
- Split export and this patch also Check NULL res in
xe_bo_is_vram() and xe_bo_is_stolen()
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260903161553.528932-21-tejas.upadhyay@intel.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
