drm/xe: don't store the xe device pointer inside xe_ttm_tt
authorDave Airlie <airlied@redhat.com>
Thu, 5 Jun 2025 06:21:02 +0000 (16:21 +1000)
committerMatthew Brost <matthew.brost@intel.com>
Fri, 6 Jun 2025 16:30:56 +0000 (09:30 -0700)
commit678bb4d6254895fbb1cb30d62871cb58c92dd95b
tree5c898619f5e347961d79fb6635c8dc2546b4f09f
parentade147391433f516532d0a6ba7e49a775cb3694f
drm/xe: don't store the xe device pointer inside xe_ttm_tt

This device pointer is nearly always available without storing
an extra copy for each tt in the system.

Just noticed this while reading over the xe shrinker code.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250605062103.1234620-1-airlied@gmail.com
drivers/gpu/drm/xe/tests/xe_bo.c
drivers/gpu/drm/xe/xe_bo.c