[Intel-xe] [PATCH v2 0/3] Use Xe assert macros instead of XE_WARN_ON macro
Francois Dugast
francois.dugast at intel.com
Wed Aug 30 12:37:19 UTC 2023
Use the assert macros introduced by Michal Wajdeczko:
https://patchwork.freedesktop.org/series/121549/
Some occurrences of XE_WARN_ON are still present
as they will require a bit more refactoring.
v2:
- Move XE_WARN_ON -> drm_warn to a separate patch (Matt Roper)
- Only convert the instances where the condition evaluation is not
strictly needed (Matt Roper and Thomas Hellström)
Francois Dugast (2):
drm/xe: Replace XE_WARN_ON with drm_warn when just printing string
drm/xe: Use Xe assert macros instead of XE_WARN_ON macro
Michal Wajdeczko (1):
drm/xe: Introduce Xe assert macros
drivers/gpu/drm/xe/xe_assert.h | 177 ++++++++++++++++++++
drivers/gpu/drm/xe/xe_bb.c | 8 +-
drivers/gpu/drm/xe/xe_bo.c | 67 ++++----
drivers/gpu/drm/xe/xe_bo_evict.c | 4 +-
drivers/gpu/drm/xe/xe_device.c | 6 +-
drivers/gpu/drm/xe/xe_exec.c | 2 +-
drivers/gpu/drm/xe/xe_execlist.c | 12 +-
drivers/gpu/drm/xe/xe_force_wake.c | 4 +-
drivers/gpu/drm/xe/xe_force_wake.h | 6 +-
drivers/gpu/drm/xe/xe_ggtt.c | 14 +-
drivers/gpu/drm/xe/xe_gt.c | 1 +
drivers/gpu/drm/xe/xe_gt_clock.c | 2 +-
drivers/gpu/drm/xe/xe_gt_debugfs.c | 7 +-
drivers/gpu/drm/xe/xe_gt_pagefault.c | 3 +-
drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 12 +-
drivers/gpu/drm/xe/xe_guc.c | 24 +--
drivers/gpu/drm/xe/xe_guc_ads.c | 22 +--
drivers/gpu/drm/xe/xe_guc_ct.c | 31 ++--
drivers/gpu/drm/xe/xe_guc_log.c | 4 +-
drivers/gpu/drm/xe/xe_guc_pc.c | 2 +-
drivers/gpu/drm/xe/xe_guc_submit.c | 74 ++++----
drivers/gpu/drm/xe/xe_huc.c | 3 +-
drivers/gpu/drm/xe/xe_hw_engine.c | 11 +-
drivers/gpu/drm/xe/xe_lrc.c | 9 +-
drivers/gpu/drm/xe/xe_migrate.c | 31 ++--
drivers/gpu/drm/xe/xe_mocs.c | 2 +-
drivers/gpu/drm/xe/xe_pt.c | 14 +-
drivers/gpu/drm/xe/xe_ring_ops.c | 13 +-
drivers/gpu/drm/xe/xe_sched_job.c | 2 +-
drivers/gpu/drm/xe/xe_uc.c | 2 +-
drivers/gpu/drm/xe/xe_uc_fw.c | 16 +-
drivers/gpu/drm/xe/xe_vm.c | 74 ++++----
drivers/gpu/drm/xe/xe_vm.h | 2 +-
drivers/gpu/drm/xe/xe_vm_madvise.c | 2 +-
drivers/gpu/drm/xe/xe_wopcm.c | 18 +-
35 files changed, 449 insertions(+), 232 deletions(-)
create mode 100644 drivers/gpu/drm/xe/xe_assert.h
--
2.34.1
More information about the Intel-xe
mailing list