Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-xe] [PATCH v4 0/3] Use Xe assert macros instead of XE_WARN_ON macro
@ 2023-09-12  8:36 Francois Dugast
  2023-09-12  8:36 ` [Intel-xe] [PATCH v4 1/3] drm/xe: Replace XE_WARN_ON with drm_warn when just printing a string Francois Dugast
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: Francois Dugast @ 2023-09-12  8:36 UTC (permalink / raw)
  To: intel-xe; +Cc: Francois Dugast

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)

v3:
- Rebase
- Keep WARN splats in xe_wopcm.c (Matt Roper)

v4:
- Rebase

Francois Dugast (2):
  drm/xe: Replace XE_WARN_ON with drm_warn when just printing a 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                  |  64 +++----
 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                  |  66 ++++----
 drivers/gpu/drm/xe/xe_vm.h                  |   2 +-
 drivers/gpu/drm/xe/xe_vm_madvise.c          |   2 +-
 34 files changed, 434 insertions(+), 218 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/xe_assert.h

-- 
2.34.1


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2023-09-12 16:14 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-12  8:36 [Intel-xe] [PATCH v4 0/3] Use Xe assert macros instead of XE_WARN_ON macro Francois Dugast
2023-09-12  8:36 ` [Intel-xe] [PATCH v4 1/3] drm/xe: Replace XE_WARN_ON with drm_warn when just printing a string Francois Dugast
2023-09-12  8:36 ` [Intel-xe] [PATCH v4 2/3] drm/xe: Introduce Xe assert macros Francois Dugast
2023-09-12  9:11   ` Francois Dugast
2023-09-12 10:17     ` Jani Nikula
2023-09-12 11:18       ` Michal Wajdeczko
2023-09-12 11:35   ` Jani Nikula
2023-09-12 13:18     ` Michal Wajdeczko
2023-09-12 13:34       ` Jani Nikula
2023-09-12 13:48         ` Michal Wajdeczko
2023-09-12 14:21           ` Rodrigo Vivi
2023-09-12 15:11             ` Michal Wajdeczko
2023-09-12 15:39               ` Rodrigo Vivi
2023-09-12 15:46                 ` Matt Roper
2023-09-12 16:08                   ` Rodrigo Vivi
2023-09-12  8:36 ` [Intel-xe] [PATCH v4 3/3] drm/xe: Use Xe assert macros instead of XE_WARN_ON macro Francois Dugast
2023-09-12  8:39 ` [Intel-xe] ✓ CI.Patch_applied: success for Use Xe assert macros instead of XE_WARN_ON macro (rev4) Patchwork
2023-09-12  8:39 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-09-12  8:40 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-09-12  8:46 ` [Intel-xe] ✗ CI.Build: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox