]> git.dujemihanovic.xyz Git - linux.git/commit
drm/xe: Use pointers in trace events
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 22 Feb 2024 14:41:24 +0000 (06:41 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 22 Feb 2024 22:22:39 +0000 (14:22 -0800)
commit7a975748d4dc0a524c99a390c6f74b7097ef8cf7
tree14ff645403638697c745cdb0f73f572c046792f7
parenta24d9099777d9c314c984b94653407710c2358b4
drm/xe: Use pointers in trace events

Commit a0df2cc858c3 ("drm/xe/xe_bo_move: Enhance xe_bo_move trace")
inadvertently reverted commit 8d038f49c1f3 ("drm/xe: Fix cast on trace
variable"), breaking the build on 32bits.

As noted by Ville, there's no point in converting the pointers to u64
and add casts everywhere. In fact, it's better to just use %p and let
the address be hashed. Convert all the cases in xe_trace.h to use
pointers.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Priyanka Dandamudi <priyanka.dandamudi@intel.com>
Cc: Oak Zeng <oak.zeng@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240222144125.2862546-1-lucas.demarchi@intel.com
drivers/gpu/drm/xe/xe_trace.h